testing/mutation-testing

Run Stryker mutation testing to measure test suite effectiveness.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/doanchienthangdev/omgkit --skill testing-mutation-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing/mutation-testing
Source: https://github.com/doanchienthangdev/omgkit/tree/main/plugin/skills/testing/mutation-testing
Command: npx skills add https://github.com/doanchienthangdev/omgkit --skill testing-mutation-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stryker-mutator/core, @stryker-mutator/vitest-runner, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps ensure your test suite is robust by automatically identifying weak or insufficient tests that fail to catch code changes.

Core Features & Use Cases

  • Automated Mutation: Introduces small code changes (mutations) to your codebase.
  • Test Verification: Runs your existing tests against these mutations to see if they are detected.
  • Quality Measurement: Provides a mutation score indicating the effectiveness of your tests.
  • Use Case: After implementing new features, use this Skill to verify that your unit tests will correctly fail if a bug is accidentally introduced during future code modifications.

Quick Start

Run mutation testing using the npm script defined in your package.json.

Frequently Asked Questions about testing/mutation-testing

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

FAQPage Schema
What is mutation testing and how does it verify test suite effectiveness?

Mutation testing verifies test suite effectiveness by automatically introducing small code mutations and measuring if your existing tests detect them. It identifies gaps in test coverage by checking whether tests fail when bugs are introduced.

How do I run mutation testing with Vitest and Stryker?

To run mutation testing with Vitest and Stryker, configure your environment using stryker.config.json and execute the npm script defined in your package.json to start analyzing code changes against your test suite.

Does Stryker mutation testing work with Vitest?

Yes, Stryker mutation testing works with Vitest through the @stryker-mutator/vitest-runner integration. It requires a JavaScript test runner like Vitest to run your existing tests against introduced mutations.

What is the difference between test coverage and mutation testing?

Test coverage measures which lines of code your tests execute, while mutation testing measures test effectiveness by introducing code mutations and verifying if tests detect them. Mutation testing identifies weak tests that fail to catch code changes.

When should I run mutation testing in my development workflow?

Run mutation testing after implementing new features to verify that your unit tests will correctly fail if bugs are accidentally introduced during future code modifications. This ensures your test suite remains robust against regressions.

What dependencies do I need to set up mutation testing with Stryker?

To set up mutation testing with Stryker, you need the @stryker-mutator/core and @stryker-mutator/vitest-runner dependencies, along with a configured JavaScript test runner like Vitest and a stryker.config.json file.