Skip to content

Commit

Permalink
return error code when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jul 6, 2012
1 parent 9d33b9e commit 09ba896
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/test.coffee
Expand Up @@ -92,3 +92,5 @@ fs.readdir tests_dir, (err, files) ->
process.stdout.write(msg)
process.stdout.write "\n#{pass_count} passed, #{fail_count} failed.\n"
fs.unlink tmp_js_file
if fail_count > 0
process.exit(1)
5 changes: 4 additions & 1 deletion test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09ba896

Please sign in to comment.