From 42ab936b254983faa8ab0ee76a6278fb3aff7fa2 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Sun, 7 Apr 2013 13:28:53 -0700 Subject: [PATCH] feat(debug): show skipped specs and failure details in the console --- static/debug.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/debug.html b/static/debug.html index 4bad09d0f..772c1fd9d 100644 --- a/static/debug.html +++ b/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();