如何在Junit的BDD黄瓜中进行平行执行
我有可能使用Junit在BDD Cucumber框架中进行并行执行的可能性
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我有可能使用Junit在BDD Cucumber框架中进行并行执行的可能性
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
如果使用Junit 5的Cucumber,则可以添加
cucumber.execution.parallel.enabled = true
junit-platform.properties file。有关线程数的更多控制,您可以使用一些额外的选项:
如果您没有Junit 5的Cucumber的工作例子Noreferrer“> Cucumber-Java-Skeleton 。
If you are using cucumber with JUnit 5, you can add
cucumber.execution.parallel.enabled=true
to thejunit-platform.properties
file.For more control on the number of threads you can use some extra options from the documentation:
If you don't have a working example of Cucumber with JUnit 5 start with the cucumber-java-skeleton.