我试图生成黄瓜报告,但是每次结果中,我只有一个功能。上次执行的报告会覆盖其类似报告。 我尝试使用“ html:target / cucumber-reports”,还尝试使用插件maven-cucumber-reporting-结果相同。
例如,我有多个xxxTest.java文件
@RunWith(Cucumber.class)
@CucumberOptions(glue = {"classpath:it.xxx.features",
"classpath:it.xxx.cleanup"},
features = "classpath:it/.../dependency.feature",
plugin = {"pretty", "html:target/cucumber-reports"})
public class MyFirstTest extends AbstractFeatureTestBase {
}
@RunWith(Cucumber.class)
@CucumberOptions(glue = {"classpath:it.xxx.features",
"classpath:it.xxx.cleanup"},
features = "classpath:it/.../second.feature",
plugin = {"pretty", "html:target/cucumber-reports"})
public class MySecondTest extends AbstractFeatureTestBase {
}
和AbstractFeatureTestBase:
@CucumberOptions(glue = "classpath:it.xxx.steps", monochrome = true)
@FixMethodOrder(MethodSorters.JVM)
public abstract class AbstractFeatureTestBase {
....
}
完成Maven(集成测试)后,在黄瓜报告中,我只能找到一个功能。没有其他班级。在竹子上,我可以看到所有测试都已执行。
黄瓜版本:1.2.5
帮助任何人? 谢谢