Skip to content

Commit

Permalink
moved Pitest configuration to a profile (pitest-tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
deors committed Feb 26, 2015
1 parent 5ef4b62 commit e46a502
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
2 changes: 1 addition & 1 deletion mvn-verify.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mvn clean verify -P cargo-tomcat,selenium-tests,jmeter-tests
mvn clean verify -P cargo-tomcat,selenium-tests,jmeter-tests,pitest-tests
51 changes: 35 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -393,22 +393,6 @@
</properties>
</configuration>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${pitest.version}</version>
<configuration>
<targetClasses>
<param>org.springframework.samples.petclinic.*</param>
</targetClasses>
<excludedClasses>
<param>org.springframework.samples.petclinic.it.*</param>
</excludedClasses>
<outputFormats>
<outputFormat>XML</outputFormat>
</outputFormats>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
Expand Down Expand Up @@ -764,5 +748,40 @@
</plugins>
</build>
</profile>

<!-- add Pitest mutation tests (bound to unit test execution) -->
<profile>
<id>pitest-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${pitest.version}</version>
<configuration>
<targetClasses>
<param>org.springframework.samples.petclinic.*</param>
</targetClasses>
<excludedClasses>
<param>org.springframework.samples.petclinic.it.*</param>
<param>org.springframework.samples.petclinic.mongo.*</param>
</excludedClasses>
<outputFormats>
<outputFormat>XML</outputFormat>
</outputFormats>
</configuration>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<goals>
<goal>mutationCoverage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit e46a502

Please sign in to comment.