QuickCheck

From Wikipedia, the free encyclopedia

Developer(s)Koen Claessen, John Hughes
Initial release1999; 25 years ago (1999)
Stable release
2.14.2 / 14 November 2020; 3 years ago (2020-11-14)
Repositorygithub.com/nick8325/quickcheck
Written inHaskell
Operating systemUnix-like, Windows
Available inEnglish
TypeSoftware testing
LicenseBSD-style
Websitewww.cse.chalmers.se/~rjmh/QuickCheck

QuickCheck is a software library, specifically 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[edit]

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:

See also[edit]

References[edit]

  1. ^ "Data.Collections.Properties". hackage.haskell.org.
  2. ^ Pennebaker, Andrew (mcandre) (October 13, 2011). "qc". GitHub. Retrieved December 9, 2011.
  3. ^ Zito, Andrea (nivox) (July 27, 2014). "quickcheck4c". GitHub. Retrieved July 27, 2014.
  4. ^ Vokes, Scott (March 30, 2015). "Theft: property-based testing for C". GitHub. Retrieved November 16, 2015.
  5. ^ "QuickCheck". Software.legiasoft.com. Retrieved December 9, 2011.
  6. ^ "CppQuickCheck". GitHub. Retrieved March 30, 2015.
  7. ^ "RapidCheck". GitHub. Retrieved March 30, 2015.
  8. ^ Pennebaker, Andrew (mcandre). "cluckcheck". GitHub. Retrieved December 9, 2011.
  9. ^ Draper, Reid (reiddraper) (May 9, 2013). "simple-check". GitHub. Retrieved August 21, 2013.
  10. ^ Draper, Reid (reiddraper) (March 27, 2014). "org.clojure/test.check". GitHub. Retrieved March 27, 2014.
  11. ^ "cl-quickcheck". Cliki. Retrieved December 9, 2011.
  12. ^ "QuickChick". GitHub. Retrieved August 26, 2019.
  13. ^ Pennebaker, Andrew (mcandre) (October 27, 2011). "dashcheck". GitHub. Retrieved December 9, 2011.
  14. ^ "elm-explorations/test". GitHub. Retrieved November 20, 2018.
  15. ^ Thomas, Dave (pragdave) (July 17, 2017). "quixir: Property-based testing for Elixir". GitHub. Retrieved April 1, 2019.
  16. ^ Alfert, Klaus. "propcheck: Property based testing for Elixir". GitHub. Retrieved February 1, 2021.
  17. ^ "PropEr: a QuickCheck-inspired property-based testing tool for Erlang". GitHub. Retrieved May 8, 2019.
  18. ^ "FsCheck". GitHub. June 25, 2015. Retrieved June 25, 2011.
  19. ^ Pennebaker, Andrew (mcandre) (October 13, 2011). "factcheck". GitHub. Retrieved December 9, 2011.
  20. ^ leanovate (April 26, 2016). "Gopter". GitHub. Retrieved April 26, 2016.
  21. ^ Pennebaker, Andrew (mcandre) (October 17, 2011). "IoCheck". GitHub. Retrieved December 9, 2011.
  22. ^ "FunctionalJava's QuickCheck module". FunctionalJava. Retrieved August 14, 2015.
  23. ^ "Quickcheck for Java". Quickcheck.dev.java.net. Retrieved December 9, 2011.
  24. ^ "JCheck". JCheck. Retrieved December 9, 2011.
  25. ^ "junit-quickcheck". junit-quickcheck. Retrieved July 3, 2013.
  26. ^ "jqwik for the JUnit5 Platform". jqwik. Retrieved June 19, 2017.
  27. ^ "Quick Theories property testing for Java 8". ncredinburgh. Retrieved October 30, 2017.
  28. ^ "jetCheck property-based testing for Java 8". JetBrains. Retrieved July 10, 2018.
  29. ^ Thompson, Darrin (darrint). "qc.js". Bitbucket. Retrieved December 9, 2011.
  30. ^ Crockford, Douglas. "jscheck". GitHub. Retrieved October 21, 2017.
  31. ^ Dubien, Nicolas (dubzzz). "fast-check". GitHub. Retrieved February 3, 2018.
  32. ^ "JSVerify — property based testing for JavaScript. Like QuickCheck". jsverify.github.io.
  33. ^ "Checkers.jl". GitHub. Retrieved April 8, 2018.
  34. ^ "lgtunit". Retrieved February 26, 2020.
  35. ^ "lua-quickcheck". GitHub. Retrieved February 25, 2017.
  36. ^ "QuickCheck.wl — Automated Property-Based Testing for the Wolfram Language - Online Technical Discussion Groups—Wolfram Community". community.wolfram.com. Retrieved July 11, 2021.
  37. ^ Pennebaker, Andrew (mcandre). "objcheck". GitHub. Retrieved December 9, 2011.
  38. ^ Cruanes, Simon. "QuickCheck inspired property-based testing for OCaml". GitHub. Retrieved September 1, 2022.
  39. ^ "Test: LectroTest: Tutorial". The LectroTest project was inspired by Haskell's QuickCheck module by Koen Claessen and John Hughes
  40. ^ "library(quickcheck)".
  41. ^ Amaral, Claudio; Florido, Mario; Costa, Vitor Santos (2014). "PrologCheck - Property-based testing in Prolog". Proceedings of the Twelfth International Symposium on Functional and Logic Programming (FLOPS 2014). Lecture Notes in Computer Science. 8475: 1–17. doi:10.1007/978-3-319-07151-0_1. ISBN 978-3-319-07150-3.
  42. ^ Oestreicher, Stefan (steos). "PhpQuickCheck". GitHub. Retrieved November 12, 2015.
  43. ^ Wahl, Matthias (mfelsche). "ponycheck". GitHub. Retrieved December 26, 2018.
  44. ^ MacIver, David (April 16, 2016). "QuickCheck in Every Language". Retrieved August 1, 2022.
  45. ^ "quickcheck: Property Based Testing in R". GitHub. March 17, 2022.
  46. ^ "Quickcheck". docs.racket-lang.org.
  47. ^ Pennebaker, Andrew (mcandre) (September 14, 2017). "Rubycheck: a Ruby port of the QuickCheck unit test framework". GitHub.
  48. ^ Gallant, Andrew (BurntSushi). "QuickCheck for Rust (with shrinking)". GitHub. Retrieved May 27, 2015.
  49. ^ "Hypothesis-like property testing for Rust". GitHub.
  50. ^ "ScalaCheck". GitHub. Retrieved June 30, 2016.
  51. ^ "scalaprops/scalaprops". GitHub. Retrieved June 30, 2016.
  52. ^ "nyaya". GitHub. Retrieved June 30, 2016.
  53. ^ "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.
  54. ^ Pennebaker, Andrew (mcandre). "QuickSmash". GitHub. Retrieved December 9, 2011.
  55. ^ "QCheck/SML". Contrapunctus. November 22, 2011. Retrieved December 9, 2011.
  56. ^ "SwiftCheck: QuickCheck for Swift". GitHub. November 3, 2017.
  57. ^ Dubien, Nicolas (dubzzz). "fast-check". GitHub. Retrieved February 3, 2018.
  58. ^ Chin, Janice. "QuickCheck for Whiley" (PDF). Retrieved April 20, 2020.

Further reading[edit]

External links[edit]