mirror of
https://github.com/gavvvr/obsidian-timecodes-plugin.git
synced 2026-07-22 05:38:08 +00:00
build(e2e): add conditional allure reporter
This commit is contained in:
parent
a2f1687234
commit
f2638b5385
3 changed files with 9 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
"types": [
|
||||
"node",
|
||||
"@wdio/globals/types",
|
||||
"@wdio/allure-reporter",
|
||||
"expect-webdriverio",
|
||||
"@wdio/mocha-framework"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue