diff --git a/test/unit/test-helper.js b/test/unit/test-helper.js index 9329e1c6..7f263163 100644 --- a/test/unit/test-helper.js +++ b/test/unit/test-helper.js @@ -45,7 +45,7 @@ test = function(name, action) { process.stdout.write('.'); } }catch(e) { - console.log('E'); + process.stdout.write('E'); test.errors.push(e); } }; @@ -61,6 +61,9 @@ process.on('exit', function() { test.ignored.forEach(function(name) { console.log("Ignored: " + name); }); + test.errors.forEach(function(error) { + throw error; + }); }); MemoryStream = function() {