visionmedia/mocha — pull request #557 by haraldrudell (2012-08-27 09:15:59+00:00)
Title: Handle require Failures otherwise crashing mocha

On launch, when mocha loads the test files, the whole process crashes if there is a syntax error in any of the files

Here we prevent that by wrapping require in a try-catch. If the require throws an exception, a fake test called LoadFail is created that throws the exception at a later time when mocha can handle it.

Such failure are then presented as any other test failures

AWESOMENESS!

This is the fix for #547