Skip to content

Commit

Permalink
[SUREFIRE-2242] Plain test report does not include names of the skipp…
Browse files Browse the repository at this point in the history
…ed tests

This closes #752
  • Loading branch information
michael-o committed Jun 26, 2024
1 parent d626ced commit 18f3f2c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ public List<String> getTestResults() {
if (testResult.isErrorOrFailure()) {
result.add(testResult.getOutput(trimStackTrace));
} else if (plainFormat && testResult.isSkipped()) {
result.add(testResult.getSourceName() + " skipped");
String description =
testResult.getName() == null ? testResult.getSourceName() : testResult.getClassMethodName();
result.add(description + " skipped");
} else if (plainFormat && testResult.isSucceeded()) {
result.add(testResult.getElapsedTimeSummary());
}
Expand Down

0 comments on commit 18f3f2c

Please sign in to comment.