[英]Cucumber is not generating index.html file in the target folder
这是我的 testRunner class 中的代码:
package testRunners;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/resources"},
glue = {"stepDef"},
plugin = {"pretty", "html:target/cucumber-reports"}
)
public class testRunner {
}
运行代码后,target文件夹没有显示index.html文件(我刷新了多次)
它应该是这样的:
如何在目标文件夹中获取 index.html 报告?
用这个plugin = {"html:target/cucumber-reports.html"}
.html扩展是必需的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.