You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2025/03/16 23:31:01 UTC
(maven-surefire) branch SUREFIRE-1643-junit5-parallel updated: use getName if no sourceName
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch SUREFIRE-1643-junit5-parallel
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/SUREFIRE-1643-junit5-parallel by this push:
new 769a177c6 use getName if no sourceName
769a177c6 is described below
commit 769a177c61bc8bcde7d73678a8e8e80cb1b059ae
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Mon Mar 17 09:30:47 2025 +1000
use getName if no sourceName
Signed-off-by: Olivier Lamy <ol...@apache.org>
---
.../org/apache/maven/plugin/surefire/report/TestSetRunListener.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
index ee11e3fff..a47dacb5c 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
@@ -172,7 +172,7 @@ public void writeTestOutput(TestOutputReportEntry reportEntry) {
}
private TestSetStats getTestSetStats(ReportEntry report) {
- String sourceName = report.getSourceName() == null ? "" : report.getSourceName();
+ String sourceName = report.getSourceName() == null ? report.getName() : report.getSourceName();
return detailsPerSource.computeIfAbsent(sourceName, s -> new TestSetStats(trimStackTrace, isPlainFormat));
}