我正尝试在jenkins中重新运行易碎测试,因为有时我的环境非常慢,我有一个主要运行者,其目的是将失败的功能添加到rerun.txt文件中,然后在jenkins中设置条件步骤运行失败的运行程序,但txt文件似乎没有填充
我的主要跑步者是:
@CucumberOptions(
features = {"src/test/java/noting/feature_files/"},
glue = {"clinical_noting.steps", "clinical_noting.hooks"},
tags = {"@regression"},
monochrome = true,
plugin = {"pretty", "rerun:rerun.txt","json:target/json-report.json", "junit:target/junit-
report.xml", "html:target/html-report","junit:target/cucumber.xml"}
)
public class MainRunner {
}
我失败的跑步者是
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"@target/rerun.txt"},
plugin = {"pretty", "json:target/cucumber-
report/cucumber.json","rerun:target/rerun.txt","junit:target/cucumber.xml"}
//plugin = {"html:target/cucumber/"}
)
public class FailedRunner {
}
创建了rerun.txt文件,但未输入任何内容,我尝试移动到资源文件,但似乎无法正常工作,并确保jenkins中的条件步骤是否应位于“失败的”运行程序所在的位置
答案 0 :(得分:0)
不要在失败的流道中使用重新运行插件。