You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/06/07 02:40:17 UTC

[james-project] 03/05: JAMES-2717 Fasten ElasticSearch backend tests by reusing forks

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 9fc36dbbf3ba7be37d01eddfeb8baaa4e699aff0
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Jun 6 15:20:49 2019 +0700

    JAMES-2717 Fasten ElasticSearch backend tests by reusing forks
    
    Init of the docker engine is done 5 times, as well as starting the
    ElasticSearch singleton. Re-using forks allows doing this only once using
    mvn to run tests.
---
 backends-common/elasticsearch/pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/backends-common/elasticsearch/pom.xml b/backends-common/elasticsearch/pom.xml
index 34c99af..7f92990 100644
--- a/backends-common/elasticsearch/pom.xml
+++ b/backends-common/elasticsearch/pom.xml
@@ -99,4 +99,16 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <reuseForks>true</reuseForks>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org