visionmedia/mocha — pull request #894 by ghazal-karami (2013-06-11 04:22:14+00:00)
Title: Change in xunit reporter in test case time when the test fails

If we use xunit format as the mocha reporter, when the test case fails, the time attribute in test case will be NaN. So when sonar wants to parse this xunit report, it raises parse exception which means it can not parse NaN value of time. So we replaced part related to create time value of test case

FROM : time: test.duration / 1000
TO : time: test.duration ? test.duration / 1000 : 0