Package2.18.0.0Testing
QuickCheck
Automatic testing of Haskell programs
- Version2.18.0.0
- CategoryTesting
- LicenceBSD-3-Clause
- AuthorKoen Claessen <koen@chalmers.se>
- MaintainerNick Smallbone <nick@smallbone.se>
- Homepagegithub.com/nick8325/quickcheck
- Pinned byhackage QuickCheck 2.18.0.0
- Sourcehackage.haskell.org/package/QuickCheck-2.18.0.0
Modules
- Test.QuickCheckThe QuickCheck manual
- Test.QuickCheck.AllNote: the contents of this module are re-exported by
- Test.QuickCheck.ArbitraryType classes for random generation of values. Note: the contents of this module are re-exported by
- Test.QuickCheck.Compat
- Test.QuickCheck.FunctionGeneration of random shrinkable, showable functions.
- Test.QuickCheck.GenTest case generation. Note: the contents of this module (except for the definition of
- Test.QuickCheck.Gen.UnsafeUnsafe combinators for the Gen monad. Gen is only morally a monad: two generators that are supposed
- Test.QuickCheck.ModifiersModifiers for test data. These types do things such as restricting the kind of test data that can be generated.
- Test.QuickCheck.MonadicAllows testing of monadic values. Will generally follow this form: prop_monadic a b = monadicIO $ do
- Test.QuickCheck.Monoids
- Test.QuickCheck.PolyTypes to help with testing polymorphic properties. Types A, B and C are newtype wrappers around Integer that
Internal modules · 7
- Test.QuickCheck.ExceptionThrowing and catching exceptions. Internal QuickCheck module.
- Test.QuickCheck.Features
- Test.QuickCheck.PropertyCombinators for constructing properties.
- Test.QuickCheck.RandomA wrapper around the system random number generator. Internal QuickCheck module.
- Test.QuickCheck.StateQuickCheck's internal state. Internal QuickCheck module.
- Test.QuickCheck.TestThe main test loop.
- Test.QuickCheck.TextTerminal control and text helper functions. Internal QuickCheck module.
Description
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.
Depends on
7 packages- base-4.23.0.0with GHC
- containers-0.8with GHC
- deepseq-1.5.2.0with GHC
- random-1.3.1in this set
- splitmix-0.1.3.2in this set
- template-haskell-2.25.0.0with GHC
- transformers-0.6.3.0with GHC
Used by in this set · 85
- ChasingBottoms-1.3.1.17
- Stream-0.4.7.2
- aeson-2.2.5.1
- base64-bytestring-type-1.0.1
- bin-0.1.4.1
- checkers-0.6.0
- chell-quickcheck-0.2.5.4
- crypto-api-tests-0.3
- cursor-gen-0.4.0.0
- doctest-exitcode-stdio-0.0.0.1
- fgl-arbitrary-0.2.0.6
- fin-0.3.2
- fuzzy-time-gen-0.3.0.0
- generic-arbitrary-1.0.1.2
- generic-random-1.5.0.1
- genvalidity-1.1.1.0
- genvalidity-aeson-1.1.0.0
- genvalidity-bytestring-1.0.0.1
- genvalidity-containers-1.0.0.2
- genvalidity-criterion-1.1.0.0
- genvalidity-hspec-1.0.0.4
- genvalidity-hspec-aeson-1.0.0.0
- genvalidity-hspec-optics-1.0.0.0
- genvalidity-network-uri-0.1.0.0
- genvalidity-path-1.0.0.1
- genvalidity-persistent-1.0.0.2
- genvalidity-property-1.0.0.0
- genvalidity-scientific-1.0.0.0
- genvalidity-sydtest-1.0.1.0
- genvalidity-sydtest-aeson-1.0.0.1
- genvalidity-sydtest-hashable-1.0.0.1
- genvalidity-sydtest-lens-1.0.0.0
- genvalidity-sydtest-persistent-1.0.0.1
- genvalidity-text-1.0.0.1
- genvalidity-time-1.0.0.1
- genvalidity-unordered-containers-1.0.0.1
- genvalidity-uuid-1.0.0.1
- genvalidity-vector-1.0.0.0
- hedgehog-quickcheck-0.1.1
- hnix-store-remote-0.7.0.0
- hnix-store-tests-0.1.0.0
- hoogle-5.0.19.0
- hspec-2.11.18
- hspec-core-2.11.18
- hspec-golden-aeson-0.9.0.0
- hspec-hedgehog-0.3.0.0
- hspec-meta-2.11.18
- hspec-wai-0.12.1
- isomorphism-class-0.3.1.4
- language-nix-2.3.0
- lua-arbitrary-1.0.1.2
- microspec-0.2.1.3
- modern-uri-0.3.6.1
- non-negative-0.1.2.1
- numeric-prelude-0.4.4
- openapi3-3.2.5
- pandoc-types-1.23.1.2
- persistent-test-2.13.2.1
- quickcheck-arbitrary-adt-0.3.1.0
- quickcheck-assertions-0.3.0
- quickcheck-classes-0.6.5.0
- quickcheck-classes-base-0.6.2.0
- quickcheck-dynamic-4.0.1
- quickcheck-instances-0.4
- quickcheck-io-0.2.0
- quickcheck-text-0.1.2.1
- quickcheck-unicode-1.0.1.0
- refined-0.8.2
- servant-0.20.3.0
- servant-openapi3-2.1.0.0
- sorted-list-0.3.1.0
- storable-record-0.0.7
- strict-list-1.0.0.1
- swagger2-2.9.1
- sydtest-0.33.0.0
- sydtest-mutation-runtime-0.2.0.0
- tasty-hspec-1.2.0.4
- tasty-lua-1.1.2
- tasty-quickcheck-0.11.1
- test-framework-quickcheck2-0.3.0.7
- testing-feat-1.1.1.1
- text-builder-core-0.1.1.3
- thyme-0.4.1
- tree-diff-0.4.1
- vec-0.5.1.1