[6.6] [junit] use default rootDirectory for project (#32256) (#32348)

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

View file

@ -100,7 +100,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

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