[6.7] [junit] use default rootDirectory for project (#32256) (#32347)

Backports the following commits to 6.7:
 - [junit] use default rootDirectory for project  (#32256)
This commit is contained in:
Spencer 2019-03-01 16:06:38 -08:00 committed by GitHub
parent 1d93e8db8d
commit 85521ae500
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 5 deletions

View file

@ -115,7 +115,6 @@ export const schema = Joi.object().keys({
junit: Joi.object().keys({
enabled: Joi.boolean().default(!!process.env.CI),
reportName: Joi.string(),
rootDirectory: Joi.string(),
}).default(),
mochaReporter: Joi.object().keys({

View file

@ -54,7 +54,6 @@ export function MochaReporterProvider({ getService }) {
if (config.get('junit.enabled') && config.get('junit.reportName')) {
setupJUnitReportGeneration(runner, {
reportName: config.get('junit.reportName'),
rootDirectory: config.get('junit.rootDirectory')
});
}
}

View file

@ -49,7 +49,6 @@ export function createJestConfig({
"default",
[`${kibanaDirectory}/src/dev/jest/junit_reporter.js`, {
reportName: 'X-Pack Jest Tests',
rootDirectory: xPackKibanaDirectory,
}]
],
};

View file

@ -14,7 +14,6 @@ const MOCHA_OPTIONS = {
ui: 'bdd',
reporter: createAutoJUnitReporter({
reportName: 'X-Pack Mocha Tests',
rootDirectory: __dirname,
}),
};

View file

@ -227,7 +227,6 @@ export default async function ({ readConfigFile }) {
junit: {
reportName: 'X-Pack Functional Tests',
rootDirectory: resolve(__dirname, '../../'),
},
};