我在空手道测试中使用并行执行。我试图在里面生成一个 cucumber.json 文件target
文件夹。
在当前设置下,surefire-reports 文件夹中有不同的 json 和 xml 文件。有没有办法可以生成包含功能结果的单个 json 文件?
@CucumberOptions( format={"json:target/cucumber.json"})
public class TestParallel {
@Test
public void testParallel() {
String karateOutputPath = "target/surefire-reports";
KarateStats stats = CucumberRunner.parallel(getClass(), 5, karateOutputPath);
generateReport(karateOutputPath);
assertTrue("there are scenario failures", stats.getFailCount() == 0);
}
任何帮助或指示将不胜感激。提前致谢 !
不,但你永远不需要这样做。所有报告解决方案 https://github.com/intuit/karate/tree/master/karate-demo#example-report能够处理多个 JSON 文件。
您想要单个 JSON 有什么具体原因吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)