Java Maven cucumber报告插件不工作
MasterThink cucumber reporting插件正在执行cucumber report正在生成,这就是为什么它无法获取给定路径下的cucumber.json文件 在pom.xml中,阶段是验证,目标是生成,如下所示,我不确定生成报告后执行插件的执行顺序Java Maven cucumber报告插件不工作,java,cucumber,pom.xml,maven-plugin,Java,Cucumber,Pom.xml,Maven Plugin,MasterThink cucumber reporting插件正在执行cucumber report正在生成,这就是为什么它无法获取给定路径下的cucumber.json文件 在pom.xml中,阶段是验证,目标是生成,如下所示,我不确定生成报告后执行插件的执行顺序 <plugin> <groupId>net.masterthought</groupId> <ar
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>(check version above)</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>cucumber-jvm-example</projectName>
<outputDirectory>${project.build.directory}</outputDirectory>
<jsonFiles>
<!-- supports wildcard or name pattern -->
<param>**/*.json</param>
</jsonFiles>
<classificationFiles>
<!-- supports wildcard or name pattern -->
<param>sample.properties</param>
<param>other.properties</param>
</classificationFiles>
<parallelTesting>false</parallelTesting>
</configuration>
</execution>
</executions>
</plugin>
网络智囊团
马文黄瓜报道
(检查以上版本)
执行
验证
生成
黄瓜jvm示例
${project.build.directory}
**/*.json
示例1.properties
其他财产
假的
如果删除此插件,则成功生成cucumber报告。我希望这个maven报告在生成报告后执行
任何潜在客户都将不胜感激。您是否应该向pom添加一个版本的maven cucumber报告,而不是文本?你能在跑步者身上添加黄瓜选项吗?尝试注释JSonfile、classi..文件和并行。。。使用${project.build.directory}/json。还应提及outputDirectory配置中的子目录,如cucumber-report-etc-etc…解决方案: