Skip to content
Permalink
Browse files

fix(logging): Summarize SKIPPED tests in debug.html.

Before: hundreds of SKIPPING lines in console.log.
After: A single summary line with a count.

Closes #1111
  • Loading branch information...
johnjbarton committed Jun 26, 2014
1 parent 3873c53 commit a01100f5c6404366dd4219b9bf6c3161300dc735
Showing with 9 additions and 2 deletions.
  1. +9 −2 static/debug.html
@@ -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++) {

0 comments on commit a01100f

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