Stryker.NET can both be installed globally and locally.
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.
Then install stryker without the -g flag by executing the following command in the project folder
dotnet-tools.json file into source control
Now the rest of your team can install or update stryker with the following command:
Make sure the working directory for your console is set to the unit test project dir.
For most projects no configuration is needed. Simply run stryker and it will find your source project to mutate.
If more configuration is needed follow the instuctions in your console.
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:
For all available configuration see our configuration page.
Have troubles running Stryker? Try running with trace logging.