Skip to content

Commit

Permalink
Merge pull request #275 from derinbay/failed-tests-report
Browse files Browse the repository at this point in the history
Add display failed tests option to slack notifications on job configuration
  • Loading branch information
samrocketman authored Mar 3, 2017
2 parents ee51c74 + 2cac73c commit 364bca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/jenkins/plugins/slack/ActiveNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,10 @@ public MessageBuilder appendFailedTests() {
.getAction(AbstractTestResultAction.class);
if (action != null) {
int failed = action.getFailCount();
message.append("\n").append(failed).append(" failed Tests:\n");
message.append("\n").append(failed).append(" Failed Tests:\n");
for(TestResult result : action.getFailedTests()) {
message.append("\t").append(result.getName()).append("\n");
message.append("\t").append(result.getName()).append(" after ")
.append(result.getDurationString()).append("\n");
}
}
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<f:entry title="Include Test Summary">
<f:checkbox name="includeTestSummary" value="true" checked="${instance.includeTestSummary()}"/>
</f:entry>
<f:entry title="Include failed Tests">
<f:entry title="Include Failed Tests">
<f:checkbox name="includeFailedTests" value="true" checked="${instance.includeFailedTests()}"/>
</f:entry>

Expand Down

0 comments on commit 364bca9

Please sign in to comment.