[英]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.