futurice/mocha-jenkins-reporter — pull request #9 by Sentiaio (2014-07-28 09:16:10+00:00)
Title: Changed the initiation of af suite to listen for the "suite" event

The current implementation was causing the reporter to crash with the following error :

var n = ++currentSuite.failures;
[11:16:57][Step 3/3] ^
[11:16:57][Step 3/3] TypeError: Cannot read property 'failures' of undefined

This is as far as i can see because the test event is not always called before a fail event.
I have moved the startSuite call to the "suite" event, which has fixed the error.