diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java index 96b4fb451b..1431d8fdee 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java @@ -227,7 +227,7 @@ public List getTestResults() { if (testResult.isErrorOrFailure()) { result.add(testResult.getOutput(trimStackTrace)); } else if (plainFormat && testResult.isSkipped()) { - result.add(testResult.getSourceName() + " skipped"); + result.add(testResult.getFullName() + " skipped"); } else if (plainFormat && testResult.isSucceeded()) { result.add(testResult.getElapsedTimeSummary()); } diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java index 6069364157..f661a003f2 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java @@ -130,6 +130,10 @@ public String getClassMethodName() { return original.getSourceName() + "." + original.getName(); } + public String getFullName() { + return getName() == null ? getSourceName() : getClassMethodName(); + } + @Override public String getGroup() { return original.getGroup(); @@ -186,8 +190,7 @@ public String getElapsedTimeVerbose() { } public String getElapsedTimeSummary() { - String description = getName() == null ? getSourceName() : getClassMethodName(); - return description + " -- " + getElapsedTimeVerbose(); + return getFullName() + " -- " + getElapsedTimeVerbose(); } public boolean isErrorOrFailure() {