Skip to content

Commit

Permalink
Log stack traces of test errors to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 7, 2014
1 parent 8eaab79 commit e44da18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function runTests(callback) {
else if (e instanceof Failure) callback("fail", test.name, e.message);
else {
var pos = /(?:\bat |@).*?([^\/:]+):(\d+)/.exec(e.stack);
if (pos) console["log"](e.stack);
callback("error", test.name, e.toString() + (pos ? " (" + pos[1] + ":" + pos[2] + ")" : ""));
}
}
Expand Down

0 comments on commit e44da18

Please sign in to comment.