无法生成Maven黄瓜报告

时间:2020-07-24 19:49:37

标签: maven cucumber maven-plugin cucumber-jvm cucumber-java

无法通过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

0 个答案:

没有答案