mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
added try-catch around script eval so that errors that are NOT inside
`test` calls (or syntax errors) are caught, and the test suite can continue on
This commit is contained in:
5
Cakefile
5
Cakefile
@@ -192,7 +192,10 @@ runTests = (CoffeeScript) ->
|
||||
fileName = path.join 'test', file
|
||||
fs.readFile fileName, (err, code) ->
|
||||
currentFile = fileName
|
||||
CoffeeScript.run code.toString(), {fileName}
|
||||
try
|
||||
CoffeeScript.run code.toString(), {fileName}
|
||||
catch e
|
||||
failures.push file: currentFile, error: e
|
||||
|
||||
|
||||
task 'test', 'run the CoffeeScript language test suite', ->
|
||||
|
||||
Reference in New Issue
Block a user