Karate 并行运行空手道测试时必须使用spring引导吗?

Karate 并行运行空手道测试时必须使用spring引导吗?,karate,Karate,如果不使用spring boot framework(它是空手道演示代码的一部分),如何并行运行空手道测试?不,并行运行空手道测试不需要spring boot framework 如果您有自己的项目,并且有自己的api/任何公共api和为这些api编写的空手道测试,那么您不需要spring boot 只有当您想使用空手道演示项目时,才需要SpringBoot,因为它使用SpringBoot作为在空手道演示上编写的测试的模拟web服务 所以,如果你不想有春季开机不要使用空手道演示 现在,如何并行运

如果不使用spring boot framework(它是空手道演示代码的一部分),如何并行运行空手道测试?

不,并行运行空手道测试不需要spring boot framework

如果您有自己的项目,并且有自己的api/任何公共api和为这些api编写的空手道测试,那么您不需要spring boot

只有当您想使用空手道演示项目时,才需要SpringBoot,因为它使用SpringBoot作为在空手道演示上编写的测试的模拟web服务

所以,如果你不想有春季开机不要使用空手道演示

现在,如何并行运行测试,

来自空手道文档的样本

@Test 
public void testParallel() { 
   KarateStats stats = CucumberRunner.parallel(getClass(), 5, "target/surefire-reports"); 
   assertTrue("scenarios failed", stats.getFailCount() == 0); 
}
这里的并行线程数定义为
5
,您可以根据需要进行定义

有关更多详细信息,我建议您阅读本文档

@Test 
public void testParallel() { 
   KarateStats stats = CucumberRunner.parallel(getClass(), 5, "target/surefire-reports"); 
   assertTrue("scenarios failed", stats.getFailCount() == 0); 
}