我在Android Studio中使用带有Espresso测试自动化框架的Cucumber JVM。
但是,当我尝试导出报告html时,它只显示方案的标题,但不显示失败/通过的步骤。
我在步骤定义类中使用Cucumber注释,如下所示。
@CucumberOptions(features = "features")
public class TestStepDef extends ActivityInstrumentationTestCase2<MainActivity> {
}
当我尝试在我的CucumberOptions
注释中添加json格式化程序时,测试运行,但是说空测试套件。
@CucumberOptions(
format =
{"pretty", "html:target/cucumber-html-report", "json:target/cucumber-report.json"},
features = "features")