diff options
author | Claudio David Gasparini <claudio.gasparini@pantheon.tech> | 2020-12-02 18:47:09 +0100 |
---|---|---|
committer | Claudio David Gasparini <claudio.gasparini@pantheon.tech> | 2020-12-02 20:23:35 +0100 |
commit | 13cc64d917b48ca76650b672b2b44f74af3585e0 (patch) | |
tree | 844c3c176ce55bac53bf419984b7373b0e702c86 /cps-parent/pom.xml | |
parent | 35b2b4414405c0c3f7c06171ae0e1ebca3214e40 (diff) |
Solve issue with Sonar Job coverage jobs
- Increase coverage need to 20%
- use parent parameter surefireArgLine for maven-surefire-plugin
- Fix warning platform encoding meanwhile
Issue-Id: CPS-122
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I569d0b368a6fa25543be7180b46c4905c4772a5d
Diffstat (limited to 'cps-parent/pom.xml')
-rw-r--r-- | cps-parent/pom.xml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 5aa65a25d8..b7b64af3b6 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -19,12 +19,12 @@ <app>org.onap.cps.Application</app> <base.image>openjdk:11-jre-slim</base.image> <java.version>11</java.version> - <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version> <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version> - <minimum-coverage>0.15</minimum-coverage> + <minimum-coverage>0.20</minimum-coverage> <nexusproxy>https://nexus.onap.org</nexusproxy> <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> <oparent.version>3.1.0</oparent.version> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> <repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name> <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version> @@ -305,20 +305,21 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>3.0.0-M5</version> <configuration> - <argLine>@{argLine}</argLine> + <argLine>${surefireArgLine}</argLine> <useFile>false</useFile> <includes> <include>**/*Spec.java</include> <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests --> </includes> + <excludes> + <exclude>**/IT*.java</exclude> + </excludes> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> - <version>${jacoco-maven-plugin.version}</version> <executions> <execution> <id>default-prepare-agent</id> @@ -332,6 +333,7 @@ <goal>check</goal> </goals> <configuration> + <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> <rules> <rule> <element>BUNDLE</element> |