kof/node-qunit — Issue #37: Return non-zero exit code if failures are detected
Author: insin
Created: 2011-12-18 04:06:59+00:00
State: open

I've recently started using Travis CI and noticed uses the exit code to determine whether or not a build/test succeeded. Deliberately breaking one of my tests showed that node-qunit was continuing to return an exit code of 0 with failed tests present.

This gist shows one way to tweak the exit code when failures are detected: https://gist.github.com/1492339

This is an issue with a patch, rather than a pull request, as I'm not sure if calling process.exit() again from within a process' exit event is a recommended thing to do, but it does seem to work.