如何在空手道中重新运行失败的功能? [英] How to rerun failed features in karate?
问题描述
谁能帮助我重新运行空手道中失败的功能.下面是用于并行的黄瓜选项和流道测试-
Can anyone help me to rerun failed features in karate. below are the cucumber options and runner test which is using for parallel -
@CucumberOptions(features = "classpath:features/xxxxx/crud_api",
format = {"pretty", "html:target/cucumber","json:target/cucumber/report.json", "rerun:target/rerun/rerun.txt" })
@Test
public void test() throws IOException {
Results results = KarateRunnerTest.parallel(getClass(), threadCount, karateOutputPath);
assertTrue("there are scenario failures", results.getFailCount() == 0);
}
推荐答案
空手道不支持此功能,但是在开发模式下(例如,使用IDE),您始终可以手动重新运行失败的测试.
This is not something that Karate supports, but in dev mode (using the IDE for example) you can always re-run the failed tests manually.
您似乎使用了空手道不支持的注释选项,例如 format
.阅读文档,了解受限于功能
和标签
的支持.
You seem to be using annotation options not supported by Karate, e.g. format
. Read the docs for what is supported it is limited to features
and tags
.
编辑-空手道1.0为此提供了实验性支持: https://github.com/intuit/karate/wiki/1.0-upgrade-guide#retry-framework-experimental
EDIT - Karate 1.0 has experimental support for this: https://github.com/intuit/karate/wiki/1.0-upgrade-guide#retry-framework-experimental
这篇关于如何在空手道中重新运行失败的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!