黄瓜JUnit Platform Engine无法设置并行执行

时间:2020-06-16 16:35:27

标签: java gradle cucumber junit5 cucumber-jvm

P。科尔斯坦耶,请帮助我,

使用以下配置创建文件junit-platform.properties

cucumber.execution.parallel.enabled=true
cucumber.execution.parallel.config.strategy=fixed
cucumber.execution.parallel.config.fixed.parallelism=16

用过的gradle

黄瓜='5.6.0'

黄瓜赛跑者

import io.cucumber.junit.Cucumber;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
public class RunCucumberTest {
}

hookClass

@SpringBootTest(classes = SpringBootCucumberApplication.class)
public class UIHooks {}

SpringApp

@ExtendWith(SpringExtension.class)
@SpringBootApplication(scanBasePackages = {"io.tpd.springbootcucumber"})
@EntityScan(basePackages = {"io.tpd.springbootcucumber"})
public class SpringBootCucumberApplication {}

例如,我尝试将https://github.com/cucumber/cucumber-jvm/blob/master/junit-platform-engine/README.md#surefire-and-gradle-workarounds用于Gradle

但是通过注册(JavaExec :: class)解决方案和@Cucumber的val consoleLauncherTest对我没有帮助

0 个答案:

没有答案
相关问题