summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Gaffa <avi.gaffa@amdocs.com>2017-09-10 15:22:07 +0300
committeravigaffa <avi.gaffa@amdocs.com>2017-09-10 15:41:56 +0300
commit7d6d63c8a5bf3fba3b8a4a3fea372da02458c0ed (patch)
treead72ffee6f7d1305e767fa7ebfcabdd17caccf30
parent00e935fc6b8baae4d9b9ffef2c748202a60b66b4 (diff)
Add jacoco code coverage to onboarding
Issue-ID: SDC-303 Change-Id: Ia9c94ba4b2021fb7c5ff2213eb795370cac5ae4b Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
-rw-r--r--onboarding/pom.xml1
-rw-r--r--openecomp-be/pom.xml20
2 files changed, 21 insertions, 0 deletions
diff --git a/onboarding/pom.xml b/onboarding/pom.xml
index 36a36ee325..141ffc012d 100644
--- a/onboarding/pom.xml
+++ b/onboarding/pom.xml
@@ -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>
diff --git a/openecomp-be/pom.xml b/openecomp-be/pom.xml
index 92d5bccf0b..10b59fa23f 100644
--- a/openecomp-be/pom.xml
+++ b/openecomp-be/pom.xml
@@ -111,6 +111,26 @@
</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>