Install Allure Report for Windows
Allure Report can be installed on Windows from the Scoop package repository or manually from an archive.
Install from Scoop
Make sure Scoop is installed. See the installation instructions on GitHub.
Make sure Java version 8 or above installed, and its directory is specified in the
JAVA_HOMEenvironment variable.In a terminal, run this command:
scoop install allureRun this command to see if it reports the latest version:
allure --version
Install from an archive
Make sure Java version 8 or above installed, and its directory is specified in the
JAVA_HOMEenvironment variable.Go to the latest Allure Report release on GitHub and download the
allure-*.ziporallure-*.tgzarchive.Uncompress the archive into the directory of your choice.
Remember the path to its
binsubdirectory. You will need this path in a future step.Make sure that the
allurecommand resolves to theallurefile from your installation directory.There are various ways to do so, for example, via the Control Panel or by running a PowerShell script.
Using Control Panel
Details
Press Win+R and enter the command:
sysdm.cplto open the System Properties tool.On the Advanced tab, click Environment variables.
In either the User variables or System variables list, double-click the
Pathvariable to open the editing dialog. Note that editing the system variable requires administrator privileges and affects all users of the computer.In the Edit environment variable dialog, click New to add a new line entry to the paths list. In the new line, specify the full path to the
binsubdirectory from an earlier step, for example:D:\Tools\allure-2.29.0\bin.If the list contains a path to a previously installed Allure version, delete it.
Click OK to save the changes.
Using PowerShell
Details
Launch PowerShell and run the following three commands.
(Replace
D:\Tools\allure-2.29.0\binwith the path to thebinsubdirectory from an earlier step.)powershell$AllureBinPath = "D:\Tools\allure-2.29.0\bin" $NewPath = (([Environment]::GetEnvironmentVariable("PATH", "User") -split ";") | ?{ $_ -and $_ -notlike "*\allure-*\bin" }) -join ";" [Environment]::SetEnvironmentVariable("PATH", "$NewPath;$AllureBinPath", "User")Close the current PowerShell window.
In a new PowerShell window, run this command to see if it reports the latest version:
allure --version