sbt plugin for pitest mutation testing system
Please note that pit cannot currently (meaningfully) mutate scala . . . but I'm working on it
This plugin can however be used for java projects built using sbt.
pit-sbt is available from the typesafe community ivy repo.
Add plugin to project/plugins.sbt
addSbtPlugin("org.pitest.sbt" % "sbt-pit" % version)
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
Then run
sbt pitest
See source for details of available settings.
TODO
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
sbt publishLocal