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对我没有帮助