Package2.15.0.1Testing
QuickCheck
Automatic testing of Haskell programs
- Version2.15.0.1
- CategoryTesting
- LicenceBSD-3-Clause
- AuthorKoen Claessen <koen@chalmers.se>
- MaintainerNick Smallbone <nick@smallbone.se>
- Homepagegithub.com/nick8325/quickcheck
- Pinned byhackage QuickCheck 2.15.0.1
- Sourcehackage.haskell.org/package/QuickCheck-2.15.0.1
Modules
16 modules- Test.QuickCheck180The QuickCheck manual
- Test.QuickCheck.All7Note: the contents of this module are re-exported by
- Test.QuickCheck.Arbitrary43Type classes for random generation of values. Note: the contents of this module are re-exported by
- Test.QuickCheck.Function20Generation of random shrinkable, showable functions.
- Test.QuickCheck.Gen33Test case generation. Note: the contents of this module (except for the definition of
- Test.QuickCheck.Gen.Unsafe4Unsafe combinators for the Gen monad. Gen is only morally a monad: two generators that are supposed
- Test.QuickCheck.Modifiers20Modifiers for test data. These types do things such as restricting the kind of test data that can be generated.
- Test.QuickCheck.Monadic19Allows testing of monadic values. Will generally follow this form: prop_monadic a b = monadicIO $ do
- Test.QuickCheck.Poly6Types to help with testing polymorphic properties. Types A, B and C are newtype wrappers around Integer that
Internal modules · 7
- Test.QuickCheck.Exception8Throwing and catching exceptions. Internal QuickCheck module.
- Test.QuickCheck.Features6
- Test.QuickCheck.Property79Combinators for constructing properties.
- Test.QuickCheck.Random6A wrapper around the system random number generator. Internal QuickCheck module.
- Test.QuickCheck.State2QuickCheck's internal state. Internal QuickCheck module.
- Test.QuickCheck.Test49The main test loop.
- Test.QuickCheck.Text28Terminal 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.20.2.0with GHC
- containers-0.7with GHC
- deepseq-1.5.0.0with GHC
- random-1.2.1.3in this set
- splitmix-0.1.3.1in this set
- template-haskell-2.22.0.0with GHC
- transformers-0.6.1.1with GHC
Used by in this set · 77
- ChasingBottoms-1.3.1.16
- Stream-0.4.7.2
- aeson-2.2.3.0
- base64-bytestring-type-1.0.1
- bin-0.1.4
- checkers-0.6.0
- 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
- generic-random-1.5.0.1
- genvalidity-1.1.1.0
- genvalidity-aeson-1.0.0.1
- genvalidity-bytestring-1.0.0.1
- genvalidity-containers-1.0.0.1
- 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.0.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.0.0
- genvalidity-sydtest-aeson-1.0.0.0
- genvalidity-sydtest-hashable-1.0.0.1
- genvalidity-sydtest-lens-1.0.0.0
- genvalidity-sydtest-persistent-1.0.0.0
- 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
- hoogle-5.0.18.4
- hspec-2.11.14
- hspec-core-2.11.14
- hspec-golden-aeson-0.9.0.0
- hspec-hedgehog-0.3.0.0
- hspec-meta-2.11.14
- hspec-wai-0.11.1
- language-nix-2.2.0
- lua-arbitrary-1.0.1.1
- microspec-0.2.1.3
- modern-uri-0.3.6.0
- non-negative-0.1.2
- numeric-prelude-0.4.4
- openapi3-3.2.4
- pandoc-types-1.23.1
- persistent-test-2.13.1.3
- 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-instances-0.3.33
- quickcheck-io-0.2.0
- quickcheck-text-0.1.2.1
- quickcheck-unicode-1.0.1.0
- refined-0.8.2
- rere-0.2.0.2
- servant-0.20.2
- servant-openapi3-2.0.1.6
- storable-record-0.0.7
- swagger2-2.8.9
- sydtest-0.22.0.0
- tasty-hspec-1.2.0.4
- tasty-lua-1.1.1
- tasty-quickcheck-0.11.1
- test-framework-quickcheck2-0.3.0.6
- testing-feat-1.1.1.1
- text-builder-dev-0.3.4.2
- tree-diff-0.3.4
- vec-0.5.1