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 Maven Central:

addSbtPlugin("io.stryker-mutator" % "sbt-stryker4s" % stryker4sVersion)

2 Configure#

Stryker4s will look for a stryker4s.conf file in the root of your project. If found, it will use the configured values. All arguments in the configuration (and the file itself) are optional. You can find the possible values in the 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.