Getting started

1 Install#

Stryker.NET can both be installed globally and locally.

Install globally#

dotnet tool install -g dotnet-stryker

Install in project#

Dotnet tools can also be installed on a project level. This requires the following steps:

Create a file called dotnet-tools.json in your project folder, if this is your first local tool.

dotnet new tool-manifest

Then install stryker without the -g flag by executing the following command in the project folder

dotnet tool install dotnet-stryker

Check the dotnet-tools.json file into source control

Now the rest of your team can install or update stryker with the following command:

dotnet tool restore

2 Prepare#

Make sure the working directory for your console is set to the unit test project dir.

3 Let's kill some mutants#

For most projects no configuration is needed. Simply run stryker and it will find your source project to mutate.

dotnet stryker

If more configuration is needed follow the instuctions in your console.

4 Configure#

Optionally you can add a config file to store your options so they won't have to be passed using CLI each run.

Do this by adding a stryker-config.json file to your run location. Now add your config to the file like this:

"reporters": [

For all available configuration see our configuration page.


Have troubles running Stryker? Try running with trace logging.

dotnet stryker --log-level trace -f

Please report any issues you have or let us know via Slack.