mhevery/jasmine-node — Issue #119: result code == 0 even if some specs failed
Author: mcollina
Created: 2012-01-18 12:05:37+00:00
State: open

This is directly from jasmine-node suite.

```
$ jasmine-node spec; echo $?

....................................F

Failures:

1) should report failure (THIS IS EXPECTED)
Message:
Expected true to be falsy.
Stacktrace:
Error: Expected true to be falsy.
at new (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:102:32)
at [object Object].toBeFalsy (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1171:29)
at [object Object]. (/home/matteo/repository/jasmine-node/spec/nested/uber-nested/UberNestedSpec.js:8:20)
at [object Object].execute (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1001:15)
at [object Object].next_ (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1790:31)
at [object Object].start (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1743:8)
at [object Object].execute (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:2070:14)
at [object Object].next_ (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1790:31)
at [object Object].start (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:1743:8)
at [object Object].execute (/home/matteo/.nvm/v0.6.7/lib/node_modules/jasmine-node/lib/jasmine-node/jasmine-2.0.0.rc1.js:2215:14)

Finished in 1.124 seconds
37 tests, 68 assertions, 1 failure

0
```

As 1 spec failed, the status code should be 1, not 0.