Skip to content

Commit

Permalink
Merge pull request #1039 from vnikiti/xunit-sonar-fix
Browse files Browse the repository at this point in the history
Fix for NaN coming in time attribute when test fails.

* vnikiti/xunit-sonar-fix:
  Fix for NaN coming in time attribute when test fails.
  • Loading branch information
travisjeffery committed Dec 6, 2013
2 parents ac5af6a + b9203ba commit b2e1770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/xunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function test(test) {
var attrs = {
classname: test.parent.fullTitle()
, name: test.title
, time: test.duration / 1000
, time: (test.duration / 1000) || 0
};

if ('failed' == test.state) {
Expand Down

0 comments on commit b2e1770

Please sign in to comment.