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 official QuickCheck manual. It's a bit out-of-date in some details and doesn't cover newer QuickCheck features, but is still full of good advice. https://begriffs.com/posts/2017-01-14-design-use-quickcheck.html, a detailed tutorial written by a user of QuickCheck. The quickcheck-instances companion package provides instances for types in Haskell Platform packages at the cost of additional dependencies.


Keywords
library, testing, Propose Tags, Test.QuickCheck, Test.QuickCheck.Monadic, official QuickCheck manual, https://begriffs.com/posts/2017-01-14-design-use-quickcheck.html, quickcheck-instances, Skip to Readme, Index, Quick Jump, Test.QuickCheck.All, Test.QuickCheck.Arbitrary, Test.QuickCheck.Function, Test.QuickCheck.Gen, Test.QuickCheck.Gen.Unsafe, Test.QuickCheck.Modifiers, Test.QuickCheck.Poly, More info, QuickCheck-2.14.3.tar.gz, browse, Package description, Package maintainers, DonaldStewart, KoenClaessen, NickSmallbone, SimonMarlow, edit package information , 2.12.1, 2.12.5, 2.13.2, 2.14.1
License
BSD-3-Clause
Install
cabal install QuickCheck-2.12.6

Documentation

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

Add `QuickCheck` to your package dependencies to use it in tests or REPL.

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

The make-hugs script makes a Hugs-compatible version of QuickCheck.
It may also be useful for other non-GHC implementations.

[1]: http://hackage.haskell.org/package/quickcheck-instances