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

Fix for NaN coming in time attribute when test fails. #1039

Merged
merged 1 commit into from
Dec 6, 2013
Merged

Fix for NaN coming in time attribute when test fails. #1039

merged 1 commit into from
Dec 6, 2013

Conversation

av-miller
Copy link

When a test fails, division of duration property computes to NaN. An attempt to submit a report containing time="NaN" to Sonar throws an error and report gets rejected. To make Mocha XUnit compatible with Sonar, I propose this amazing change! This will return 0 when tests fail.

travisjeffery added a commit that referenced this pull request Dec 6, 2013
Fix for NaN coming in time attribute when test fails.

* vnikiti/xunit-sonar-fix:
  Fix for NaN coming in time attribute when test fails.
@travisjeffery travisjeffery merged commit b9203ba into mochajs:master Dec 6, 2013
@av-miller av-miller deleted the xunit-sonar-fix branch January 31, 2014 16:28
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.

2 participants