☕️ Classic, reliable, trusted test framework for Node.js and the browser
Switch 'test end' event to use 'pass' and 'fail' events instead
Gavin Mogancce6dc1a26d6
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex 868c1477..c58f51f3 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -36,7 +36,11 @@ function XUnit(runner) {, tests = [], self = this;- runner.on('test end', function(test){+ runner.on('pass', function(test){+ tests.push(test);+ });++ runner.on('fail', function(test){tests.push(test);});