I am trying to run suite files in parallel (JunitTestOneSuite, JunitTestTwoSuite).
Code: https://bitbucket.org/connect2tech/connect2tech.in-apachemavenparallel
I am using the pom-in.connect2tech.parallel.suites.xml to run them in parallel using the following entry:
I tried setting parallel tag in pom file as suites, but it methods run in paralle.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<parallel>suites</parallel>
<threadCount>5</threadCount>
<includes>
<include>**/JunitTestTwoSuite.class</include>
<include>**/JunitTestOneSuite.class</include>
</includes>
</configuration>
</plugin>
If i remove the following lines:
<parallel>suites</parallel>
<threadCount>5</threadCount>
It will run as methods, but I want to execute the suites in parallel. I am not able to execute the suites in parallel. Please help.
I want to be able to run the suites in different threads.