mutation-testing

Mutate TypeScript/JavaScript code to measure test suite effectiveness.

436|78|Updated Sep 11, 2025
One-click install
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill mutation-testing-proffesor-for-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/proffesor-for-testing/agentic-qe/tree/main/.claude/skills/mutation-testing
Command: npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill mutation-testing-proffesor-for-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill validates test suite effectiveness by mutating code and measuring kill rate, revealing weaknesses in tests and driving improvements.

Core Features & Use Cases

  • Mutant Generation & Killing: Create mutants and run tests to see which are killed.
  • Mutation Score Tracking: Use metrics to gauge test quality and guide improvements.
  • Actionable Improvements: Strengthen tests where mutants survive.

Quick Start

Run a mutation analysis on the critical code paths and add tests to kill surviving mutants.

Frequently Asked Questions about mutation-testing

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

FAQPage Schema
How do I measure test suite effectiveness with mutation testing?

Mutation testing measures test quality by introducing code changes (mutants) and running your test suite against each one. A higher kill rate—the percentage of mutants caught by tests—indicates stronger test coverage and reveals which code paths lack adequate assertions.

What does mutation score tell me about my tests?

Mutation score quantifies test effectiveness as a percentage: how many intentional code mutations your tests detected. A low score signals weak assertions and untested paths; a high score confirms your tests catch real bugs and edge cases.

How do I find and fix weak tests using mutation analysis?

Run mutation testing to identify surviving mutants—code changes your tests missed. Review the assertion gaps in those areas, add targeted tests to kill the survivors, and repeat until your mutation score reaches acceptable levels.

Can I use mutation testing with TypeScript and JavaScript codebases?

Yes. Mutation testing applies to TypeScript and JavaScript projects using mutation tooling like Stryker. The Skill applies mutation analysis during test quality evaluation and pre-release risk assessment for these language ecosystems.

When should I run mutation testing in my development workflow?

Run mutation testing during test quality evaluation, gap analysis before release, and when assessing assertion coverage. It's most valuable for critical code paths where weak tests carry high risk of undetected bugs reaching production.

What's the difference between mutation testing and code coverage?

Code coverage measures which lines execute during tests; mutation testing measures whether tests actually catch bugs. High coverage doesn't guarantee effective tests—mutation analysis reveals weak assertions that coverage misses.