不需要读取特性文件,只需编写正确的注释和变量名称,我希望能够"编译"特性文件并自动生成Java测试文件。
有可能吗?您知道有哪些工具可以做到这一点吗?
不需要读取特性文件,只需编写正确的注释和变量名称,我希望能够"编译"特性文件并自动生成Java测试文件。
有可能吗?您知道有哪些工具可以做到这一点吗?
你可以设置dryRun=true
,这样就可以显示所有缺失的步骤。
@RunWith(Cucumber.class)
@CucumberOptions( monochrome = true,
tags = "@tags",
features = "src/test/resources/features/",
format = { "pretty","html: cucumber-html-reports",
"json: cucumber-html-reports/cucumber.json" },
dryRun = true,
glue = "glue_code_folder" )
public class RunCucumber_Test {
//Run this
}