dotnet-stryker

Run Stryker.NET mutation testing on .NET test projects.

466|35|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-stryker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-stryker
Source: https://github.com/managedcode/dotnet-skills/tree/main/skills/dotnet-stryker
Command: npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-stryker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the critical need to ensure that .NET unit tests are robust and actually catch faults, rather than just providing a false sense of security through high coverage numbers.

Core Features & Use Cases

  • Mutation Testing: Introduces small changes (mutations) to your code and checks if your tests fail, indicating test effectiveness.
  • Quality Measurement: Provides a concrete metric (mutation score) for the quality and fault-detection capability of your test suite.
  • Use Case: Integrate Stryker.NET into your CI pipeline for critical libraries to automatically verify that your tests are effective at catching regressions and bugs.

Quick Start

Use the dotnet-stryker skill to run mutation testing on the critical domain layer of the current project.

Frequently Asked Questions about dotnet-stryker

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

FAQPage Schema
How does mutation testing measure .NET test suite effectiveness?

Mutation testing measures .NET test suite effectiveness by introducing small changes to your code and verifying if your tests fail. This provides a concrete mutation score indicating how well your tests detect faults.

What's the best way to check if my unit tests actually catch faults in critical .NET libraries?

To check if unit tests catch faults in critical .NET libraries, run mutation testing to inject small code changes and validate that your tests fail. This confirms your test suite's fault-detection capability.

Can I integrate Stryker.NET mutation testing into my CI pipeline for .NET projects?

Yes, you can integrate Stryker.NET mutation testing into your CI pipeline for .NET projects. This automatically verifies test effectiveness at catching regressions and bugs during continuous integration.

Do I need a .NET test project to run mutation testing on my solution?

Yes, mutation testing requires a .NET test project or solution to function. The process modifies your source code and relies on the existing test project to execute and validate the injected mutations.

Why does mutation testing matter when I already have high code coverage?

Mutation testing matters despite high code coverage because coverage only shows executed code, not verified behavior. It mutates code to ensure tests actually fail on faults, preventing a false sense of security.

When should I not use mutation testing for my .NET code?

You should avoid mutation testing for non-critical .NET code where fault detection is not paramount. The process is computationally intensive and best reserved for critical libraries or domain layers requiring strict validation.