Permalink
Browse files

fixed the error reporting bug

  • Loading branch information...
1 parent 18c65e6 commit 277fb55c07c7a8989dc667d966d3aa9b1f5cf2d0 @AriaMinaei committed Mar 29, 2013
Showing with 36 additions and 30 deletions.
  1. +20 −16 lib/jitter.js
  2. +16 −14 src/jitter.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -320,29 +320,31 @@ runTests = ->
for test in testFiles
- output = "Running #{test}"
+ do ->
- exec "node #{test}", (error, stdout, stderr) ->
+ output = "Running #{test}"
- notifyGrowl test, stderr if stderr
+ exec "node #{test}", (error, stdout, stderr) ->
- if stderr
+ notifyGrowl test, stderr if stderr
- if not options?.silent
+ if stderr
- `console.log("\007")`
-
- output += color ' ' + 'FAILED ->', 'red'
- output += '\n' + stdout + stderr + '\n'
+ if not options?.silent
- else
+ `console.log("\007")`
+
+ output += color ' ' + 'FAILED ->', 'red'
+ output += '\n' + stdout + stderr + '\n'
- output += color ' ' + 'PASSED\n', 'green'
+ else
- puts output
+ output += color ' ' + 'PASSED\n', 'green'
- # print stdout
- # print stderr
+ puts output
+
+ # print stdout
+ # print stderr
parseOptions = ->

0 comments on commit 277fb55

Please sign in to comment.