What problem does it solve?
It solves the problem of unit tests that may only execute code paths without actually detecting behavioral bugs, by adding PIT mutation testing so you can measure whether assertions kill meaningful code mutations.
Core Features & Use Cases
- PIT mutation testing setup for Spring Boot 4: Adds the Gradle PIT plugin and a pinned, Gradle-9-compatible configuration to run
./gradlew pitest.
- Spec-aware exclusions: Excludes generated OpenAPI
api.* and dto.* packages when present to keep the report focused on meaningful logic.
- Survivor-driven quality improvement: Interprets surviving mutants as actionable gaps in assertions and verification, with guidance for killing mutants or documenting true equivalence.
- On-demand workflow: Ensures PIT is not wired into
tasks.check so CI is not slowed by expensive mutation runs.
Quick Start
Add PIT to your existing Spring Boot 4 project by running the pitest steps to insert the PIT plugin and configuration into build.gradle.kts, then verify with ./gradlew pitest.