Integrate Allure Reports
Discover how to integrate the Allure reporting framework into your Selenium and TestNG test automation projects. Learn installation methods across platforms, Gradle and Maven setup, and how to use Allure annotations for detailed, intuitive test execution reports.
What is Allure?
Allure Framework is a flexible and lightweight test reporting tool that shows a very concise representation of test execution in a very intuitive web report.
Installing Allure via command line
Mac
brew install allure
Linux
sudo apt-add-repository ppa:qameta/allure
sudo apt-get update
sudo apt-get install allure
Windows
To install scoop, follow the link.
scoop install allure
Manual installation
Alternatively, we can download the latest Allure command-line binary from link, extract, and add to classpath.
Mac / Linux
export PATH=$PATH:</path/allure/bin>
Windows
set PATH=%PATH%;<\path\allure\bin>;
Adding dependency
Gradle (in build.xml)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "io.qameta.allure:allure-gradle:2.8.1"
}
}
plugins {
id 'io.qameta.allure'
}
def allure_version = '2.13.1'
allure {
version = ...