Generate test coverage report

This commit is contained in:
grimsi
2022-10-21 17:44:57 +02:00
parent 0c9eb90f5a
commit 435ed2360e
2 changed files with 60 additions and 5 deletions
+15
View File
@@ -223,6 +223,21 @@
</execution>
</executions>
</plugin>
<!-- JaCoCo coverage report -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report</id>
<goals>
<goal>report-aggregate</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
+45 -5
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.grimsi</groupId>
@@ -18,30 +19,69 @@
<properties>
<sonar.organization>grimsi-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.4</version>
<relativePath /> <!-- lookup parent from repository -->
<relativePath/> <!-- lookup parent from repository -->
</parent>
<scm>
<connection>scm:git:https://github.com/grimsi/gameyfin.git</connection>
<url>scm:git:https://github.com/grimsi/gameyfin.git</url>
<developerConnection>scm:git:https://github.com/grimsi/gameyfin.git</developerConnection>
<tag>v1.2.2</tag>
</scm>
<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<version>${maven-release-plugin.version}</version>
<configuration>
<scmCommentPrefix>[ci skip] </scmCommentPrefix>
<scmCommentPrefix>[ci skip]</scmCommentPrefix>
<tagNameFormat>v@{project.version}</tagNameFormat>
<checkModificationExcludes>
<checkModificationExclude>frontend/package.json</checkModificationExclude>