Updating oparent to 2.1.0 and adding JaCoCo 93/105993/1
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Wed, 15 Apr 2020 08:56:13 +0000 (10:56 +0200)
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Wed, 15 Apr 2020 08:56:19 +0000 (10:56 +0200)
Issue-ID: INT-1517
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: I1dc20dd5394de4c1576ec6f0803054ca3e636e19

pnfsimulator/pom.xml
pom.xml

index 88ae82b..320805e 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>prepare-agent</id>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>report</id>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                        <configuration>
+                            <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+                            <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     <profiles>
diff --git a/pom.xml b/pom.xml
index 743de34..fe9d8c3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
     <parent>
         <groupId>org.onap.oparent</groupId>
         <artifactId>oparent</artifactId>
-        <version>2.0.0</version>
+        <version>2.1.0</version>
     </parent>
 
     <groupId>org.onap.integration.simulators.pnf-simulator</groupId>
@@ -49,6 +49,7 @@
         <maven.compiler.target>1.8</maven.compiler.target>
         <docker-maven-plugin.version>0.31.0</docker-maven-plugin.version>
         <skipDockerPush>true</skipDockerPush>
+        <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
     </properties>
 
     <profiles>