【发布时间】:2018-11-21 20:15:32
【问题描述】:
我正在尝试使用 maven surefire 插件并行执行 Testng 测试。
请在下面找到我正在使用的配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<skipTests>${skipTests}</skipTests>
<suiteXmlFiles>
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
<parallel>tests</parallel>
<threadCount>5</threadCount>
<systemProperties>
<property>
<name>testData</name>
<value>${testData}</value>
</property>
<property>
<name>testDataDelimiter</name>
<value>${testDataDelimiter}</value>
</property>
</systemProperties>
</configuration>
</plugin>
使用此配置,我只能看到一个线程开始执行。有人可以建议我并行执行 testng 测试的解决方案吗?
【问题讨论】:
-
parallel没有tests值...你试过methods或suites吗? -
是的,我尝试了方法,但也没有用。此外,使用方法我只能看到一个线程被触发。
标签: java maven testng maven-surefire-plugin