If runner is xunit (as on CI) set output file
This commit is contained in:
parent
37b9a6bca4
commit
16343208c8
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue