Mutation testing assesses test suite quality by introducing small changes (mutations) to source code and verifying that tests fail. If tests don't catch a mutation, it indicates gaps in test coverage or test quality. This technique helps identify weak or ineffective tests.
Detailed implementations in the references/ directory:
Guide
Contents
Stryker for JavaScript/TypeScript
Stryker for JavaScript/TypeScript
PITest for Java
PITest for Java
mutmut for Python
mutmut for Python
Mutation Testing Reports
Mutation Testing Reports
Best Practices
✅ DO
Target critical business logic for mutation testing
Aim for 80%+ mutation score on important code
Review survived mutants to improve tests
Mark equivalent mutants to exclude them
Use mutation testing in CI for critical modules
Test boundary conditions thoroughly
Verify actual behavior, not just code execution
❌ DON'T
Expect 100% mutation score everywhere
Run mutation testing on all code (too slow)
Ignore equivalent mutants
Test getters/setters with mutations
Run mutations on generated code
Skip mutation testing on complex logic
Focus only on line coverage
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-mutation-testing3description: Mutation Testing4---56# Mutation Testing78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Mutation testing assesses test suite quality by introducing small changes (mutations) to source code and verifying that tests fail. If tests don't catch a mutation, it indicates gaps in test coverage or test quality. This technique helps identify weak or ineffective tests.1920## When to Use2122- Evaluating test suite effectiveness23- Finding untested code paths24- Improving test quality metrics25- Validating critical business logic is well-tested26- Identifying redundant or weak tests27- Measuring real test coverage beyond line coverage28- Ensuring tests actually verify behavior2930## Quick Start3132Minimal working example:3334```bash35# Install Stryker36npm install --save-dev @stryker-mutator/core @stryker-mutator/jest-runner3738# Initialize configuration39npx stryker init4041# Run mutation testing42npx stryker run43```4445## Reference Guides4647Detailed implementations in the `references/` directory:4849| Guide | Contents |50|---|---|51| [Stryker for JavaScript/TypeScript](references/stryker-for-javascripttypescript.md) | Stryker for JavaScript/TypeScript |52| [PITest for Java](references/pitest-for-java.md) | PITest for Java |53| [mutmut for Python](references/mutmut-for-python.md) | mutmut for Python |54| [Mutation Testing Reports](references/mutation-testing-reports.md) | Mutation Testing Reports |5556## Best Practices5758### ✅ DO5960- Target critical business logic for mutation testing61- Aim for 80%+ mutation score on important code62- Review survived mutants to improve tests63- Mark equivalent mutants to exclude them64- Use mutation testing in CI for critical modules65- Test boundary conditions thoroughly66- Verify actual behavior, not just code execution6768### ❌ DON'T6970- Expect 100% mutation score everywhere71- Run mutation testing on all code (too slow)72- Ignore equivalent mutants73- Test getters/setters with mutations74- Run mutations on generated code75- Skip mutation testing on complex logic76- Focus only on line coverage7778---79> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.80<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-mutation-testing in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Mutation Testing It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.