如何重新运行失败的 Cucumber-JUnit-Platform 场景?

问题描述

我一直在寻找一种仅运行失败的 Cucumber 场景的方法。但是,我找不到使用 Cucumber-JUnit-Platform 做到这一点的方法。我知道 @CucumberOptions 有一种方法,但这不是我可以与 JUnit-Platform 一起使用的方法。如果您能帮助我使用 JUnit-Platform 仅重新运行失败的场景,我将不胜感激。先谢谢大家。

我的跑步课程包括

@Cucumber
public class BaseCucumberTests {
}

我的 junit-platform.properties 文件包括

cucumber.glue=com.bddtests.steps
cucumber.plugin=pretty,junit:target/cucumber-reports/Cucumber.xml,io.qaMeta.allure.cucumber5jvm.AllureCucumber5Jvm
cucumber.filter.tags=not @disabled
cucumber.execution.parallel.enabled=true
cucumber.execution.parallel.config.strategy=fixed
cucumber.execution.parallel.config.fixed.parallelism=10

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)