diff options
author | 2020-04-15 10:56:13 +0200 | |
---|---|---|
committer | 2020-04-15 10:56:19 +0200 | |
commit | a1e63389b8f56d979463a52cec20c5dc5f7f10f0 (patch) | |
tree | d8aabb75b3a30e11f11c31dd6fa1d0372450881b | |
parent | 2fdf10710620c68ce59cec5c4456709fb62a286a (diff) |
Updating oparent to 2.1.0 and adding JaCoCo
Issue-ID: INT-1517
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: I1dc20dd5394de4c1576ec6f0803054ca3e636e19
-rw-r--r-- | pnfsimulator/pom.xml | 22 | ||||
-rw-r--r-- | pom.xml | 3 |
2 files changed, 24 insertions, 1 deletions
diff --git a/pnfsimulator/pom.xml b/pnfsimulator/pom.xml index 88ae82b..320805e 100644 --- a/pnfsimulator/pom.xml +++ b/pnfsimulator/pom.xml @@ -317,6 +317,28 @@ </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> @@ -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> |