I added in my pom.xml the following plugin to run test classes in parallel
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <parallel>classes</parallel> <threadCount>10</threadCount> <systemPropertyVariables> <profile.name>${profile.name}</profile.name> </systemPropertyVariables> <forkCount>1</forkCount> <testFailureIgnore>true</testFailureIgnore> </configuration> </plugin>
And i have
@RunWith(Suite.class)
@Suite.SuiteClasses({
test_1.class,
test_2.class
})
when i run it as a junit test it runs sequential not parallel... any help ??