gpt4 book ai didi

cucumber-jvm - net.masterthought.cucumber.ValidationException : No report file was added

转载 作者:行者123 更新时间:2023-12-04 11:41:38 27 4
gpt4 key购买 nike

当我使用 Cucumber-maven 报告插件时未生成报告 see image here

最佳答案

主要事情:消息“net.masterthought.cucumber.ValidationException:未添加报告文件!”通常是在Maven Cucumber Html Report Plugin的配置出现问题时出现。 (以下配置示例)

<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>4.2.3</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>TheDayAfterTomorrow</projectName>
<!-- output directory for the generated report -->
<outputDirectory>${project.build.directory}/cucumber-maven-report</outputDirectory>
<inputDirectory>${project.build.directory}/cucumber-json</inputDirectory>
<jsonFiles>
<!-- supports wildcard or name pattern -->
<param>**/*.json</param>
</jsonFiles>
<skippedFails>true</skippedFails>
<enableFlashCharts>true</enableFlashCharts>
<buildNumber>10.2.1</buildNumber>
<parallelTesting>false</parallelTesting>
</configuration>
</execution>
</executions>
</plugin>

次要的事情 ,如果您仍在使用旧版本的 cucumber (1.2.5),请使用最新的可用 cucumber 版本或任何高于 >=4.0.0 的版本更新您的 POM 文件,以获得更好的结果。

通过 JUnit 执行 Cucumber:
 <dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.2.6</version>
</dependency>

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>4.2.6</version>
</dependency>

通过 TestNG 执行 Cucumber:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>4.2.6</version>
</dependency>

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>4.2.6</version>
</dependency>

关于cucumber-jvm - net.masterthought.cucumber.ValidationException : No report file was added,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56541825/

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