mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
Code coverage setup on CI (#49003)
* running code coverage in CI * apply review feedback * add custom function to upload merged coverage reports * fix artifacts upload without coverage * add file extension to fix validation * Check code_coverage is set * run oss tests via grunt task * review fixes Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
e93c6b8d1a
commit
26ce6104a9
16 changed files with 350 additions and 155 deletions
|
@ -29,6 +29,21 @@ const TEST_TAGS = safeLoad(JOBS_YAML)
|
|||
.JOB.filter(id => id.startsWith('kibana-ciGroup'))
|
||||
.map(id => id.replace(/^kibana-/, ''));
|
||||
|
||||
const getDefaultArgs = tag => {
|
||||
return [
|
||||
'scripts/functional_tests',
|
||||
'--include-tag',
|
||||
tag,
|
||||
'--config',
|
||||
'test/functional/config.js',
|
||||
'--config',
|
||||
'test/ui_capabilities/newsfeed_err/config.ts',
|
||||
// '--config', 'test/functional/config.firefox.js',
|
||||
'--bail',
|
||||
'--debug',
|
||||
];
|
||||
};
|
||||
|
||||
export function getFunctionalTestGroupRunConfigs({ kibanaInstallDir } = {}) {
|
||||
return {
|
||||
// include a run task for each test group
|
||||
|
@ -38,18 +53,8 @@ export function getFunctionalTestGroupRunConfigs({ kibanaInstallDir } = {}) {
|
|||
[`functionalTests_${tag}`]: {
|
||||
cmd: process.execPath,
|
||||
args: [
|
||||
'scripts/functional_tests',
|
||||
'--include-tag',
|
||||
tag,
|
||||
'--config',
|
||||
'test/functional/config.js',
|
||||
'--config',
|
||||
'test/ui_capabilities/newsfeed_err/config.ts',
|
||||
// '--config', 'test/functional/config.firefox.js',
|
||||
'--bail',
|
||||
'--debug',
|
||||
'--kibana-install-dir',
|
||||
kibanaInstallDir,
|
||||
...getDefaultArgs(tag),
|
||||
...(!!process.env.CODE_COVERAGE ? [] : ['--kibana-install-dir', kibanaInstallDir]),
|
||||
],
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue