我想在下面的Cucumber注释中的“特性”字段中动态地传递功能文件名
@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特性文件。
发布于 2016-01-08 17:48:02
默认情况下,您将只在运行时传递.feature文件。
来运行特定的特性文件
> cucumber feature_file_name.feature运行特定场景的
黄瓜feature_file_name.feature:(编号行)(假设情况)
> cucumber feature_file_name.feature:10在项目中运行整个特性文件
> cucumberhttps://stackoverflow.com/questions/34677573
复制相似问题