sbt plugin for pitest mutation testing system
Please note that pit cannot currently (meaningfully) mutate scala
This plugin can however be used for java projects built using sbt.
sbt-pit is currently unmaintained and tied to an old version of pitest. If you would like to improve it please get in touch.
pit-sbt is available from the typesafe community ivy repo.
Add plugin to project/plugins.sbt
addSbtPlugin("org.pitest.sbt" % "sbt-pit" % "0.32")
Setup properties in build.sbt
import org.pitest.sbt._
PitKeys.threads := 2
PitKeys.targetClasses := Seq("com.example.*")
PitKeys.excludedMethods := Seq("hashCode", "equals")
PitKeys.mutators := Seq("DEFAULTS", "REMOVE_CONDITIONALS")
PitKeys.verbose := true
See source for details of available settings.
Updated to use pitest 0.32
See http://pitest.org/downloads/ for details of changes in pitest-0.32
First release based on pit 0.31