scalaprops / Scalaprops
Licence: mit
property based testing library for Scala
Stars: ✭ 262
Projects that are alternatives of or similar to Scalaprops
fuzz-rest-api
Derive property based testing fast-check into a fuzzer for REST APIs
Stars: ✭ 38 (-85.5%)
Mutual labels: property-based-testing
pbt-frameworks
An overview of property-based testing functionality
Stars: ✭ 29 (-88.93%)
Mutual labels: property-based-testing
leancheck
enumerative property-based testing for Haskell
Stars: ✭ 38 (-85.5%)
Mutual labels: property-based-testing
efftester
Effect-Driven Compiler Tester for OCaml
Stars: ✭ 37 (-85.88%)
Mutual labels: property-based-testing
clausejs
Write contract once. Get data & function validators & conformers, an accurate & readable project contract, auto-generated API documentation, generative test coverage, plus more. A tool that enables a more predictable workflow for developing your JavaScript projects.
Stars: ✭ 29 (-88.93%)
Mutual labels: property-based-testing
quickcheck
Randomized testing for Prolog à la QuickCheck
Stars: ✭ 18 (-93.13%)
Mutual labels: property-based-testing
swagger-test
Property based testing tool for Swagger APIs
Stars: ✭ 32 (-87.79%)
Mutual labels: property-based-testing
extrapolate
generalize counter-examples of property-based testing
Stars: ✭ 13 (-95.04%)
Mutual labels: property-based-testing
snabbkaffe
Collection of utilities for trace-based testing
Stars: ✭ 35 (-86.64%)
Mutual labels: property-based-testing
glados
🍰 A property-based testing framework that tries to break your invariances.
Stars: ✭ 33 (-87.4%)
Mutual labels: property-based-testing
kuickcheck
A property based testing framework for Kotlin
Stars: ✭ 23 (-91.22%)
Mutual labels: property-based-testing
jsf
Creates fake JSON files from a JSON schema
Stars: ✭ 46 (-82.44%)
Mutual labels: property-based-testing
ava-fast-check
Property based testing for AVA based on fast-check
Stars: ✭ 44 (-83.21%)
Mutual labels: property-based-testing
fixture-monkey
Let Fixture Monkey generate test instances including edge cases automatically
Stars: ✭ 177 (-32.44%)
Mutual labels: property-based-testing
quick.py
Property-based testing library for Python
Stars: ✭ 15 (-94.27%)
Mutual labels: property-based-testing
hypothesis-gufunc
Extension to hypothesis for testing numpy general universal functions
Stars: ✭ 32 (-87.79%)
Mutual labels: property-based-testing
Fable.Jester
Fable bindings for jest and friends for delightful Fable testing.
Stars: ✭ 28 (-89.31%)
Mutual labels: property-based-testing
swagger-conformance
Python based tool for testing whether your API conforms to its Swagger schema
Stars: ✭ 51 (-80.53%)
Mutual labels: property-based-testing
runtypes-generate
Transform runtypes type to jsverify arbitrary for generate sample of data
Stars: ✭ 39 (-85.11%)
Mutual labels: property-based-testing
scalaprops
property based testing library for Scala
features
- real
scala.FunctionN
generators usingCogen
(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
- scalaz integration
- laws for scalaz typeclasses
-
Gen
andCogen
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)
- 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.2" % "test"
libraryDependencies += "com.github.scalaprops" %% "scalaprops-scalaz" % "0.8.2" % "test"
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.
examples
See scalaprops-example project.
for scalaz 7.1.x
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].