Getting started
#
1 InstallStryker.NET can both be installed globally and locally.
#
Install globally#
Install in projectDotnet 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
Check the dotnet-tools.json
file into source control
Now the rest of your team can install or update stryker with the following command:
#
2 PrepareMake sure the working directory for your console is set to the unit test project dir.
#
3 Let's kill some mutantsFor 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.
#
4 ConfigureOptionally 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.
#
TroubleshootingHave troubles running Stryker? Try running with trace logging.
Please report any issues you have or let us know via Slack.