All Posts

Install Allure Report for Windows

Install Allure Report for Windows

Allure provides adapters for test frameworks in Java, PHP, Ruby, Python, Scala, and C#. When we run our tests, the popular test frameworks generate JUnit-style XML reports. These reports are then used by Allure to create an HTML report.

In the example below, we use the Maven Surefire plugin, which automatically generates XML test reports and stores them in the target/surefire-reports directory. These XML files are then converted into an HTML report by Allure.

Install

The simplest way to do this for Windows is to use the Scoop command line. Scoop is a command-line installer for Windows. To know more about Scoop:

Run the command below from your PowerShell to install Scoop in its default location.

To install Allure, using Scoop, run the below command

scoop install allure

 

Install Allure Report Windows

 

Check the installation:

Run the following command to check the installation.

allure –version

This should report the version of the tool on to the console window.

Maven dependency

Add Maven dependencies to your project pom.xml file:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.7.0</version>
</dependency>

<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.2</version>
</dependency>

Generate Reports

The command to generate allure reports is as follows:

allure serve

To save the HTML report on your project directory, run the below allure command.

allure generate

Website

  • https://allurereport.org/