From 6f3aa114ad9c95c744c144bcf525205a8568e2e6 Mon Sep 17 00:00:00 2001
From: Colin DAMON <cdamon@ippon.fr>
Date: Sat, 22 Aug 2020 20:19:02 +0200
Subject: [PATCH] Merge test coverages

---
 borestop/pom.xml | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/borestop/pom.xml b/borestop/pom.xml
index b58010cf..9c7972c6 100644
--- a/borestop/pom.xml
+++ b/borestop/pom.xml
@@ -546,6 +546,36 @@
                 <outputDirectory>${jacoco.itReportFolder}</outputDirectory>
               </configuration>
             </execution>
+            <execution>
+              <id>merge</id>
+              <phase>verify</phase>
+              <goals>
+                <goal>merge</goal>
+              </goals>
+              <configuration>
+                <fileSets>
+                  <fileSet
+                    implementation="org.apache.maven.shared.model.fileset.FileSet">
+                    <directory>${project.basedir}</directory>
+                    <includes>
+                      <include>**/*.exec</include>
+                    </includes>
+                  </fileSet>
+                </fileSets>
+                <destFile>${project.build.directory}/coverage-reports/aggregate.exec</destFile>
+              </configuration>
+            </execution>
+            <execution>
+              <id>post-merge-report</id>
+              <phase>verify</phase>
+              <goals>
+                <goal>report</goal>
+              </goals>
+              <configuration>
+                <dataFile>${project.build.directory}/coverage-reports/aggregate.exec</dataFile>
+                <outputDirectory>${project.build.directory}/jacoco-aggregate</outputDirectory>
+              </configuration>
+            </execution>
           </executions>
         </plugin>
         <plugin>
@@ -796,8 +826,6 @@
           <configuration>
             <mainClass>${start-class}</mainClass>
             <fork>true</fork>
-            <!-- Enable the line below to have remote debugging of your application 
-              on port 5005 <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments> -->
           </configuration>
 
         </plugin>
-- 
GitLab