I have 2 test suites. One can be run in parallel and the other must be run sequentially. See definition below.
What I see is that only the second one runs.
I tried to define 2 plugins. Didn't work.
I tried to give them differen execution ID. Didn't work.
I tried to put the configuration under the execution, but got an error that the elements under the configuration aren't allowed, like failIfNoSpecifiedTests
.
Any idea how I can run the suites with different configurations - one in parallel and the other sequentially?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
<id>SequentialTests</id>
</execution>
</executions>
<configuration>
<includes>
<include>**/SequentialTests.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
<id>ParallelTests</id>
</execution>
</executions>
<configuration>
<includes>
<include>**/ParallelTests.java</include>
</includes>
<threadCount>10</threadCount>
<parallel>classes</parallel>
</configuration>
</plugin>