【发布时间】:2019-07-05 10:06:59
【问题描述】:
定义了 suiteXmlFile 时是否可以并行执行?我的配置如下。如果测试是在线程中并行执行的,我们也可以吗?它是否出现在日志文件中?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<!-- Suite testng xml file to consider for test execution -->
<parallel>classes</parallel>
<threadCount>10</threadCount>
<suiteXmlFiles>
<suiteXmlFile>mytests.xml</suiteXmlFile>
<!--<suiteXmlFile>suites-test-testng.xml</suiteXmlFile>-->
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
【问题讨论】:
标签: maven maven-plugin maven-surefire-plugin