Appearance
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_HOME
environment variable.In a terminal, run this command:
scoop install allure
Run 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_HOME
environment variable.Go to the latest Allure Report release on GitHub and download the
allure-*.zip
orallure-*.tgz
archive.Uncompress the archive into the directory of your choice.
Remember the path to its
bin
subdirectory. You will need this path in a future step.Make sure that the
allure
command resolves to theallure
file 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.cpl
to open the System Properties tool.On the Advanced tab, click Environment variables.
In either the User variables or System variables list, double-click the
Path
variable 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
bin
subdirectory 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\bin
with the path to thebin
subdirectory 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