mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
a little extra enhancement to cake test
This commit is contained in:
5
Cakefile
5
Cakefile
@@ -170,7 +170,10 @@ runTests = (CoffeeScript) ->
|
||||
else
|
||||
log "failed #{failures.length} and #{message}", red
|
||||
for fail in failures
|
||||
[match,line,column] = fail.error.stack.match(new RegExp(fail.file+":(\\d+):(\\d+)"))
|
||||
match = fail.error.stack.match(new RegExp(fail.file+":(\\d+):(\\d+)"))
|
||||
[match,line,column] = match if match
|
||||
line ?= "unknown"
|
||||
column ?= "unknown"
|
||||
log " #{fail.file.replace(/\.coffee$/,'.js')}: line #{line}, column #{column}", red
|
||||
console.log " #{fail.error.message}" if fail.error.message?
|
||||
# output a cleaned-up version of the function source
|
||||
|
||||
Reference in New Issue
Block a user