基于official documentation,Cucumber4的Serenity支持并行执行。我执行以下步骤:
结果,顺序执行了两个方案,但不是并行执行。我没有对pom.xml file进行任何更改,为什么?
仅当添加第二个运行器Cucumber2TestSuite
时,测试才并行运行。因此,只有以下配置对我有用。
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {"pretty"},
features = "src/test/resources/features/search"
)
public class Cucumber2TestSuite {}
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {"pretty"},
features = "src/test/resources/features/research"
)
public class CucumberTestSuite {}
这是否意味着能够并行运行宁静功能-每个功能我都应该有单独的运行器?