【发布时间】:2023-03-08 17:06:01
【问题描述】:
下面的黄瓜运行器类生成一个 JSON 文件。然后使用此 JSON 生成黄瓜报告。
我已经在我的资源中添加了一个新的 .feature 文件。
功能文件中的两组测试都通过了,但问题是没有生成第二个 JSON 文件,所以没有记录我的第二组结果。
@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"progress",
"html:build/report/cucumber/html",
"junit:build/report/cucumber/junit/cucumber.xml",
"json:build/report/cucumber/json/cucumber.json"
},
glue = {"com.commercial.tests"},
features = {"src/test/resources/templates"},
tags = {"@BR000, @BR002a, @BR002b, @BR003, @BR004, @BR004b, @BR005, @BR006, @BR007, @BR008", "not @wip"}
)
public class QARunner {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.exit(0);
}
}
上面,我指定创建cucumber.json,但是如何为第二个.feature指定第二个json文件呢?
【问题讨论】:
标签: spring-boot cucumber