Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allure Report: no data generated for JUnit framework

Our team is using JUnit as base test framework for a large and old project. We recently migrated to Maven and we decided to try a new report for JUnit called Allure. We copied dependencies and plugins to our pom.xml from the following example but no XML data is generated in target/ folder. No warnings or errors are issued in Maven output. Does anybody know how could it be?

like image 802
Innokenty Avatar asked May 26 '14 12:05

Innokenty


1 Answers

Which version of JUnit are you using? There's a warning in Allure documentation stating that Allure only works with JUnit 4. This is because Allure gets all information about tests using RunListener interface which only appeared in JUnit 4.

like image 157
vania-pooh Avatar answered Sep 27 '22 16:09

vania-pooh