Skip to content
SPECIFICTION
Get listed

FSharp.Hedgehog vs QCheck

FSharp.Hedgehog

github.com

QCheck

github.com

Side by side

FigureFSharp.HedgehogQCheck
Price from—Free
Free plan—Yes
Free trial——
Open source——
WindowsYes—
macOSYes—
LinuxYesYes
Plans published01
Spec score · Property-Based Testing Tools7.5 (#13)7.9 (#9)
GeneratorsIt includes generators for primitive values and composable operations for building generators for complex types.QCheck includes combinators for constructing random generators, including generators for lists, arrays, recursive types, algebraic types, and tuples.
InstallationThe opened project pages do not state a download or platform-specific installation method.QCheck can be installed through opam, and the README recommends qcheck-core for a minimal dependency set.
Integrated shrinkingWhen a property fails, Hedgehog shrinks the failing input to a smaller counterexample while preserving the generated values’ invariants.The README says shrinking is built into QCheck2 generators, so users do not need to hand-write shrinkers for that API.
LicenseThe repository license is Apache License 2.0.The repository identifies its license as BSD-2-Clause and says the code is released under the BSD license.
PurposeHedgehog is a property-based testing system for .NET that automatically generates inputs to help find edge cases.QCheck is a QuickCheck-inspired property-based testing library for OCaml.

Plans

FSharp.Hedgehog

No plans published.

FSharp.Hedgehog pricing →

QCheck

  • QCheckFree

QCheck pricing →

In their own words

FSharp.Hedgehog

FSharp.Hedgehog has no write-up on Specifiction yet; its figures are above.

Visit github.com

QCheck

QCheck is a property-based testing library for OCaml, inspired by QuickCheck. Rather than relying only on hand-picked examples, it provides combinators to generate values such as lists, arrays, tuples, recursive types, and algebraic types for checking properties. When a check fails, generators can be paired with printers and shrinkers to show and reduce counterexamples. QCheck2 builds shrinking into its generators, though the project describes that API as less battle-tested than QCheck. The package family includes qcheck-core, qcheck-ounit, qcheck-alcotest, qcheck, and ppx_deriving_qcheck; the last can derive generators from type declarations. Runner options include QCheck_base_runner in qcheck-core and QCheck_runner with OUnit compatibility in qcheck, with integration layers for OUnit and Alcotest. The project also points to qcheck-stm for sequential and parallel model-based tests and qcheck-lin for sequential consistency testing. Installation is available through opam, and the source can be built with make. The minimal qcheck-core package depends only on unix and dune. QCheck is free and licensed under BSD-2-Clause.

Visit github.com