# QuickCheck

> Haskell library for property-based testing: check properties against randomly generated inputs

Source: https://talira.ai/catalog/quickcheck-ms7ypda7
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / property based](https://talira.ai/categories/developer-tools/testing/property-based), [developer tools / testing](https://talira.ai/categories/developer-tools/testing)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Nick Smallbone](https://talira.ai/orgs/nick-smallbone.md)

QuickCheck is a Haskell library for random testing of program properties. Instead of writing individual test cases, you state properties that functions should satisfy, and QuickCheck checks that they hold in a large number of randomly generated cases. It provides combinators for defining properties and test data generators and for observing the distribution of test data, plus a library for testing monadic code. It was written by Koen Claessen and is maintained by Nick Smallbone; the companion quickcheck-instances package adds instances for types in common Haskell packages, and it also runs on Hugs.

## Links

- GitHub: https://github.com/nick8325/quickcheck

## Problems it solves

- my Haskell unit tests only cover the inputs I thought of
- generate random test data for my Haskell functions instead of writing cases by hand
- check that an encode and decode function round-trip for any input in Haskell

## Features

- properties written in Haskell with QuickCheck's combinators, tested on random inputs
- combinators for custom test data generators
- observing the distribution of test data
- Test.QuickCheck.Monadic for testing monadic code
- a Hugs-compatible build through its make-hugs script

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.47, adoption 0.58, momentum 0.23, community 0.77, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 3 commits in the last 90 days
- 793 GitHub stars
- 84 contributors
- backed by Nick Smallbone

## Alternatives

- [Hedgehog](https://talira.ai/catalog/hedgehog-5qdtgdp6.md): Property-based testing for Haskell with integrated shrinking
- [fast-check](https://talira.ai/catalog/fast-check-4wmky7yh.md): Property-based testing for JavaScript and TypeScript

## Sources

[^1]: https://github.com/nick8325/quickcheck/blob/master/LICENSE (checked 27 Nov 2026)
