空手道黄瓜在Junit 4中报告而无需并行执行 [英] Karate Cucumber reports in Junit 4 without parallel execution

查看:39
本文介绍了空手道黄瓜在Junit 4中报告而无需并行执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将空手道与Junit 4配合使用.

I'm using Karate with Junit 4.

我有一间套房:

@RunWith(Suite.class)
@SuiteClasses({ ExampleRunner1.class, ExampleRunner2.class })
public class ExampleSuiteIT {}

和像这样的跑步者:

@RunWith(Karate.class)
@KarateOptions(tags = {"~@ignore"})
public class ExampleRunner1 {}

我想生成一个cumul.json文件,以使用某些报告工具,例如 Cluecumber

I want to generate a cucumber.json file to use some report tool like Cluecumber

是否必须使用并行执行来生成Cucumber报告?我看到了 DemoTestParallel的实现,那里有很多代码.我正在尝试避免在套件类中使用代码,而且我也不需要并行执行.

Is it mandatory to use the parallel execution to generate Cucumber reports? I saw the implementation of DemoTestParallel and there is a lot of code there. I'm trying to avoid code in my suite class and also I don't need parallel execution.

谢谢.

推荐答案

使用并行执行生成黄瓜报告是否必须

Is it mandatory to use the parallel execution to generate Cucumber reports

必须使用 Runner 类来生成Cucumber JSON文件.如果您不想并行执行,则使用线程数1.然后由您决定如何处理JSON文件.

Using the Runner class is mandatory to generate the Cucumber JSON files. If you don't want parallel execution, use a thread count of 1. Then it is up to you what you want to do with the JSON files.

这篇关于空手道黄瓜在Junit 4中报告而无需并行执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆