scalaprops alternatives and similar packages
Based on the "Testing" category.
Alternatively, view scalaprops alternatives based on common mentions on social networks and blogs.
-
Testcontainers-scala
DISCONTINUED. The project repository has moved to https://github.com/testcontainers/testcontainers-scala
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of scalaprops or a related project?
README
scalaprops
property based testing library for Scala
features
- real
scala.FunctionN
generators using [Cogen
](gen/src/main/scala/scalaprops/Cogen.scala) (aka CoArbitrary in QuickCheck). scalaprops can generate not only constant Functions - flexible parameter settings for each test( ScalaCheck doesn't have this feature )
- timeout as soon as possible
- flexible law checking like discipline
- discipline uses only
String
for test id. but scalaprops can use other thanString
- discipline uses only
- scalaz integration
- laws for scalaz typeclasses
- [
Gen
](gen/src/main/scala/scalaprops/Gen.scala) and [Cogen
](gen/src/main/scala/scalaprops/Cogen.scala) instances of scalaz datatypes
- immutable random number generator
- scalaprops does not use
scala.util.Random
becausescala.util.Random
is mutable - default implementation is Mersenne Twister (JVM, scala-native) or Tiny Mersenne Twister (Scala.js)
- scalaprops does not use
- Scala.js support
- scala-native support. see https://github.com/scalaprops/scalaprops-native-example
- deterministic testing
latest stable version
please use sbt plugin because there are some convenient features.
setup without sbt plugin
testFrameworks += new TestFramework("scalaprops.ScalapropsFramework")
parallelExecution in Test := false // currently, does not support parallel execution
libraryDependencies += "com.github.scalaprops" %% "scalaprops" % "0.8.1" % "test"
libraryDependencies += "com.github.scalaprops" %% "scalaprops-scalaz" % "0.8.1" % "test"
[screencast](screencast.gif)
deterministic testing
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.
[deterministic-testing](deterministic-testing.gif)
examples
See scalaprops-example project.