package qcheck-core

  1. Overview
  2. Docs
Core qcheck library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.25.tar.gz
md5=e1e928bf792c27de5c072f9123eeaec9
sha512=a0b5791cea09f98f1f17221e6289b87a7a1c16ae1c9af0c2e5bd6a170f2cf8727dba0759a7fd932d5d617e8c242562d69187c7e74eefd5262bc5fd75a322699e

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

OCaml

Innovation. Community. Security.