← All repos

qcheck

QuickCheck inspired property-based testing for OCaml.

alcotestmonadic-interfaceocamlounitproperty-based-testingquickcheckrandomrandom-generatortesting
Browse cluster: OCaml Systems and Utilities
1,561commits
35contributors
5languages

Tech stack & purpose

QCheck is an OCaml library for property-based testing, inspired by QuickCheck. The project provides multiple opam packages: qcheck-core (the minimal core API depending only on Unix and Dune), qcheck-ounit (integration with the OUnit testing framework), qcheck-alcotest (integration with Alcotest), qcheck (a compatibility package), and ppx_deriving_qcheck (a preprocessor for automatic generator derivation). Related packages like qcheck-stm and qcheck-lin from the multicoretests repository extend the library for model-based and sequential consistency testing. QCheck is written in OCaml and includes a monadic interface for constructing random generators, with support for shrinking counterexamples and preconditions on properties.

Community & reference links

Languages

OCaml
98.6%
Standard ML
1.1%
Makefile
0.2%
Shell
0.1%
Dune
0.0%

Contributors (top 30 of 35)