If the tests fail, return a non-zero exit code

This commit is contained in:
Geoffrey Booth 2017-04-15 13:44:14 -07:00
parent a36b45434f
commit d141d5c9ae
1 changed files with 4 additions and 2 deletions

View File

@ -407,7 +407,8 @@ runTests = (CoffeeScript) ->
task 'test', 'run the CoffeeScript language test suite', -> task 'test', 'run the CoffeeScript language test suite', ->
runTests CoffeeScript testResults = runTests CoffeeScript
process.exit 1 unless testResults
task 'test:browser', 'run the test suite against the merged browser script', -> task 'test:browser', 'run the test suite against the merged browser script', ->
@ -415,4 +416,5 @@ task 'test:browser', 'run the test suite against the merged browser script', ->
result = {} result = {}
global.testingBrowser = yes global.testingBrowser = yes
(-> eval source).call result (-> eval source).call result
runTests result.CoffeeScript testResults = runTests result.CoffeeScript
process.exit 1 unless testResults