mutation-testing

Mutate JavaScript/TypeScript source code and run tests to report killed and survived mutants.

15|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/alexanderop/workoutTracker --skill mutation-testing-alexanderop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/alexanderop/workoutTracker/tree/main/.claude/skills/mutation-testing
Command: npx skills add https://github.com/alexanderop/workoutTracker --skill mutation-testing-alexanderop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mutation testing helps teams evaluate the strength of their test suites by systematically mutating code and observing which tests fail, ensuring bugs are actually caught.

Core Features & Use Cases

  • Mutant generation: apply a variety of mutation operators to source code to surface missing checks.
  • Execution and reporting: run the test suite and produce a concise report of killed vs survived mutants.
  • Practical use: during PR reviews, refactors, or CI pipelines to reveal fragile tests and guide test improvements.

Quick Start

Start by selecting a target project, configure mutation settings, and run your existing test suite to generate a mutation report. Then review which mutants were killed or survived and adjust tests accordingly.

Frequently Asked Questions about mutation-testing

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

FAQPage Schema
How does mutation testing reveal weak tests in JavaScript and TypeScript projects?

Mutation testing reveals weak tests by systematically applying mutation operators to source code and running the test suite. If a mutated code version survives without failing any tests, it exposes a gap in test effectiveness and coverage.

When should I run mutation testing during my development workflow?

Run mutation testing during code changes, PR reviews, and post-refactor verification. It surfaces fragile tests and missing checks precisely when code is modified, guiding test improvements before integration into CI pipelines.

How do I set up mutation testing for an existing TypeScript test suite?

Select your target project, configure mutation settings, and run your existing test suite. The workflow applies mutation operators to the code, executes the tests, and generates a report showing killed versus survived mutants for review.

What is the difference between mutation testing and test coverage metrics?

Test coverage measures which code lines execute during tests, while mutation testing measures test effectiveness by mutating code to see if tests actually catch bugs. Mutation testing identifies surviving mutants that coverage metrics miss.

Can I use mutation testing during pull request reviews to check test quality?

Yes, mutation testing is specifically applicable during PR reviews. It runs your test suite against mutated source code to surface gaps in test coverage, providing a concise results summary of killed and survived mutants to guide improvements.

What do killed and survived mutants mean in a mutation testing report?

Killed mutants are code mutations that caused tests to fail, indicating effective tests. Survived mutants are mutations that did not trigger test failures, revealing weak tests that fail to catch specific code changes and require adjustment.