From 2cac73c3fc1ce4715b609caf7634901b0614a72a Mon Sep 17 00:00:00 2001 From: Taylan Derinbay Date: Fri, 3 Mar 2017 23:21:05 +0300 Subject: [PATCH] add duration to failed test report and fix a typo --- src/main/java/jenkins/plugins/slack/ActiveNotifier.java | 5 +++-- .../jenkins/plugins/slack/SlackNotifier/config.jelly | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/jenkins/plugins/slack/ActiveNotifier.java b/src/main/java/jenkins/plugins/slack/ActiveNotifier.java index e7d97723..9cd9a688 100755 --- a/src/main/java/jenkins/plugins/slack/ActiveNotifier.java +++ b/src/main/java/jenkins/plugins/slack/ActiveNotifier.java @@ -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; diff --git a/src/main/resources/jenkins/plugins/slack/SlackNotifier/config.jelly b/src/main/resources/jenkins/plugins/slack/SlackNotifier/config.jelly index 28e4416e..8e7cfdd6 100755 --- a/src/main/resources/jenkins/plugins/slack/SlackNotifier/config.jelly +++ b/src/main/resources/jenkins/plugins/slack/SlackNotifier/config.jelly @@ -36,7 +36,7 @@ - +