QuickCheck is a software 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.
Quick Facts Developer(s), Initial release ...
Close
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.[1]
Re-implementations of QuickCheck exist for several languages:
Pennebaker, Andrew (mcandre) (October 13, 2011). "qc". GitHub. Retrieved December 9, 2011.
Zito, Andrea (nivox) (July 27, 2014). "quickcheck4c". GitHub. Retrieved July 27, 2014.
"QuickCheck". Software.legiasoft.com. Retrieved December 9, 2011.
Pennebaker, Andrew (mcandre). "cluckcheck". GitHub. Retrieved December 9, 2011.
Draper, Reid (reiddraper) (May 9, 2013). "simple-check". GitHub. Retrieved August 21, 2013.
Pennebaker, Andrew (mcandre) (October 27, 2011). "dashcheck". GitHub. Retrieved December 9, 2011.
"FsCheck". GitHub. June 25, 2015. Retrieved June 25, 2011.
Pennebaker, Andrew (mcandre) (October 13, 2011). "factcheck". GitHub. Retrieved December 9, 2011.
leanovate (April 26, 2016). "Gopter". GitHub. Retrieved April 26, 2016.
Pennebaker, Andrew (mcandre) (October 17, 2011). "IoCheck". GitHub. Retrieved December 9, 2011.
"JCheck". JCheck. Retrieved December 9, 2011.
Thompson, Darrin (darrint). "qc.js". Bitbucket. Retrieved December 9, 2011.
Crockford, Douglas. "jscheck". GitHub. Retrieved October 21, 2017.
Dubien, Nicolas (dubzzz). "fast-check". GitHub. Retrieved February 3, 2018.
Pennebaker, Andrew (mcandre). "objcheck". GitHub. Retrieved December 9, 2011.
Oestreicher, Stefan (steos). "PhpQuickCheck". GitHub. Retrieved November 12, 2015.
Wahl, Matthias (mfelsche). "ponycheck". GitHub. Retrieved December 26, 2018.
"nyaya". GitHub. Retrieved June 30, 2016.
"Scheme-Check: Randomized Unit Testing for PLT Scheme". Archived from the original on February 12, 2005. Scheme-Check is a module that implements randomized unit testing in PLT Scheme. With Scheme-Check, instead of creating many individual tests, you specify properties of your code and Scheme-Check generates a large amount of random data sets to test those properties. Scheme-Check is basically a Scheme port of QuickCheck.
Pennebaker, Andrew (mcandre). "QuickSmash". GitHub. Retrieved December 9, 2011.
"QCheck/SML". Contrapunctus. November 22, 2011. Retrieved December 9, 2011.
Dubien, Nicolas (dubzzz). "fast-check". GitHub. Retrieved February 3, 2018.
- Claessen, Koen; Hughes, John (2002). "Testing Monadic Programs with QuickCheck" (PostScript). SIGPLAN Notices. 37 (12): 47–59. CiteSeerX 10.1.1.111.1618. doi:10.1145/636517.636527. Retrieved January 29, 2006.
- Claessen, Koen & Hughes, John (2000). "QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs" (PDF). Proceedings of the International Conference on Functional Programming (ICFP), ACM SIGPLAN. Retrieved January 29, 2006.
- Claessen, Koen & Hughes, John (2003). "Specification Based Testing with QuickCheck". The Fun of Programming, Cornerstones of Computing, Jeremy Gibbons and Oege de Moor (Eds.). Palgrave: 17–40. Archived from the original on July 4, 2007. Retrieved January 29, 2006.
- Claessen, Koen (August 2004). "QuickCheck: Specification-based Random Testing". Presentation at Summer Institute on Trends in Testing: Theory, Techniques and Tools. Archived from the original (PPT) on April 30, 2007. Retrieved January 29, 2006.
- Claessen, Koen; Runciman, Colin; Chitil, Olaf & Hughes, John (2002). "Testing and Tracing Lazy Functional Programs Using QuickCheck and Hat". Advanced Functional Programming: 4th International School, Lecture Notes in Computer Science. 2638. Springer Verlag: 59–99. Archived from the original (PostScript) on October 12, 2006. Retrieved January 29, 2006.