I am trying to execute Testng tests in parallel using maven surefire plugin.
Please find below the configuration I am using:
<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>
With this configuration I can see only one thread getting started for the execution. Could someone please suggest me the solution for executing the testng tests in parallel.
tests
value forparallel
... Have you triedmethods
orsuites
? – M. Deinum