Getting started
Stryker4s is a mutation testing framework for Scala. It allows you to test your tests by temporarily inserting bugs.
This guide is for the sbt plugin for Stryker4s. For other ways to run Stryker4s, such as on Maven projects, look at our README.
1 Install​
To install Stryker4s on your project, add the following line to project/plugins.sbt
:
addSbtPlugin("io.stryker-mutator" % "sbt-stryker4s" % stryker4sVersion)
2 Configure​
Stryker4s can be configured in multiple ways. You can use sbt settings, a configuration file, or command-line arguments. Stryker4s will set defaults for some values, and retrieve project information from your sbt build for others. For more information on how to configure Stryker4s, visit our configuration page.
3 Let's kill some mutants​
Run Stryker4s to mutation test your project:
sbt stryker
4 Having trouble?​
Are you having troubles? Try enabling debug logging. For more information on how to enable debug logging visit our configuration page. If you are having issues, please let us know by reporting an issue or talk to us on Slack.