繁体   English   中英

Maven命令不生成TestNG报告到test-output / junitreports

[英]Maven command not producing TestNG reports to test-output/junitreports

无需配置,我已经能够使用Eclipse并运行TestNG运行配置,将TestNG测试结果生成到test-output / junitreports目录。

但是,在我的Maven构建过程中运行相同的测试(使用相同的测试套件文件)时,不会生成这些测试结果。 我将如何配置我的maven测试项目以与看到Eclipse + TestNG输出结果相同的方式输出?

我可以使用测试项目pom.xml中的配置执行此输出

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.17</version>
                    <configuration>
                        **<reportsDirectory>./test-output</reportsDirectory>**
                        <skipTests>false</skipTests>
                        <suiteXmlFiles>
                            <suiteXmlFile>${testSuiteFile}</suiteXmlFile>
                        </suiteXmlFiles>
                    </configuration>
                </plugin>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM