File tree 2 files changed +6
-3
lines changed
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report
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() {
227
227
if (testResult .isErrorOrFailure ()) {
228
228
result .add (testResult .getOutput (trimStackTrace ));
229
229
} else if (plainFormat && testResult .isSkipped ()) {
230
- result .add (testResult .getSourceName () + " skipped" );
230
+ result .add (testResult .getFullName () + " skipped" );
231
231
} else if (plainFormat && testResult .isSucceeded ()) {
232
232
result .add (testResult .getElapsedTimeSummary ());
233
233
}
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ public String getClassMethodName() {
130
130
return original .getSourceName () + "." + original .getName ();
131
131
}
132
132
133
+ public String getFullName () {
134
+ return getName () == null ? getSourceName () : getClassMethodName ();
135
+ }
136
+
133
137
@ Override
134
138
public String getGroup () {
135
139
return original .getGroup ();
@@ -186,8 +190,7 @@ public String getElapsedTimeVerbose() {
186
190
}
187
191
188
192
public String getElapsedTimeSummary () {
189
- String description = getName () == null ? getSourceName () : getClassMethodName ();
190
- return description + " -- " + getElapsedTimeVerbose ();
193
+ return getFullName () + " -- " + getElapsedTimeVerbose ();
191
194
}
192
195
193
196
public boolean isErrorOrFailure () {
You can’t perform that action at this time.
0 commit comments