If the tests fail, return a non-zero exit code
This commit is contained in:
parent
a36b45434f
commit
d141d5c9ae
6
Cakefile
6
Cakefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue