PropCheck vs Racket QuickCheck
PropCheck
github.comRacket QuickCheck
docs.racket-lang.orgSide by side
| Figure | PropCheck | Racket QuickCheck |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Self-hosted | Yes | — |
| Plans published | 1 | 1 |
| Spec score · Property-Based Testing Tools | 8.0 (#7) | 8.2 (#4) |
| Custom generators | Its generator API includes mapping, binding, choosing among alternatives, and weighted frequency selection. | The library supports custom generators and includes generators for values such as integers, real numbers, characters, lists, vectors, strings, and symbols. |
| Generators | It includes generators for common Ruby data types and a DSL for defining custom generators. | Built-in generators cover values including integers, real numbers, characters, lists, vectors, strings, and symbols. |
| Installation | The README says to add `gem 'prop_check'` to a Gemfile or install it with `gem install prop_check`. | Install the package with `raco pkg install quickcheck` or through DrRacket’s GUI package manager. |
| Purpose | PropCheck is a Ruby library for property-based testing that checks assertions against generated inputs. | Quickcheck tests program specifications by running properties against randomly generated test inputs. |
Plans
In their own words
PropCheck
PropCheck is a Ruby library for property-based testing: it generates inputs and checks whether assertions hold across them. When a generated example fails, it tries to simplify that case into a smaller counterexample. Built-in generators cover integers, floats, strings, symbols, arrays, hashes, sets, dates, times and datetimes. A generator DSL lets developers define their own, while the API also supports mapping and binding values, alternatives and weighted frequency choices.
Before, after and around hooks provide setup and cleanup around generated examples. The README gives usage examples for RSpec, MiniTest, test-unit and vanilla Ruby, and says the library has no external dependencies. PropCheck requires Ruby 2.5.1 or later and is released under the MIT License. It is available as a free Community library. Installation can be done through a Gemfile or with `gem install prop_check`. For generated examples involving a database, the README recommends cleaning database state around each example and mentions DatabaseCleaner. Stateful property testing is described as a possible future separate add-on.
Racket QuickCheck
Racket QuickCheck is a free package for checking program properties with generated inputs. A property is written as ordinary Racket code, and the package runs it against generated values; if a check fails, it reports a counterexample and the arguments that produced it. Its default configuration runs 100 successful tests, and helpers allow counts of 1,000, 10,000, or a custom number. Built-in generators cover integers, real numbers, characters, lists, vectors, strings, and symbols, and custom generators are supported. The `rackunit/quickcheck` integration raises a RackUnit exception when a check fails and includes the test count and counterexample arguments. Install the package with `raco pkg install quickcheck` or through DrRacket’s GUI package manager. It requires Racket v6.0 or newer. Racket provides installers for Linux, macOS, and Windows. The package listing reports a successful build and passing tests, while also noting missing license metadata. The listed price is free.