olamy commented on code in PR #3653:
URL: https://github.com/apache/maven-surefire/pull/3653#discussion_r4749630390
##########
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java:
##########
@@ -375,11 +431,7 @@ public void executionSkipped(TestIdentifier
testIdentifier, String reason) {
if (isTestSet) {
runListener.testSetStarting(report);
}
- for (TestIdentifier child : testPlan.getChildren(testIdentifier)) {
- SimpleReportEntry skipped = createReportEntry(child, null,
emptyMap(), reason, null);
- runListener.testSkipped(skipped);
- forgetTestRunId(child, skipped);
- }
+ reportSkippedChildren(testIdentifier, reason);
Review Comment:
Good catch, fixed in 465d8cb2d. `reportSkippedChildren` is now
`reportSkipped`, and it starts from the skipped container itself. It walks into
a class that has children and counts anything else as one skipped test, a class
with no children included. A disabled `@Nested @ParameterizedClass` now reports
one skipped entry named after the class, so its outer class has a test even if
its `@AfterAll` hits an assumption. Skipped tests go through the same method.
`skippedParameterizedClassCountsAsOneTest` 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]