Skip to content

Commit 1634320

Browse files
committed
If runner is xunit (as on CI) set output file
1 parent 37b9a6b commit 1634320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jakefile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ function runConsoleTests(defaultReporter, runInParallel) {
567567
var startTime = Travis.mark();
568568
var args = [];
569569
args.push("-R", "scripts/failed-tests");
570-
args.push("-O", '"reporter=' + reporter + (keepFailed ? ",keepFailed=true" : "") + '"');
570+
args.push("-O", '"reporter=' + reporter + (keepFailed ? ",keepFailed=true" : "") + (reporter === "xunit" ? ",output=TEST-results.xml" : "") + '"');
571571
if (tests) args.push("-g", `"${tests}"`);
572572
args.push(colors ? "--colors" : "--no-colors");
573573
if (bail) args.push("--bail");

0 commit comments

Comments
 (0)