File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ public List<String> getTestResults() {
227227 if (testResult .isErrorOrFailure ()) {
228228 result .add (testResult .getOutput (trimStackTrace ));
229229 } else if (plainFormat && testResult .isSkipped ()) {
230- result .add (testResult .getSourceName () + " skipped" );
230+ result .add (testResult .getFullName () + " skipped" );
231231 } else if (plainFormat && testResult .isSucceeded ()) {
232232 result .add (testResult .getElapsedTimeSummary ());
233233 }
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ public String getClassMethodName() {
130130 return original .getSourceName () + "." + original .getName ();
131131 }
132132
133+ public String getFullName () {
134+ return getName () == null ? getSourceName () : getClassMethodName ();
135+ }
136+
133137 @ Override
134138 public String getGroup () {
135139 return original .getGroup ();
@@ -186,8 +190,7 @@ public String getElapsedTimeVerbose() {
186190 }
187191
188192 public String getElapsedTimeSummary () {
189- String description = getName () == null ? getSourceName () : getClassMethodName ();
190- return description + " -- " + getElapsedTimeVerbose ();
193+ return getFullName () + " -- " + getElapsedTimeVerbose ();
191194 }
192195
193196 public boolean isErrorOrFailure () {
You can’t perform that action at this time.
0 commit comments