mutation-testing

Automate PITest mutation testing for JVM Gradle projects.

135|25|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/jvm-skills/jvm-skills --skill mutation-testing-jvm-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/jvm-skills/jvm-skills/tree/main/.junie/skills/mutation-testing
Command: npx skills add https://github.com/jvm-skills/jvm-skills --skill mutation-testing-jvm-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Mutation testing provides rigorous assessment of test quality by evaluating how many mutants survive, helping teams strengthen tests beyond line coverage.

Core Features & Use Cases

  • Bootstrap PITest configuration for JVM projects with Kotlin-sane defaults, and support scoped testing to changed classes.
  • Interpret survivors from mutations.xml and triage likely-equivalent mutants out of the kill queue.
  • Drive a kill-survivor workflow: propose targeted tests, refine assertions, and verify mutation score changes.

Quick Start

Configure PITest with the bootstrap defaults and run a scoped mutation test against changed classes.

Frequently Asked Questions about mutation-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up mutation testing for a Kotlin Gradle project?

Mutation testing for Kotlin Gradle projects is bootstrapped via the info.solidsoft.pitest plugin with Kotlin-sane defaults, providing preflight checks and scoped execution against changed classes to evaluate test quality beyond line coverage.

How do I triage surviving mutants from pitest mutations.xml?

Triage surviving mutants from mutations.xml by using a dedicated workflow to separate likely-equivalent mutants from killable ones, allowing you to focus your test refinement efforts on actual killable mutations.

Can I run scoped mutation testing only on changed classes?

Scoped mutation testing on changed classes is supported through the pitest Gradle plugin configuration, enabling targeted mutation analysis rather than running mutations across the entire JVM project test suite.

What is the best way to improve test quality beyond line coverage?

Mutation testing improves test quality beyond line coverage by injecting faults into code and evaluating how many mutants survive, then driving a kill-survivor workflow to propose targeted tests and refine assertions.

Do I need existing tests before running mutation testing with pitest?

Existing tests are required before running mutation testing with pitest, as the technique evaluates test effectiveness by checking whether your current test suite can detect and kill injected code mutants.

Why does pitest report surviving mutants that my tests cannot kill?

Pitest reports surviving mutants that cannot be killed when they are likely-equivalent mutants, which produce functionally identical behavior and must be triaged out of the kill queue using the provided triage script.