Skip to content

Commit

Permalink
Merge pull request #125 from Benky/mutation-tests
Browse files Browse the repository at this point in the history
 Add mutation tests to Jadler for better unit tests coverage.
  • Loading branch information
jandudek authored Mar 12, 2017
2 parents 1901b3c + 20041d8 commit 9730065
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 6 deletions.
21 changes: 16 additions & 5 deletions jadler-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ This program is made available under the terms of the MIT License.
<name>${project.artifactId}</name>
<description>Core of the Jadler library.</description>
<packaging>jar</packaging>

<parent>
<groupId>net.jadler</groupId>
<artifactId>jadler-pom</artifactId>
<version>1.3.1-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -45,11 +45,11 @@ This program is made available under the terms of the MIT License.
</dependency>

<!-- TEST dependencies -->
<dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
Expand All @@ -62,5 +62,16 @@ This program is made available under the terms of the MIT License.
<artifactId>mockito-all</artifactId>
</dependency>
</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<configuration>
<mutationThreshold>70</mutationThreshold>
</configuration>
</plugin>
</plugins>
</build>
</project>
12 changes: 12 additions & 0 deletions jadler-jdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,16 @@ This program is made available under the terms of the MIT License.
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<configuration>
<mutationThreshold>70</mutationThreshold>
</configuration>
</plugin>
</plugins>
</build>
</project>
14 changes: 13 additions & 1 deletion jadler-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,17 @@ This program is made available under the terms of the MIT License.
<scope>test</scope>
</dependency>
</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<configuration>
<mutationThreshold>20</mutationThreshold>
</configuration>
</plugin>
</plugins>
</build>

</project>
13 changes: 13 additions & 0 deletions jadler-junit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,17 @@ This program is made available under the terms of the MIT License.
<artifactId>mockito-all</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<configuration>
<mutationThreshold>70</mutationThreshold>
</configuration>
</plugin>
</plugins>
</build>

</project>
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,23 @@ This program is made available under the terms of the MIT License.
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.11</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>mutationCoverage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
Expand Down

0 comments on commit 9730065

Please sign in to comment.