# QuickCheck: Automatic testing of Haskell programs

[ bsd3, library, testing ] [ Propose Tags ]

QuickCheck is a library for random testing of program properties.

The programmer provides a specification of the program, in the form of properties which functions should satisfy, and QuickCheck then tests that the properties hold in a large number of randomly generated cases.

Specifications are expressed in Haskell, using combinators defined in the QuickCheck library. QuickCheck provides combinators to define properties, observe the distribution of test data, and define test data generators.

The official QuickCheck manual explains how to write generators and properties; it is out-of-date in some details but still full of useful advice.

A user of QuickCheck has written an unofficial, but detailed, tutorial which you can find at https://begriffs.com/posts/2017-01-14-design-use-quickcheck.html.

## Manual Flags

NameDescriptionDefault
Automatic Flags
NameDescriptionDefault

Build Test.QuickCheck.All, which uses Template Haskell.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

#### Maintainer's Corner

For package maintainers and hackage trustees

Candidates

This is QuickCheck 2, a library for random testing of program properties.