Skip to content
Permalink
Browse files

Fixed PHPUnit failed test label color (warning -> danger).

  • Loading branch information...
corpsee committed Apr 27, 2019
1 parent 349a29e commit 250e57ad9739c31198bac27aea81f2575312924e
Showing with 5 additions and 5 deletions.
  1. +5 −5 public/assets/js/build-plugins/phpunit.js
@@ -65,15 +65,15 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
var counts = {success: 0, failed: 0, error: 0, skipped: 0, todo: 0}, total = 0;

for (var i in tests) {
var severity = tests[i].severity || (tests[i].pass ? 'success' : 'failed'),
label = ('success' == severity) ? 'success' : (
('error' == severity) ? 'danger' : 'warning'
);

var severity = tests[i].severity || (tests[i].pass ? 'success' : 'failed');
if ('fail' === severity) {
severity = 'failed';
}

var label = ('success' == severity) ? 'success' : (
('error' == severity || 'failed' == severity) ? 'danger' : 'warning'
);

var status = $('<td><span class="label label-' + label + '">' + Lang.get(severity) + '</span></td>'),
content = $('<td></td>'),
trace = $('<td></td>'),

0 comments on commit 250e57a

Please sign in to comment.
You can’t perform that action at this time.