mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 10:19:35 +01:00
chore(backend): JaCoCo Code Coverage und PIT Mutation Testing einrichten
JaCoCo läuft automatisch bei mvn verify (HTML/XML/CSV Reports). PIT als eigenes Maven-Profil `mutation` — Scope auf Domain + Application Layer.
This commit is contained in:
parent
ccd4ee534a
commit
2059718a5c
1 changed files with 68 additions and 0 deletions
|
|
@ -29,6 +29,9 @@
|
|||
<!-- Dependency Versions -->
|
||||
<jjwt.version>0.12.5</jjwt.version>
|
||||
<springdoc.version>2.3.0</springdoc.version>
|
||||
<jacoco.version>0.8.12</jacoco.version>
|
||||
<pitest.version>1.17.4</pitest.version>
|
||||
<pitest-junit5.version>1.2.1</pitest-junit5.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
@ -142,6 +145,71 @@
|
|||
<target>21</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>${jacoco.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>prepare-agent</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>mutation</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.pitest</groupId>
|
||||
<artifactId>pitest-maven</artifactId>
|
||||
<version>${pitest.version}</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.pitest</groupId>
|
||||
<artifactId>pitest-junit5-plugin</artifactId>
|
||||
<version>${pitest-junit5.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<targetClasses>
|
||||
<param>de.effigenix.domain.*</param>
|
||||
<param>de.effigenix.application.*</param>
|
||||
</targetClasses>
|
||||
<targetTests>
|
||||
<param>de.effigenix.domain.*</param>
|
||||
<param>de.effigenix.application.*</param>
|
||||
</targetTests>
|
||||
<mutators>
|
||||
<mutator>DEFAULTS</mutator>
|
||||
</mutators>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>pit-report</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>mutationCoverage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue