mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Added mutation testing
This commit is contained in:
parent
71b820ac2d
commit
d42fa6e12a
2 changed files with 12 additions and 1 deletions
|
@ -20,7 +20,8 @@ before_script:
|
|||
- docker-compose up -d
|
||||
|
||||
script:
|
||||
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dskip.failsafe.tests sonar:sonar
|
||||
- mvn org.pitest:pitest-maven:mutationCoverage
|
||||
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test -Dskip.failsafe.tests sonar:sonar -Dsonar.pitest.mode=reuseReport
|
||||
- docker exec springpetclinic_pet-clinic_1 mvn verify -Dskip.surefire.tests -q --batch-mode
|
||||
|
||||
after_script:
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -156,6 +156,16 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.pitest</groupId>
|
||||
<artifactId>pitest-maven</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<outputFormats>
|
||||
<outputFormat>XML</outputFormat>
|
||||
</outputFormats>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
|
Loading…
Reference in a new issue