Skip to content

armgit / mocha

Public Imported from GitHub
0

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

updated xunit reporter to conform to the junit xsd (https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/junit-5.xsd)

Fredrik Enestad6af471c241b4
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.js
index 702aa3ce..8f9eb0a0 100644
--- a/lib/reporters/xunit.js
+++ b/lib/reporters/xunit.js
@@ -50,7 +50,7 @@ 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
}, false));