mutation-testing

Measure test suite effectiveness by analyzing mutant kill rates.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill mutation-testing-marquesfelip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/mutation-testing
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill mutation-testing-marquesfelip

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mutation testing exposes gaps in test suites by injecting small, systematic changes into the codebase and evaluating whether tests detect them. This helps teams avoid a false sense of security from high code coverage.

Core Features & Use Cases

  • Identify weaknesses in test suites by measuring how effectively they kill injected mutants.
  • Supports general mutation testing workflows and tool guidance (PIT for Java, Stryker for JS, MutMut for Python) with actionable reporting.
  • Provides guidance for CI integration and mutation score thresholds to prioritize test improvements.
  • Educates teams on patterns that lead to surviving mutants and weak assertions.

Quick Start

Run a mutation testing pass against your codebase with a suitable tool (e.g., PIT for Java) and review the generated HTML report to identify uncovered or weakly asserted paths.

Frequently Asked Questions about mutation-testing

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

FAQPage Schema
What is mutation testing and how does it measure test suite strength?

Mutation testing measures test suite strength by injecting small changes into the codebase and evaluating whether tests detect them. It exposes gaps in test suites, helping teams avoid a false sense of security from high code coverage.

Why does my Java project have high code coverage but still contains surviving mutants?

High code coverage does not guarantee test strength. Surviving mutants indicate weak assertions or uncovered paths in your Java application services and domain logic. Mutation testing helps identify these specific patterns that lead to surviving mutants.

How do I configure PIT mutation testing thresholds and HTML reports for CI integration?

Configure PIT for Java by defining target classes and mutation thresholds to produce actionable HTML reports. This setup satisfies CI integration requirements and generates mutation scores to guide test improvements across your JVM project.

Can I use mutation testing workflows with JavaScript and Python projects?

Yes, mutation testing workflows support multiple languages. The approach provides tool guidance for PIT in Java, Stryker for JavaScript, and MutMut for Python, applying mutation testing contexts across domain logic, application services, and utilities.

What is the best way to identify weak assertions in my test suite?

The best way to identify weak assertions is running a mutation testing pass against your codebase using a suitable tool. Reviewing the generated HTML report highlights uncovered paths and patterns that lead to surviving mutants, guiding test improvements.