Open harmin-parra opened 7 months ago
Allure JUnit5 sets the "suite" label for each test automatically. If you want to override it, you need to remove it from the result first:
Allure.getLifecycle().updateTestCase(tr -> tr.getLabels().removeIf(label -> "suite".eq(label.getName())));
Allure.suite("Suite");
Allure JUnit5 sets the "suite" label for each test automatically. If you want to override it, you need to remove it from the result first:
Allure.getLifecycle().updateTestCase(tr -> tr.getLabels().removeIf(label -> "suite".eq(label.getName()))); Allure.suite("Suite");
This worked for me. Thanks, @baev!
What happened?
I don't understand why #1004 was rejected.
in my test I have :
Test Allure displays both the suite and the package in the Suite view
If I set the Allure Suite metadata, why is the report also including the package and showing a duplicate of the test ?
What Allure Integration are you using?
allure-junit5
What version of Allure Integration you are using?
2.26.0
What version of Allure Report you are using?
2.27.0
Code of Conduct