繁体   English   中英

Cucumber 未在目标文件夹中生成 index.html 文件

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM