Skip to content

Commit

Permalink
Dont count xunit failures as errors
Browse files Browse the repository at this point in the history
Per http://reflex.gforge.inria.fr/xunit.html#xunitReport a failure and an error are different concepts and must be counted as such. Some parsers will fail if the number of expected tests do not add up.

Related change in repo from which this was copied: mochajs/mocha#2475
  • Loading branch information
mlucool committed Sep 12, 2016
1 parent c2d4195 commit f7765c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xunit-file.js
Expand Up @@ -80,7 +80,7 @@ function XUnitFile(runner) {
name: process.env.SUITE_NAME || 'Mocha Tests'
, tests: stats.tests
, failures: stats.failures
, errors: stats.failures
, errors: 0
, skipped: stats.tests - stats.failures - stats.passes
, timestamp: timestampStr
, time: stats.duration / 1000
Expand Down

0 comments on commit f7765c9

Please sign in to comment.