Add test coverage to CI

This commit is contained in:
grimsi
2022-10-21 18:54:22 +02:00
parent 910b467c85
commit 91ba8a6c4a
3 changed files with 11 additions and 14 deletions
+11 -4
View File
@@ -23,6 +23,7 @@
<protobuf-java.version>3.21.7</protobuf-java.version>
<easy-random.version>5.0.0</easy-random.version>
<easy-random-protobuf.version>0.4.0</easy-random-protobuf.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<!-- Use older version because the newer versions have problems with non-ASCII characters in properties files (umlauts etc.) -->
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
@@ -259,14 +260,20 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>report</id>
<id>jacoco-initialize</id>
<goals>
<goal>report-aggregate</goal>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
-5
View File
@@ -30,13 +30,8 @@
</scm>
<properties>
<sonar.organization>grimsi-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
<properties>
<sonar.organization>grimsi-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
<build>
-5
View File
@@ -1,5 +0,0 @@
# Point SONAR to the compiled Java classes
sonar.java.binaries=./backend/target
# Point SONAR to the JaCoCo report
sonar.coverage.jacoco.xmlReportPaths=./backend/target/site/jacoco-aggregate/jacoco.xml