If runner is xunit (as on CI) set output file

This commit is contained in:
Wesley Wigham 2018-08-06 11:41:27 -07:00
parent 37b9a6bca4
commit 16343208c8
No known key found for this signature in database
GPG key ID: D59F87F60C5400C9

View file

@ -567,7 +567,7 @@ function runConsoleTests(defaultReporter, runInParallel) {
var startTime = Travis.mark();
var args = [];
args.push("-R", "scripts/failed-tests");
args.push("-O", '"reporter=' + reporter + (keepFailed ? ",keepFailed=true" : "") + '"');
args.push("-O", '"reporter=' + reporter + (keepFailed ? ",keepFailed=true" : "") + (reporter === "xunit" ? ",output=TEST-results.xml" : "") + '"');
if (tests) args.push("-g", `"${tests}"`);
args.push(colors ? "--colors" : "--no-colors");
if (bail) args.push("--bail");