Skip to content

Commit

Permalink
feat(debug): show skipped specs and failure details in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Apr 7, 2013
1 parent 9d741e0 commit 42ab936
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions static/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
complete: function() {},
store: function() {},
result: window.console ? function(result) {
if (result.skipped) return;
var msg = result.success ? 'SUCCESS ' : 'FAILED ';
var msg = result.skipped ? 'SKIPPED' : (result.success ? 'SUCCESS ' : 'FAILED ');
window.console.log(msg + result.suite.join(' ') + ' ' + result.description);

for (var i = 0; i < result.log.length; i++) {
window.console.error(result.log[i]);
}
} : function() {},
loaded: function() {
this.start();
Expand Down

0 comments on commit 42ab936

Please sign in to comment.