Install Stryker using npm.
Make sure you have npm and nodejs installed. Open a terminal / command prompt and cd to the root of your project you want to mutation test.
The easiest way to get started with Stryker is by installing the stryker-cli globally. It is a small package which forwards commands to your local stryker instance.
Optionally, you could also install stryker directly yourself.
If you choose to not install the stryker-cli, use
npx stryker (after installing
@stryker-mutator/core locally) instead of
stryker for the rest of the quickstart.
Run this command the configure stryker.
If you're asked to install stryker, choose Yes. Follow the questionnaire.
Please let us know if your option is missing here by opening an issue.
After the init is done, inspect the
For more information on what these options mean, take a look at the Stryker readme
4 Let's kill some mutants
Run stryker to mutation test your project
Have troubles running Stryker? Try running with trace logging.
You can also have a look at the readme file of stryker for more information about the configuration.