您的功能请求是否与问题有关?
WebDriverIO v5 CucumberOpts未包含在打字稿中。 我已经添加了wdio.d.ts文件,但是很高兴在webdriverio包中添加了文件。
WebDriverIO版本:5.11.5
interface Options {
cucumberOpts?: {
require: string[],
backtrace: boolean,
requireModule: (string | object)[],
dryRun: boolean,
failFast: boolean,
format: string[],
colors: boolean,
snippets: boolean,
source: boolean,
profile: string[],
strict: boolean,
tagExpression: string,
timeout: number,
ignoreUndefinedDefinitions: boolean
}
}
@espekkaya您可以为此提高公关吗?
我还建议使属性成为可选属性,并将函数类型添加到requireModule数组中
@espekkaya @mgrybyk
tags: string[]
应该是tagExpression: string
https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-cucumber-framework/src/constants.js
它也发生在由wdio cli生成的配置中
@jayrepo ,你是对的。 我现在刚编辑。
最有用的评论
@espekkaya @mgrybyk
tags: string[]
应该是tagExpression: string
https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-cucumber-framework/src/constants.js
它也发生在由wdio cli生成的配置中