Permalink
Browse files

Make failing tests exit with non-zero status

Travis has been thinking everything passes, but the tests have been broken for a while
1 parent 712dcfb commit 304c40f3cdbb79757ba670b846e31e5302dfdf7a @danielbeardsley danielbeardsley committed Jul 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 run_tests.sh
View
@@ -9,4 +9,6 @@ catch(e) {
}
process.chdir(__dirname);
-reporter.run(['test/']);
+reporter.run(['test/'], null, function(failure) {
+ process.exit(failure ? 1 : 0)
+});

0 comments on commit 304c40f

Please sign in to comment.