Junit5 @nested: allow the JUnit provider to retrieve multiple Surefire reports from the EE
(is part of the JUnit5 @nested integration with this ticket in opentestfactory/java-plugins)
When executing a JUnit5 @nested test using Maven, as many reports as there are nested classes are generated. Example with this test that has 3 nesting levels:
- TestingAStackDemoTest (top-level class)
- WhenNewTest (second-level class)
- AfterPushingTest (third-level class)
3 Surefire reports are generated. Currently the JUnit provider's execute action retrieves both .txt and .xml files using a core.attach_file, that allows a unique grab. By using the action provider's get-files we should be able to get every report generated by a @nested test.
Edited by Valentin Venom