AzazelSensei opened a new pull request, #3432:
URL: https://github.com/apache/maven-surefire/pull/3432
Following this checklist to help us incorporate your contribution quickly
and easily:
- [x] Each commit in the pull request should have a meaningful subject line
and body.
- [x] Write a pull request description that is detailed enough to
understand what the pull request does, how, and why.
- [x] Run `mvn clean install` to make sure basic checks pass. A more
thorough check will be performed on your pull request automatically.
- [ ] You have run the integration tests successfully (`mvn -Prun-its clean
install`).
Targeted module tests: `mvn -pl surefire-providers/surefire-junit-platform
test -Dtest=RunListenerAdapterTest,JUnitPlatformProviderTest` (75 passed). Did
not run the full ITS profile locally.
Fixes #3303.
`rerunFailingTestsCount` treats two reports with the same class+method name
as one test. JUnit 5 `@ParameterizedTest` already puts `[N]` on the method
legacy name. JUnit 6 `@ParameterizedClass` does not: the index lives on a
`[class-template-invocation:#N]` parent with a `ClassSource`, so
`hasParameterizedParent` misses it and both invocations look like
`testSomething()`. A fail then a pass on the next index gets collapsed into a
flake/pass.
This reads that unique-id segment and appends `[N]` when the method name
does not already have it.
- [x] I hereby declare this contribution to be licenced under the [Apache
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
--
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]