我的 POM 目前看起来像,
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>2.8.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>ExecuteAutomation</projectName>
<outputDirectory>${project.build.directory}/cucumber-report-html</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
</configuration>
</execution>
</executions>
</plugin>
这确实会生成报告,但仅包含最后一个功能。我有多个跑步者,所以我试图弄清楚:
A. 如何将多个 JSON 合并到一份报告中或
B. 如何在每个测试完成时附加到一个 JSON 文件?
这些中的任何一个似乎都是一个可行的解决方案,尽管我更喜欢 A 因为我似乎只在我的 pom.xml 中丢失了一行,因为我目前已经在生成多个 JSON 文件