This plugin generates Allure report from existing XML files during Maven build.
Simply add allure-maven-plugin to project reporting section:
<project>
...
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>{latest.version}</version>
</plugin>
</plugins>
</reporting>
...
</project>
You can find the latest version number here.
NOTE: required maven version 3.1.1 or above
This plugin allows to select Allure version (1.3.0+) to be generated, Ant pattern to search for XML files and report output path.
- Report Version:
1.3.9
- Report Path:
target/site/allure-maven-plugin
- Results Pattern:
**/allure-results
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>${latest.version}</version>
<configuration>
<resultsPattern>target/allure</resultsPattern>
<reportPath>target/report</reportPath>
<reportVersion>1.4.0</reportVersion>
</configuration>
</plugin>
</plugins>
</reporting>
...
</project>
When your Maven project contains several modules you need to include reporting section only to root pom.xml. In that case a separate report will be generated for every module and one report containing results for all modules will be generated in root build directory.
- Set up Allure adapter for test framework of your choice
- Run tests as usually:
$ mvn clean test
- Build report:
$ mvn site
- Open report page:
target/site/allure-maven-plugin/index.html
Mailing list: allure@yandex-team.ru