Permalink
Browse files

Tests exit code equals to number of failed tests

  • Loading branch information...
1 parent 7bd7b8f commit 414b4ea23cb7b9005fe9ccb352e34d2da7c4e2a7 @arikon arikon committed Oct 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/tests.js
View
@@ -546,3 +546,5 @@ for (var i = 0; i < tests.length; i++) {
console.log('-----------------------------------------------------');
}
console.log('\n' + (totalFail ? 'Total FAIL: ' + totalFail : 'All Ok'));
+
+process.exit(totalFail);

0 comments on commit 414b4ea

Please sign in to comment.