Skip to content

Commit c2ca1ef

Browse files
author
Salvi
committed
Introduce mutation testing
1 parent 5d4ec02 commit c2ca1ef

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

pom.xml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,17 +283,55 @@
283283
</plugin>
284284
<plugin>
285285
<artifactId>maven-surefire-plugin</artifactId>
286-
<version>2.22.2</version>
286+
<version>3.0.0-M3</version>
287287
</plugin>
288288
<plugin>
289289
<artifactId>maven-failsafe-plugin</artifactId>
290-
<version>2.22.2</version>
290+
<version>3.0.0-M3</version>
291291
</plugin>
292292
<plugin>
293293
<groupId>org.apache.maven.plugins</groupId>
294294
<artifactId>maven-site-plugin</artifactId>
295295
<version>3.7.1</version>
296296
</plugin>
297+
298+
299+
300+
<plugin>
301+
<groupId>org.pitest</groupId>
302+
<artifactId>pitest-maven</artifactId>
303+
<version>1.4.10</version>
304+
305+
<executions>
306+
<execution>
307+
<id>pit-report</id>
308+
<phase>test</phase>
309+
<goals>
310+
<goal>mutationCoverage</goal>
311+
</goals>
312+
</execution>
313+
</executions>
314+
315+
<!-- https://github.com/hcoles/pitest/issues/284 -->
316+
<!-- Need this to support JUnit 5 -->
317+
<dependencies>
318+
<dependency>
319+
<groupId>org.pitest</groupId>
320+
<artifactId>pitest-junit5-plugin</artifactId>
321+
<version>0.9</version>
322+
</dependency>
323+
</dependencies>
324+
<configuration>
325+
<targetClasses>
326+
<param>it.intre.*</param>
327+
</targetClasses>
328+
<targetTests>
329+
<param>it.intre.*</param>
330+
</targetTests>
331+
</configuration>
332+
</plugin>
333+
334+
297335
</plugins>
298336
</build>
299337

0 commit comments

Comments
 (0)