add-mutation-testing

Community

Prove your tests catch real regressions.

Authordprice-dev
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-mutation-testing
Download link: https://github.com/dprice-dev/claude-java-skills/archive/main.zip#add-mutation-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.