leonard84 commented on code in PR #828:
URL: https://github.com/apache/maven-surefire/pull/828#discussion_r2030755705
##########
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java:
##########
@@ -216,11 +217,25 @@ private SimpleReportEntry createReportEntry(
String reason,
Integer elapsedTime) {
String[] classMethodName = toClassMethodName(testIdentifier);
- String className = classMethodName[0];
+
+ Optional<UniqueId.Segment> classSegment =
testIdentifier.getUniqueIdObject().getSegments().stream()
+ .filter(segment -> "class".equals(segment.getType()))
+ .findFirst();
Review Comment:
Yeah, Cucumber was also [broken by the last
patch](https://issues.apache.org/jira/browse/SUREFIRE-2299), so the alternative
heuristic should be used.
--
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]