Skip to content

Commit a01100f

Browse files
committed
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
1 parent 3873c53 commit a01100f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

static/debug.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@
2222
info: function(info) {
2323
if (info.dump && window.console) window.console.log(info.dump);
2424
},
25-
complete: function() {},
25+
complete: function() {
26+
window.console.log('Skipped ' + this.skipped + ' tests');
27+
},
2628
store: function() {},
29+
skipped: 0,
2730
result: window.console ? function(result) {
28-
var msg = result.skipped ? 'SKIPPED ' : (result.success ? 'SUCCESS ' : 'FAILED ');
31+
if (result.skipped) {
32+
this.skipped++;
33+
return;
34+
}
35+
var msg = result.success ? 'SUCCESS ' : 'FAILED ';
2936
window.console.log(msg + result.suite.join(' ') + ' ' + result.description);
3037

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

0 commit comments

Comments
 (0)