mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
If the tests fail, return a non-zero exit code
This commit is contained in:
parent
a36b45434f
commit
d141d5c9ae
1 changed files with 4 additions and 2 deletions
6
Cakefile
6
Cakefile
|
@ -407,7 +407,8 @@ runTests = (CoffeeScript) ->
|
|||
|
||||
|
||||
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', ->
|
||||
|
@ -415,4 +416,5 @@ task 'test:browser', 'run the test suite against the merged browser script', ->
|
|||
result = {}
|
||||
global.testingBrowser = yes
|
||||
(-> eval source).call result
|
||||
runTests result.CoffeeScript
|
||||
testResults = runTests result.CoffeeScript
|
||||
process.exit 1 unless testResults
|
||||
|
|
Loading…
Add table
Reference in a new issue