Skip to content
SPECIFICTION
Get listed

Gopter vs RapidCheck

Gopter

github.com

RapidCheck

github.com

Side by side

FigureGopterRapidCheck
Price fromFree—
Free planYes—
Free trial——
Open source——
Windows—Yes
LinuxYesYes
Self-hostedYesYes
Plans published20
Spec score · Property-Based Testing Tools8.6 (#2)7.0 (#21)
GeneratorsIt provides tighter control over generators than Go's testing/quick package.RapidCheck includes generators for common types and combinators for building custom generators.
LicenseThe repository identifies Gopter as MIT licensed.The repository identifies its license as BSD-2-Clause.
PurposeGopter is a Go property-testing library that brings ideas from ScalaCheck and QuickCheck to Go.RapidCheck is a C++ framework for property-based testing inspired by QuickCheck and similar frameworks.
ShrinkingIts shrinkers automatically seek a minimum value that falsifies a property.When a property fails, RapidCheck tries to find the smallest failing test case and displays it as a counterexample.
Stateful testingGopter supports stateful tests.The README describes stateful testing based on commands in the style of Erlang QuickCheck.

Plans

Gopter

  • GopterFree
  • MIT-licensed packageFree

Gopter pricing →

RapidCheck

No plans published.

RapidCheck pricing →

In their own words

Gopter

Gopter is a free Go module for property-based testing. It creates properties from conditions and generated inputs, then checks whether those properties hold. Its generators provide more control than Go's testing/quick package and can be composed with operations such as Map, FlatMap, SuchThat, and WithShrinker. When a property fails, shrinkers seek a smaller value that still demonstrates the failure. Gopter also includes a generator for regular-expression matches and supports stateful tests based on arbitrary commands. Properties can run with Go's testing.T through TestingRun, and the gopter/convey package provides helpers for using Gopter inside GoConvey tests. Console and formatted reporters present test results. The project declares Go 1.20 and is distributed under the MIT License. Its documentation covers the gopter, gen, prop, arbitrary, commands, and convey packages. The README identifies two omissions: ScalaCheck's Pretty feature is not provided, and parallel commands are not available yet.

Visit github.com

RapidCheck

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

Visit github.com