build(e2e): add conditional allure reporter

This commit is contained in:
Kirill Gavrilov 2025-10-21 12:27:57 +03:00
parent a2f1687234
commit f2638b5385
3 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,7 @@
"@types/istanbul-lib-report": "3.0.3",
"@types/istanbul-lib-source-maps": "4.0.4",
"@types/istanbul-reports": "3.0.4",
"@wdio/allure-reporter": "9.20.0",
"@wdio/cli": "9.20.0",
"@wdio/globals": "9.17.0",
"@wdio/local-runner": "9.20.0",

View file

@ -10,6 +10,7 @@
"types": [
"node",
"@wdio/globals/types",
"@wdio/allure-reporter",
"expect-webdriverio",
"@wdio/mocha-framework"
],

View file

@ -11,6 +11,13 @@ const obsidianBinaryPath = process.env.OBSIDIAN_BINARY_PATH
const obsidianNoSandbox = process.env.OBSIDIAN_NO_SANDBOX === 'true'
const wdioReporters: WdioReporters.ReporterEntry[] = ['spec']
if (process.env.WDIO_ALLURE_REPORTER) {
wdioReporters.push(['allure', {
outputDir: 'out/allure-results',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: false,
}])
}
export const config: WebdriverIO.Config = {
runner: 'local',