Hardcode xunit reporter output file into failed tests reporter

This commit is contained in:
Wesley Wigham
2018-08-06 14:09:41 -07:00
parent bad002cfb7
commit 2e017b8ce1
2 changed files with 4 additions and 1 deletions

View File

@@ -46,6 +46,9 @@ class FailedTestsReporter extends Mocha.reporters.Base {
}
const newOptions = Object.assign({}, options, { reporterOptions: reporterOptions.reporterOptions || {} });
if (reporterOptions.reporter === "xunit") {
newOptions.reporterOptions.output = "TEST-results.xml";
}
this.reporter = new reporter(runner, newOptions);
}