gpt4 book ai didi

java - cucumber 报告不生成

转载 作者:行者123 更新时间:2023-12-01 21:35:16 25 4
gpt4 key购买 nike

我遇到了无法生成 cucumber 报告的问题。我正在使用 IntelliJ 运行测试。

这是我的 pom:

        <!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>4.8.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.8.0</version>
<scope>test</scope>
</dependency>

我创建了一个 RunCucumberTest.java 类,其中包含以下内容:

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty", "html:target/reports", "json:target/reports/cucumber.json"},
glue = {"com.PACKAGE.featureTests"})
public class RunCucumberTest {
}

我已经使用 IntelliJ 插件成功运行了它,有失败也有失败(我知道有些问题是出现失败时不会生成报告)。但在这两种情况下都不会在我的目标文件夹中创建任何报告。

想法?

最佳答案

我终于通过升级到 5.1.3 解决了我的问题,并且它们在那里生成得很好。

关于java - cucumber 报告不生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58804330/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com