Junit 4 中的 Karate Cucumber 报告无需并行执行
Karate Cucumber reports in Junit 4 without parallel execution
我在 Junit 4 中使用空手道。
我有一套:
@RunWith(Suite.class)
@SuiteClasses({ ExampleRunner1.class, ExampleRunner2.class })
public class ExampleSuiteIT {}
和这样的跑步者:
@RunWith(Karate.class)
@KarateOptions(tags = {"~@ignore"})
public class ExampleRunner1 {}
我想生成一个 cucumber.json 文件以使用一些报告工具,例如 Cluecumber
是否必须使用并行执行来生成 Cucumber 报告?我看到了 DemoTestParallel 的实现,那里有很多代码。我试图避免在我的套件中使用代码 class,而且我不需要并行执行。
提前致谢。
Is it mandatory to use the parallel execution to generate Cucumber reports
必须使用 Runner
class 才能生成 Cucumber JSON 文件。如果您不想并行执行,请使用线程数 1。然后由您决定如何处理 JSON 个文件。
我在 Junit 4 中使用空手道。
我有一套:
@RunWith(Suite.class)
@SuiteClasses({ ExampleRunner1.class, ExampleRunner2.class })
public class ExampleSuiteIT {}
和这样的跑步者:
@RunWith(Karate.class)
@KarateOptions(tags = {"~@ignore"})
public class ExampleRunner1 {}
我想生成一个 cucumber.json 文件以使用一些报告工具,例如 Cluecumber
是否必须使用并行执行来生成 Cucumber 报告?我看到了 DemoTestParallel 的实现,那里有很多代码。我试图避免在我的套件中使用代码 class,而且我不需要并行执行。
提前致谢。
Is it mandatory to use the parallel execution to generate Cucumber reports
必须使用 Runner
class 才能生成 Cucumber JSON 文件。如果您不想并行执行,请使用线程数 1。然后由您决定如何处理 JSON 个文件。