Skip to content

Commit

Permalink
Run tests in parallel for specified modules
Browse files Browse the repository at this point in the history
 * running tests in multiple forks results
   in significant speed-up

 * only some modules are able to run tests in
   parallel, others like -jpa would need to be
   fixed first to not depend on each other.

 * it also makes most sense for modules which build
   time is high (most of the time is spent in tests).
  • Loading branch information
Petr Siroky authored and mariofusco committed Aug 10, 2015
1 parent 9a94c0c commit d3cced0
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions drools-compiler/pom.xml
Expand Up @@ -14,6 +14,10 @@

<name>Drools :: Compiler</name>

<properties>
<surefire.forkCount>2</surefire.forkCount>
</properties>

<dependencies>
<!-- Internal dependencies -->
<dependency>
Expand Down
4 changes: 4 additions & 0 deletions drools-core/pom.xml
Expand Up @@ -14,6 +14,10 @@

<name>Drools :: Core</name>

<properties>
<surefire.forkCount>2</surefire.forkCount>
</properties>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
Expand Down
4 changes: 4 additions & 0 deletions drools-pmml/pom.xml
Expand Up @@ -32,6 +32,10 @@
<name>Drools :: PMML - Compiler </name>
<description>Support for PMML-Encoded Predictive Models</description>

<properties>
<surefire.forkCount>2</surefire.forkCount>
</properties>

<dependencies>
<dependency>
<groupId>org.drools</groupId>
Expand Down
2 changes: 1 addition & 1 deletion drools-reteoo/pom.xml
Expand Up @@ -117,4 +117,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
19 changes: 19 additions & 0 deletions pom.xml
Expand Up @@ -20,6 +20,10 @@
Drools Expert is the rule engine and Drools Fusion does complex event processing (CEP).
</description>

<properties>
<surefire.forkCount>1</surefire.forkCount>
</properties>

<repositories>
<!-- Bootstrap repository to locate the parent pom when the parent pom has not been build locally. -->
<repository>
Expand Down Expand Up @@ -66,6 +70,21 @@
<module>knowledge-api-legacy5-adapter</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>${surefire.forkCount}</forkCount>
<reuseForks>true</reuseForks>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>fullProfile</id>
Expand Down

0 comments on commit d3cced0

Please sign in to comment.