nodeunit
nodeunit copied to clipboard
nodeunit should catch exceptions and report them as failures
right now if a test throws an exception, the process just exits.
+1
btw we just switched to mocha, for this and other reasons.
+1 It happens only if the exception is thrown from an asynchronous callback. If the exception is thrown from a synchronous test flow the exception is caught and the test continues normally.
See suggested fix in #177 (https://github.com/caolan/nodeunit/pull/177)
:+1:
Dealbreaker for me - uncaught exceptions are gonna be everywhere, tests need to be able to catch them.