Skip to content

Commit d141d5c

Browse files
committed
If the tests fail, return a non-zero exit code
1 parent a36b454 commit d141d5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Cakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,14 @@ runTests = (CoffeeScript) ->
407407

408408

409409
task 'test', 'run the CoffeeScript language test suite', ->
410-
runTests CoffeeScript
410+
testResults = runTests CoffeeScript
411+
process.exit 1 unless testResults
411412

412413

413414
task 'test:browser', 'run the test suite against the merged browser script', ->
414415
source = fs.readFileSync "docs/v#{majorVersion}/browser-compiler/coffee-script.js", 'utf-8'
415416
result = {}
416417
global.testingBrowser = yes
417418
(-> eval source).call result
418-
runTests result.CoffeeScript
419+
testResults = runTests result.CoffeeScript
420+
process.exit 1 unless testResults

0 commit comments

Comments
 (0)