为什么最后一个为我的黄瓜测试方案运行生成报告的插件正常工作

时间:2018-09-11 20:01:47

标签: java cucumber

为什么最后一个为我的黄瓜测试方案运行生成报告的插件正常工作 编译-Surefire SkipTest-带有Java的Mvn-exec-Plgun- failsafe-verify 在Maven中运行

     

    <!-- ####### maven-compiler-plugin ######### -->
       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.2</version>
            <configuration>
                    <!--fork>true</fork-->
                <encoding>UTF-8</encoding>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>

   <!-- ####### maven-surefire-plugin ######### -->
        <plugin>

执行>

    </plugin>

<!-- ####### maven-cucumber-reporting ######### -->
        <plugin>
                <groupId>net.masterthought</groupId>
                <artifactId>maven-cucumber-reporting</artifactId>
                <version>3.8.0</version>                
            <executions>
                <execution>
                    <id>execution</id>
                    <phase>verify</phase>
                    <goals>
                         <goal>generate</goal>
                    </goals>
                    <configuration>
                        <projectName>AutoRunner_Cucumber</projectName>
                        <outputDirectory>${project.build.directory}/cucumber-reports</outputDirectory>
                        <jsonFiles>
                            <!-- supports wildcard or name pattern -->
                            <param>${project.build.directory}/target/cucumber.json</param>
                        </jsonFiles>
                     </configuration>   
                </execution>
            </executions>
        </plugin>

 </plugins>
</build>

0 个答案:

没有答案