Skip to content
SPECIFICTION
Get listed

Gopter vs test.check

Gopter

github.com

test.check

github.com

Side by side

FigureGoptertest.check
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYes—
API—Yes
Self-hostedYes—
Plans published21
Spec score · Property-Based Testing Tools8.6 (#2)6.9 (#24)
GeneratorsIt provides tighter control over generators than Go's testing/quick package.It includes built-in generators and combinators for creating generators, including compound and recursive generators.
LicenseThe repository identifies Gopter as MIT licensed.The project is distributed under the Eclipse Public License, the same license as Clojure.
Property testingIt creates properties from condition functions and generated inputs.It lets developers state properties that should hold for all inputs instead of enumerating individual unit-test inputs and outputs.
PurposeGopter is a Go property-testing library that brings ideas from ScalaCheck and QuickCheck to Go.test.check is a Clojure property-based testing tool inspired by QuickCheck.

Plans

Gopter

  • GopterFree
  • MIT-licensed packageFree

Gopter pricing →

test.check

  • Free and open sourceFree

test.check 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

test.check

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

Visit github.com