QuickCheck: Automatic testing of Haskell programs
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.
[Skip to Readme]
Versions | 1.0, 1.1.0.0, 1.2.0.0, 1.2.0.1, 2.1, 2.1.0.1, 2.1.0.2, 2.1.0.3, 2.1.1, 2.1.1.1, 2.1.2, 2.2, 2.3, 2.3.0.1, 2.3.0.2, 2.4, 2.4.0.1, 2.4.1, 2.4.1.1, 2.4.2, 2.5, 2.5.1, 2.5.1.1, 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.8, 2.8.1, 2.8.2, 2.9, 2.9.1, 2.9.2, 2.10, 2.10.0.1, 2.10.1, 2.11, 2.11.1, 2.11.2, 2.11.3 (info) |
---|---|
Change log | changelog |
Dependencies | base (>=4.3 && <5), containers, deepseq, ghc-prim, old-locale, old-time, random, template-haskell (>=2.4), tf-random (>=0.4), transformers (>=0.3) [details] |
License | BSD-3-Clause |
Copyright | 2000-2017 Koen Claessen, 2006-2008 Björn Bringert, 2009-2017 Nick Smallbone |
Author | Koen Claessen <koen@chalmers.se> |
Maintainer | Nick Smallbone <nick@smallbone.se>; see also QuickCheck mailing list (https://groups.google.com/forum/#!forum/haskell-quickcheck) |
Category | Testing |
Home page | https://github.com/nick8325/quickcheck |
Bug tracker | https://github.com/nick8325/quickcheck/issues |
Source repo | head: git clone https://github.com/nick8325/quickcheck this: git clone https://github.com/nick8325/quickcheck(tag 2.10) |
Uploaded | by NickSmallbone at Thu Jun 15 21:35:56 UTC 2017 |
Distributions | Arch:2.10.1, Debian:2.8.1, Fedora:2.10.1, FreeBSD:2.8.1, LTSHaskell:2.10.1, NixOS:2.11.3, Stackage:2.11.3, openSUSE:2.10.1 |
Downloads | 318571 total (598 in the last 30 days) |
Rating | 2.75 (votes: 9) [estimated by rule of succession] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-06-15 [all 1 reports] Hackage Matrix CI |
Modules
[Index]
- Test
- Test.QuickCheck
Flags
Name | Description | Default | Type |
---|---|---|---|
templatehaskell | Build Test.QuickCheck.All, which uses Template Haskell. | Enabled | Automatic |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- QuickCheck-2.10.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)