Copilot commented on code in PR #3653:
URL: https://github.com/apache/maven-surefire/pull/3653#discussion_r4731142440
##########
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java:
##########
@@ -177,9 +177,11 @@ public void executionFinished(TestIdentifier
testIdentifier, TestExecutionResult
forgetTestRunId(testIdentifier, aborted);
} else if (isClass) {
reportAbortedClass(testIdentifier,
testExecutionResult, elapsed, isTestSet);
- } else {
- runListener.testSetCompleted(
- createReportEntry(testIdentifier,
testExecutionResult, systemProps(), null, elapsed));
+ } else if (isMethodContainerWithoutTests(testIdentifier)) {
+ // Like a @ParameterizedTest whose arguments source
hit an assumption: count it as skipped
+ runListener.testAssumptionFailure(
+ createReportEntry(testIdentifier,
testExecutionResult, elapsed));
Review Comment:
When an outer class and a nested class have parameterized methods with the
same signature and both argument sources abort, their reports receive the same
test run ID, so XML aggregation counts them as one skipped test; with reruns
enabled, only one testcase is emitted. The disabled-class recursion at lines
417–419 has the same issue. Index method-source containers by their platform
unique IDs while retaining synthetic identities for class-level errors, and add
regression coverage for both cases with matching nested method signatures.
--
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]