首页 > 解决方案 > Cucumber 没有在目标文件夹中生成 index.html 文件

问题描述

这是我的 testRunner 类中的代码:

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 {

}

运行代码后,目标文件夹没有显示index.html文件(我刷新过多次)

在此处输入图像描述

它应该是这样的:

在此处输入图像描述

如何在目标文件夹中获取 index.html 报告?

标签: eclipsetestingcucumber

解决方案


推荐阅读