Skip to content

Commit

Permalink
fix(logging): Summarize SKIPPED tests in debug.html.
Browse files Browse the repository at this point in the history
Before: hundreds of SKIPPING lines in console.log.
After: A single summary line with a count.

Closes #1111
  • Loading branch information
johnjbarton committed Jun 30, 2014
1 parent 3873c53 commit a01100f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions static/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@
info: function(info) {
if (info.dump && window.console) window.console.log(info.dump);
},
complete: function() {},
complete: function() {
window.console.log('Skipped ' + this.skipped + ' tests');
},
store: function() {},
skipped: 0,
result: window.console ? function(result) {
var msg = result.skipped ? 'SKIPPED ' : (result.success ? 'SUCCESS ' : 'FAILED ');
if (result.skipped) {
this.skipped++;
return;
}
var msg = result.success ? 'SUCCESS ' : 'FAILED ';
window.console.log(msg + result.suite.join(' ') + ' ' + result.description);

for (var i = 0; i < result.log.length; i++) {
Expand Down

0 comments on commit a01100f

Please sign in to comment.