kalayciburak opened a new pull request, #3429: URL: https://github.com/apache/maven-surefire/pull/3429
## Summary Cucumber scenarios can still report `Tests run: 0` when the JUnit Platform on the test classpath is older than 1.8. `RunListenerAdapter` walked parents through `TestIdentifier.getParentIdObject()`, which only exists from Platform 1.8. On older launchers the walk no-ops, scenarios keep the feature display name as `sourceName`, and `TestSetRunListener` flushes an empty stats bucket for the runner class. This switches parent resolution to `TestPlan.getParent(TestIdentifier)`, available since Platform 1.0, for both `findTopParent` and `findFirstParentContainerAndSourceClass`. Fixes #3428 ## Test plan - [x] `mvn -pl surefire-providers/surefire-junit-platform test -Dtest=RunListenerAdapterTest` — 28/28 GREEN (includes new `notifiedWithRunnerClassWhenCucumberScenarioHasNoClassSource`) - [x] `mvn -pl surefire-providers/surefire-junit-platform test` — 84/84 GREEN -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
