Allure CLI allows you to generate Allure report from existing XML files with no need to install any CI system or sophisticated build tool. To generate report with this tool you only need to have XML files generated by adapter.
Allure CLI is a Java application so it's available for all platforms. You have to manually install Java 1.7+ before using Allure CLI.
For Debian-based repositories we provide a PPA so the installation is straightforward:
$ sudo apt-add-repository ppa:yandex-qatools/allure-framework
$ sudo apt-get update
$ sudo apt-get install allure-cli
Supported distributions are: Trusty and Precise. After installation you will have allure command available. Read more about Allure Debian Package
You can install Allure CLI via Homebrew
$ brew tap allure-framework/allure
$ brew install allure-cli
After installation you will have allure command available. Read more about Allure Homebrew Formula
- Download latest version as ZIP archive
- Unpack the archive to
allure-cli
directory - Navigate to
bin
directory - Use allure.bat for Windows and allure for other Unix platforms
Defaults:
- Report Path:
allure-report
- Report Version:
1.3.9
To generate report simply run the following command:
$ allure generate path/to/directory/with/xml/files
or
$ allure report generate path/to/directory/with/xml/files
By default report is generated to directory named allure-report. When done simply open index.html page from the output directory or type:
$ allure report open
To clean report direcotory use the following command:
$ allure report clean
In order to change output directory type:
$ allure generate path/to/directory/with/xml/files -o path/to/output/directory
Starting from CLI 2.0 you can specify version of the report to be used using -v flag:
$ allure generate path/to/directory/with/xml/files -v 1.3.6
$ allure generate path/to/directory/with/xml/files -v 1.4.0
This allows you to use the same CLI with less or more outdated adapters. Default version is 1.3.9. All required files are downloaded from Internet automatically (this fact is important if you try to use CLI in offline environment).
To show help type:
$ allure help
To show help about specific command type:
$ allure help generate
Mailing list: [email protected]