Closed wazzeps closed 8 months ago
We use Launcher API in our tests, and everything works without issues. See https://github.com/allure-framework/allure-java/blob/master/allure-junit5/src/test/java/io/qameta/allure/junit5/AllureJunit5Test.java#L417-L449
Thanks for the quick answer, @baev.
After setting autodetection extension to true
final LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request()
.configurationParameter("junit.jupiter.extensions.autodetection.enabled", "true")
I can see fixtures and stacktraces in the report.
But steps and attachments declared through annotations are not generated. The report includes only those for which the runtime API is used.
Any ideas on this?
What happened?
When running tests via the Launcher API
execution info is empty:
Attachments are not cloned into the results folder and Allure-results files contain only basic information
{"uuid":"2d1e446a-f232-47f6-a4af-5a3785e5d7d9","name":"Some test","children":["49bb1c84-dfeb-4b54-942b-9502455e899e"],"befores":[],"afters":[],"start":1701260685892,"stop":1701260697663}
AspectJ configuration follows the documentation .
What Allure Integration are you using?
allure-junit5
What version of Allure Integration you are using?
2.24.0
What version of Allure Report you are using?
2.24.0
Code of Conduct