QuickCheck

Automatic testing of Haskell programs

https://github.com/nick8325/quickcheck

Version on this page:2.12.6.1
LTS Haskell 22.41:2.14.3
Stackage Nightly 2024-11-12:2.14.3
Latest on Hackage:2.15.0.1

See all snapshots QuickCheck appears in

BSD-3-Clause licensed by Koen Claessen
Maintained by Nick Smallbone
This version can be pinned in stack with:QuickCheck-2.12.6.1@sha256:95b4e3b01033bf7d2ad21d0085266dba378477ac88e3d11ff238fc9db2575e6d,6148

Module documentation for 2.12.6.1

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 provided by QuickCheck. QuickCheck provides combinators to define properties, observe the distribution of test data, and define test data generators.

Most of QuickCheck's functionality is exported by the main Test.QuickCheck module. The main exception is the monadic property testing library in Test.QuickCheck.Monadic.

If you are new to QuickCheck, you can try looking at the following resources:

The quickcheck-instances companion package provides instances for types in Haskell Platform packages at the cost of additional dependencies.