Skip to content

Commit

Permalink
#827: Added notification when unit test is done.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 10, 2013
1 parent 35e0cc3 commit 812932b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hawtio-web/src/main/webapp/app/junit/js/tree.ts
Expand Up @@ -201,12 +201,19 @@ module JUnit {
inProgressStatus.result = result;

var alertClass = "success";
var notificationClass = "success";
var message = "JUnit testing succeded with " + result.runCount + " runs.";
if (result.failureCount > 0) {
alertClass = "error";
notificationClass = "warning";
message = "JUnit testing failed with " + result.failureCount + " failures.";
}
$scope.alertClass = alertClass;
$scope.testResults = inProgressStatus.result;

// publish notification
notification(notificationClass, message);

Core.$apply($scope);
}
}
Expand Down

0 comments on commit 812932b

Please sign in to comment.