草庐IT

CucumberOptions

全部标签

java - 使用 System.getProperty() 获取 @CucumberOptions 标签属性

我在Eclipse中运行一个maven项目用于我的Cucumber测试。我的测试运行器类如下所示:@RunWith(Cucumber.class)@CucumberOptions(tags={"@Now"},//tags={"@Ready"},//tags={"@Draft"},features={"src/test/java/com/myCompany/FaultReporting/Features"},glue={"com.myCompany.myApp.StepDefinitions"})publicclassRunnerTest{}我不想将标签硬编码到测试运行程序中,而是热衷于

java - 如何解决@CucumberOptions 中格式选项的弃用问题?

当我在@CucumberOptions中使用选项format进行测试报告时,它显示格式选项已被弃用如何解决。@CucumberOptions(monochrome=true,format={"html:target/cucumber-html-report","json:target/cucumber-json-report.json"}) 最佳答案 用插件替换格式@CucumberOptions(monochrome=true,plugin={"html:target/cucumber-html-report","json:tar