☕️ Classic, reliable, trusted test framework for Node.js and the browser
output xunit to stdout
TJ Holowaychuk94a44eba495f
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex 5b91574e..e033793e 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -31,7 +31,7 @@ function XUnit(runner) {});runner.on('end', function(){- console.error(tag('testsuite', {+ console.log(tag('testsuite', {name: 'Mocha Tests', tests: stats.tests, failures: stats.failures@@ -41,7 +41,7 @@ function XUnit(runner) {}, false));tests.forEach(test);- console.error('</testsuite>');+ console.log('</testsuite>');});}@@ -65,11 +65,11 @@ function test(test) {if (test.failed) {var err = test.err;attrs.message = escape(err.message);- console.error(tag('testcase', attrs, false, tag('failure', attrs, false, cdata(err.stack))));+ console.log(tag('testcase', attrs, false, tag('failure', attrs, false, cdata(err.stack))));} else if (test.pending) {- console.error(tag('testcase', attrs, false, tag('skipped', {}, true)));+ console.log(tag('testcase', attrs, false, tag('skipped', {}, true)));} else {- console.error(tag('testcase', attrs, true) );+ console.log(tag('testcase', attrs, true) );}}