State of the art mutation testing system for the JVM
Pitest (aka PIT) is a state of the art mutation testing system for Java and the JVM.
Read all about it at https://pitest.org
Note, version bump from 1.25.x series made due to mislabelling of release as 1.29.10.
Note Quarkus support also requires version 1.2.3 or above of the pitest JUnit 5 plugin.
Maven users can now gather coverage information and generate mutants, but skip the mutant analysis stage by running setting the 'pit.dryRun' flag to true.
+funmodifiablecollection filter for defensive codeApi change in #1321 is backwards compatible, but plugins written against 1.16.0 may not work with earlier versions.
The filtering for #1310 is off by default. To activate it add the filter string +funmodifiablecollection.
1309 adds a new maven property parseSurefireArgLine. This is set to true by default, but surefire argline parsing can now be disabled by setting it to false.
#1305 Coverage not recorded for code in packages name com.sun*
A filter intended to pickup legacy JDK classes in the "com.sun.*" package was missing a ', resulting in no code coverage being registered if the code under test happened to be in a package starting with "sun".
Invoke dynamic call tracking for static initializer code will be reintroduced when additional logic to suppress mutation filtering for delayed execution code has been implemented.
Note, maven users who have previously needed to duplicate argline parameters between surefire and pitest's jvmArgs and argline parameters may need
to adjust their configuration when upgrading. Entries supplied to surefire will now automatically be added to pitest.
#1267 will ensure that previously hidden errors encountered by the JUnit5 plugin will now be reported. This is a backwards compatible api change. It will have no effect until the JUnit5 plugin is updated to use the expanded api. The updated plugin will not be compatible with earlier versions of pitest.
As a result of the breaking api changes in #1251, the arcmutate kotlin plugin should be upgraded to 1.1.0 when upgrading to pitest 1.15.0
#1246 Priotitise previous killing test when using history files
#1212 Largely resolves the issue of keeping the pitest-junit5-plugin version in sync with the junit5 version for maven users.
When used with 1.2.0 of the pitest-junit5-plugin, pitest will now automatically select a version of junit-platform-launcher which is compatible with the version of junit5 used by the system under test.
Issues remain for gradle users who may still encounter api compatibilities when using 1.2.0 of the pitest-junit5-plugin. These can however now be resolved by manually adding the correct version of junit-platform-launcher to the classpath.
It is hoped that a future version of the pitest gradle plugin will implement a fix similar to the pitest-maven solution.
**. pattern in globs (thanks @Pfoerd)The line coverage stats reported on the console included code lines for the entire project, even when filters were applied. This resulted in dramatically low coverage scores.
Note that #1150 includes breaking interface changes which may require updates to third party plugins.
excludedRunners parameter to command line interface and AntAs a result of #1067 it is important that mutations are only created for a single class for each JVM. The MutationGrouper extension point has the
No open issues yet, or sync has not completed.