如何使用Cucumber重新运行失败的方案? [英] How to rerun the failed scenarios using Cucumber?

查看:549
本文介绍了如何使用Cucumber重新运行失败的方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Cucumber做我的测试。

I'm using Cucumber for my tests. How do I rerun only the failed tests?

推荐答案

使用rerun formatter运行Cucumber:

Run Cucumber with rerun formatter:

cucumber -f rerun --out rerun.txt

它会将所有失败情况的位置输出到此文件。

It will output locations of all failed scenarios to this file.

然后您可以使用

cucumber @rerun.txt

这篇关于如何使用Cucumber重新运行失败的方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆