TSK-369: Add testcoverage to SonarCloud

This commit is contained in:
benjamineckstein 2019-12-04 10:45:17 +01:00 committed by Mustapha Zorgati
parent a7f395d959
commit 8b3ef85ed0
1 changed files with 45 additions and 0 deletions

45
pom.xml
View File

@ -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>