Skip to content

Commit

Permalink
Reduced Surefire concurrency
Browse files Browse the repository at this point in the history
Between Surefire concurrent tests, JaCoCo and Derby; tests were failing
with terminated forked JVMs on Travis CI.
Resolving this by reducing Surefire concurrency to 2 forks (no reuse) /
2 threads.

Change-Id: I6cf18dd1322d4f4650ada9fdbf933aa5e7dd254f
  • Loading branch information
bindul committed Feb 16, 2016
1 parent 8765015 commit 00fd81c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions junit-helper-derby/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ limitations under the License.
<developerConnection>${project.parent.scm.developerConnection}</developerConnection>
<url>${project.parent.scm.url}</url>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Sets the VM argument line used when unit tests are run for jacoco-maven-plugin. -->
<argLine>${surefireArgLine}</argLine>
<parallel>classes</parallel>
<!-- Between Surefire, JaCoCo and Travis CI, parallel tests seem to fail; force almost sequential -->
<threadCount>2</threadCount>
<forkCount>2</forkCount>
<reuseForks>false</reuseForks>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.deventropy.shared-utils</groupId>
Expand Down

0 comments on commit 00fd81c

Please sign in to comment.