简体   繁体   English

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

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

Without configuring, I've been able to produce TestNG test results to the test-output/junitreports directory using Eclipse and running a TestNG run configuration. 无需配置,我已经能够使用Eclipse并运行TestNG运行配置,将TestNG测试结果生成到test-output / junitreports目录。

However, when running my the same tests during my maven build (using the same test suite file), these test results are not produced. 但是,在我的Maven构建过程中运行相同的测试(使用相同的测试套件文件)时,不会生成这些测试结果。 How would I configure my maven test project to output the same way I see Eclipse+TestNG outputting the results? 我将如何配置我的maven测试项目以与看到Eclipse + TestNG输出结果相同的方式输出?

I was able to perform this output with the configuration in my test project pom.xml 我可以使用测试项目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.

相关问题 关闭TestNG中的测试输出 - Turning off test-output in TestNG 如何将TestNG测试输出文件夹配置为在Maven目标文件夹中? - How to config TestNG test-output folder to be inside Maven target folder? Maven项目不会在Selenium项目的test-output文件夹中生成testng结果 - Maven project does not generate testng results within test-output folder from selenium project 如何从testng测试生成测试输出文件夹? - How to generate test-output folder from testng tests? 截图未在TestNG,Selenium中的test-output文件夹下创建 - Screenshots not created under test-output folder in TestNG, Selenium 如何将 testng-results.xml 文件保存到 test-output 文件夹以外的不同文件夹? - how to save the testng-results.xml file to different folder other than test-output folder? TestNG在Reporter之后我可以在哪里运行代码? 想要发送test-output / emailable-report.html - TestNG where can I run code after Reporter? Want to send test-output/emailable-report.html Maven TestNG 测试未从命令行运行 - Maven TestNG Test not running from Command Line 如何使用时间戳生成单独的测试输出文件夹? - How to generate separate test-output folder with timestamp? 如何从ITestListener访问Reporter使用的测试输出目录 - How to access test-output directory that Reporter uses from ITestListener
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM