property based testing library for Scala
property based testing library for Scala
scala.FunctionN
generators using Cogen
(aka CoArbitrary in QuickCheck). scalaprops can generate not only constant FunctionsString
for test id. but scalaprops can use other than String
Gen
and Cogen
instances of scalaz datatypesscala.util.Random
because scala.util.Random
is mutableplease use sbt plugin because there are some convenient features.
testFrameworks += new TestFramework("scalaprops.ScalapropsFramework")
parallelExecution in Test := false // currently, does not support parallel execution
libraryDependencies += "com.github.scalaprops" %% "scalaprops" % "0.9.1" % "test"
libraryDependencies += "com.github.scalaprops" %% "scalaprops-scalaz" % "0.9.1" % "test"
Scalaprops emitting which seed it started with during a failing test, and providing an interface --seed=<value>
for re-running the failing test with the same seed.
See scalaprops-example project.