Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Merge pull request #876 from fredr/master

TJ Holowaychuk9961156dd14d
diff --cc lib/reporters/xunit.js
index f6b6cb22,8f9eb0a0..1ed5ee93
--- a/lib/reporters/xunit.js
+++ b/lib/reporters/xunit.js
@@@ -50,9 -50,9 +50,9 @@@ function XUnit(runner)
, tests: stats.tests
, failures: stats.failures
, errors: stats.failures
- , skip: stats.tests - stats.failures - stats.passes
+ , skipped: stats.tests - stats.failures - stats.passes
, timestamp: (new Date).toUTCString()
- , time: stats.duration / 1000
+ , time: (stats.duration / 1000) || 0
}, false));
tests.forEach(test);