Skip to content
Browse files

feat(debug): show skipped specs and failure details in the console

  • Loading branch information...
1 parent 9d741e0 commit 42ab936b254983faa8ab0ee76a6278fb3aff7fa2 @vojtajina vojtajina committed Apr 7, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 static/debug.html
View
7 static/debug.html
@@ -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();

0 comments on commit 42ab936

Please sign in to comment.
Something went wrong with that request. Please try again.