olamy commented on code in PR #3653:
URL: https://github.com/apache/maven-surefire/pull/3653#discussion_r4751448251
##########
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java:
##########
@@ -448,7 +514,9 @@ private SimpleReportEntry createReportEntry(
}
StackTraceWriter stw =
testExecutionResult == null ? null :
toStackTraceWriter(className, methodName, testExecutionResult);
- String testId = testIdentifier.isTest() ? testIdentifier.getUniqueId()
: methodName;
+ // A method container, like a @ParameterizedTest, goes by its unique
id too: a nested class can have a
+ // method with the same signature, and both report under the outer
class.
+ String testId = isIndexedByUniqueId(testIdentifier) ?
testIdentifier.getUniqueId() : methodName;
Review Comment:
Good catch, fixed in 520b93500. A class that counts as one skipped test now
gets its run id from its unique id, the same way tests and method containers
already do. So a disabled nested `@ParameterizedClass` gets its own id in each
invocation of the outer `@ParameterizedClass`, and the two entries no longer
merge. `skippedParameterizedClassInEachOuterInvocationIsCountedApart` covers it.
--
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]