Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in xunit reporter in test case time when the test fails #894

Closed
wants to merge 3 commits into from

Conversation

ghazal-karami
Copy link

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

@tj tj closed this in c213e10 Jun 13, 2013
@ghazal-karami
Copy link
Author

Thanks for the fix, but it does not solve the problem. I pulled another request #898.

Cheers,
Ghazal

arunoda pushed a commit to arunoda/mocha that referenced this pull request Jun 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant