/stryker-net

Mutation testing for .NET core and .NET framework!

Primary LanguageC#Apache License 2.0Apache-2.0

Nuget Nuget Azure DevOps build Azure DevOps tests Slack

Stryker.NET

Professor X: For someone who hates mutants... you certainly keep some strange company. William Stryker: Oh, they serve their purpose... as long as they can be controlled.

Introduction

Stryker offers mutation testing for your .NET Core and .NET Framework projects. It allows you to test your tests by temporarily inserting bugs in your source code.

For an introduction to mutation testing and Stryker's features, see stryker-mutator.io. Looking for mutation testing in JavaScript & Typescript or Scala?

Compatibility

Minimum target version:

  • dotnet core 1.1
  • dotnet framework 4.5

Tested against:

  • dotnet core 3.1
  • dotnet framework 4.8

Getting started

dotnet tool install -g dotnet-stryker
cd /my/unit/test/project/folder
dotnet stryker

For more information read our getting started.

Documentation

For the full documentation on how to use Stryker.NET, see our configuration docs.

Migrating

Coming from Stryker.NET pre V2? Take a look at our migration guide.

Supported Mutations

For the full list of all available mutations, see the mutations docs.

Supported Reporters

For the full list of all available reporters, see the reporter docs.

Contributing

Want to help develop Stryker.NET? Check out our contribution guide.

Issues for the HTML report should be issued at mutation-testing-elements.