summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee, Tian (tl5884) <tianl@amdocs.com>2019-03-29 17:23:48 +0000
committerLee, Tian (tl5884) <tianl@amdocs.com>2019-03-29 17:23:48 +0000
commit014d0313e24d5cf091943e0d0552f4960a5818d3 (patch)
treeff6b8f9e3c13405000335ca4971f6cf5c2c4a8b8
parent805f654e66cf34be8e314a43b5498020da6e7851 (diff)
Improve Jacoco plugin config4.0.0-ONAPdublin
Jacoco plugin is already configured in oparent pom, so remove duplicate config, leaving only the line coverage check section. Change-Id: I69c8941173776a56dbc96ac289c4547a6972ba9a Issue-ID: AAI-2293 Signed-off-by: Lee, Tian (tl5884) <tianl@amdocs.com>
-rw-r--r--pom.xml32
1 files changed, 2 insertions, 30 deletions
diff --git a/pom.xml b/pom.xml
index e5f9527..e50d7af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,7 +46,7 @@
<!-- Minimum code coverage percentage. Please update this figure as coverage increases to prevent any drops in
coverage caused by new changes. Note that this figure cannot be lower than the ONAP requirement of 0.55 -->
<jacoco.line.coverage.limit>0.90</jacoco.line.coverage.limit>
- <jacoco.report.directory>${project.build.directory}/coverage-reports</jacoco.report.directory>
+ <jacoco.report.directory>${project.build.directory}/code-coverage</jacoco.report.directory>
</properties>
<modules>
@@ -136,42 +136,14 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
- <version>0.7.9</version>
- <configuration>
- <dumpOnExit>true</dumpOnExit>
- </configuration>
<executions>
<execution>
- <id>pre-unit-test</id>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- <configuration>
- <destFile>${jacoco.report.directory}/jacoco.exec</destFile>
- <propertyName>surefireArgLine</propertyName>
- <!-- <append>true</append> -->
- </configuration>
- </execution>
- <execution>
- <id>post-unit-test</id>
- <phase>test</phase>
- <goals>
- <goal>report</goal>
- </goals>
- <configuration>
- <!-- Sets the path to the file which contains the execution data. -->
- <dataFile>${jacoco.report.directory}/jacoco.exec</dataFile>
- <!-- Sets the output directory for the code coverage report. -->
- <outputDirectory>${jacoco.report.directory}/jacoco</outputDirectory>
- </configuration>
- </execution>
- <execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
- <dataFile>${jacoco.report.directory}/jacoco.exec</dataFile>
+ <dataFile>${jacoco.report.directory}/jacoco-ut.exec</dataFile>
<rules>
<!-- implementation is needed only for Maven 2 -->
<rule