diff --git a/run_tests.sh b/run_tests.sh index 96581715..333fa7d7 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -9,4 +9,6 @@ catch(e) { } process.chdir(__dirname); -reporter.run(['test/']); +reporter.run(['test/'], null, function(failure) { + process.exit(failure ? 1 : 0) +});