Add jacoco code coverage to onboarding 07/11507/3
authorAvi Gaffa <avi.gaffa@amdocs.com>
Sun, 10 Sep 2017 12:22:07 +0000 (15:22 +0300)
committeravigaffa <avi.gaffa@amdocs.com>
Sun, 10 Sep 2017 12:41:56 +0000 (15:41 +0300)
Issue-ID: SDC-303
Change-Id: Ia9c94ba4b2021fb7c5ff2213eb795370cac5ae4b
Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
onboarding/pom.xml
openecomp-be/pom.xml

index 36a36ee..141ffc0 100644 (file)
@@ -20,6 +20,7 @@
 
     <properties>
         <!-- Maven plugin versions -->
+        <jacoco.version>0.7.9</jacoco.version>
         <mvn.assembly.version>2.1</mvn.assembly.version>
         <mvn.compiler.version>2.5.1</mvn.compiler.version>
         <mvn.deploy.version>2.4</mvn.deploy.version>
index 92d5bcc..10b59fa 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>${jacoco.version}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>report</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
 
         </plugins>
     </build>