如何使用 Cucumber 重新运行失败的场景?如何使用、场景、Cucumber

由网友(不是每个人都有机会,重新站在当初的十字路口。)分享简介:我正在使用 Cucumber 进行测试.如何仅重新运行失败的测试?I'm using Cucumber for my tests. How do I rerun only the failed tests?推荐答案用 rerun formatter 运行 Cucumber:Run Cucumber with r...

我正在使用 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.

然后您可以使用重新运行它们

Then you can rerun them by using

cucumber @rerun.txt
阅读全文

相关推荐

最新文章