peerigon/xunit-file — pull request #6 by ghazal-karami (2013-06-11 04:31:06+00:00)
Title: Change in xunit-file.js in test case time when the test case fails

When we use xunit-file 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