Cucumber 黄瓜中的动态特征文件传递
我想在Cucumber注释下面的“Features”字段中动态传递特性文件名Cucumber 黄瓜中的动态特征文件传递,cucumber,gherkin,Cucumber,Gherkin,我想在Cucumber注释下面的“Features”字段中动态传递特性文件名 @CucumberOptions( dryRun = false, strict = true, features = { "src/com/Proj/Feature/Dashboard.feature" }, glue = "com/Proj/StepDefinition", tags = {}, monochrome = true, plugin = { "pret
@CucumberOptions(
dryRun = false,
strict = true,
features = {
"src/com/Proj/Feature/Dashboard.feature"
},
glue = "com/Proj/StepDefinition",
tags = {},
monochrome = true,
plugin = {
"pretty",
"html:target/site/cucumber-pretty",
"json:target/cucumber.json"
}
)
当前在运行之前,我们必须传递功能文件,不希望硬编码Dashboard.feature功能文件。默认情况下,您将仅在运行时传递
。feature
文件
运行特定功能文件
> cucumber feature_file_name.feature
运行特定场景
黄瓜特征\文件\名称。特征:(场景行号)
在项目中运行整个要素文件
> cucumber
您能否在此上下文中提供一些配置或代码?
> cucumber