
About PIT
PIT is a mutation testing system for Java and the JVM. It checks whether your unit tests catch small changes made to your code.
What it does
PIT seeds faults into your code, runs the tests, and checks which mutations were killed by a failing test. The share of killed mutations gives a measure of test strength, which is stronger than line coverage alone. Line coverage only shows code that ran, while mutation testing shows whether the tests would notice a real change. It works with Ant, Maven, Gradle and other build tools.
Key features
- Mutations applied to Java code automatically
- Fast analysis of large code bases
- Works with Ant, Maven and Gradle
- Reports the share of mutations killed
Who it's for
Java teams that want to know whether their unit tests would detect real bugs, not just whether the code was run.
Pricing and good to know
PIT is Apache-2.0 licensed and free to use. A Pro version is also listed on the site. The GitHub repository has about 1.9k stars.
Highlights
- Apply mutations to Java code automatically
- Report the share of killed mutations
- Run with Ant, Maven or Gradle
- Analyse large code bases quickly












