package qcheck-core

  1. Overview
  2. Docs
Core QCheck library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.91.tar.gz
md5=ac45753406af93cb77a3c173741e0fe8
sha512=3baa8c04a43db0497891394208c8a6184d603e4fe0ad9d15fddf666e7a628597210874ca85c96022b69c11a99fdd43bbbf0e6211e34ed7d1dea7b1c95bd54316

doc/index.html

qcheck-core

The qcheck-core opam package contains two libraries:

  • The qcheck-core library for defining property-based tests
  • The qcheck-core.runner library for running property-based tests

The qcheck-core library

The qcheck-core library exposes two toplevel modules:

  • QCheck is the initial property-based-testing module and
  • QCheck2 is a newer property-based-testing module supporting integrated shrinking

Of the two, QCheck is the most battle-tested module. QCheck2 on the other hand offers integrated shrinking, thus removing the need for having to hand-write shrinkers.

QCheck tests can be ported to QCheck2 by following the migration guide. Please file an issue if you encounter problems using either of the two modules.

The qcheck-core.runner library

The entry point of the qcheck-core.runner library is the QCheck_base_runner module.

One can run a list of property-based tests by calling either