QuickCheck

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

QuickCheck is a software library, a combinator library, originally written in the programming language Haskell, designed to assist in software testing by generating test cases for test suites – an approach known as property testing.

QuickCheck is a software library, a combinator library, originally written in the programming language Haskell, designed to assist in software testing by generating test cases for test suites – an approach known as property testing.

Software

It is compatible with the compiler, Glasgow Haskell Compiler (GHC) and the interpreter, Haskell User's Gofer System (Hugs). It is free and open-source software released under a BSD-style license. In QuickCheck, assertions are written about logical properties that a function should fulfill. Then QuickCheck attempts to generate a test case that falsifies such assertions. Once such a test case is found, QuickCheck tries to reduce it to a minimal failing subset by removing or simplifying input data that are unneeded to make the test fail.

The project began in 1999. Besides being used to test regular programs, QuickCheck is also useful for building up a functional specification, for documenting what functions should be doing, and for testing compiler implementations.

Re-implementations of QuickCheck exist for many languages: C C++ Chicken Clojure Common Lisp D Elm Elixir Erlang F#, and C#, Visual Basic (.NET) (VB.NET) Factor Go Io Java JavaScript Julia Logtalk Lua Mathematica Objective-C OCaml Perl Prolog PHP Pony Python R Racket Rocq Ruby Rust Scala Scheme Smalltalk Standard ML Swift TypeScript Whiley

See also

Metamorphic testing SPIN model checker Software testing#Property testing

References

Further reading

External links

QuickCheck on Hackage

Text derived from https://en.wikipedia.org/w/index.php?oldid=1338232429 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

38 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.