Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixing test duration

Joshua Kralle97cc1168dec
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.js
index dfdb85b7..97e636ab 100644
--- a/lib/reporters/xunit.js
+++ b/lib/reporters/xunit.js
@@ -41,7 +41,7 @@ function processTest(test) {
var attributes = {
classname: test.fullTitle(),
name: test.title,
- time: test.duration
+ time: test.duration / 1000.0
};
if (test.failed) {