Skip to content

Commit

Permalink
Test runs now fails with correct exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
inikulin committed Aug 27, 2014
1 parent 5d52a5b commit 209113a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/run_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ var dirName = path.join(__dirname, './fixtures'),
testFiles = fs.readdirSync(dirName);

process.chdir(dirName);
reporter.run(testFiles);

reporter.run(testFiles, null, function (err) {
if(err)
process.exit(1);
});

0 comments on commit 209113a

Please sign in to comment.