TSK-369: Add testcoverage to SonarCloud
This commit is contained in:
parent
166c96a22c
commit
a1a760f2b8
45
pom.xml
45
pom.xml
|
@ -75,6 +75,8 @@
|
|||
<version.hamcrest>2.2</version.hamcrest>
|
||||
<version.equalsverifier>3.1.11</version.equalsverifier>
|
||||
<version.openpojo>0.8.13</version.openpojo>
|
||||
<version.jacoco>0.8.3</version.jacoco>
|
||||
<jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</jacoco.reportPath>
|
||||
|
||||
<!-- database driver versions -->
|
||||
<version.h2>1.4.197</version.h2>
|
||||
|
@ -234,6 +236,46 @@
|
|||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>${version.jacoco}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<append>true</append>
|
||||
<destFile>${jacoco.reportPath}</destFile>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>jacoco-check</id>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<rule>
|
||||
<limits>
|
||||
<limit>
|
||||
<minimum>0.0</minimum>
|
||||
</limit>
|
||||
</limits>
|
||||
</rule>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
@ -278,6 +320,9 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${version.maven.surefire}</version>
|
||||
<configuration>
|
||||
<argLine>${argLine}</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
Loading…
Reference in New Issue