无法通过maven-cucumber-reporting生成黄瓜报告
在pom中使用以下插件:
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>3.15.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>cucumber-jvm-example</projectName>
<outputDirectory>${project.build.directory}/cucumber-JVM-reports</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
<skippedFails>true</skippedFails>
<enableFlashCharts>true</enableFlashCharts>
<buildNumber>42</buildNumber>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
不确定maven命令是否存在问题,请尝试以下2条命令
:mvn clean dependency:resolve verify -e -U package -Dcucumber.options="--tags @testRaw2" -P env
mvn clean install -Dcucumber.options="--tags @testRaw2" -P env