GOlang Property TestER
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arbitrary Introduce DefaultTestParametersWithSeed in favor of overriding the RN… Jun 29, 2018
commands Introduce DefaultTestParametersWithSeed in favor of overriding the RN… Jun 29, 2018
convey Introduce DefaultTestParametersWithSeed in favor of overriding the RN… Jun 29, 2018
gen Minor refactoring: readablity, test-assert Sep 10, 2018
prop Introduce DefaultTestParametersWithSeed in favor of overriding the RN… Jun 29, 2018
.gitignore Remove intermediates Feb 24, 2016
.travis.yml travis: update go versions Dec 10, 2017
CHANGELOG.md Test multi-value bi-mapping Jul 9, 2016
LICENSE Transfer repo Feb 15, 2016
Makefile Fix it again Apr 7, 2016
README.md fix: Reconnect links to the ScalaCheck API Jun 3, 2018
bi_mapper.go Add missing comments for bi_mapper methods. Nov 14, 2016
bi_mapper_test.go Rough layout for bijective generator derive (addresses #6) Jun 24, 2016
derived_gen.go Improve performance of Map, SuchThat and DeriveGen - #29 Mar 15, 2018
derived_gen_test.go Test multi-value bi-mapping Jul 9, 2016
doc.go Add some documentation Mar 9, 2016
example_fizzbuzz_test.go Add fizzbuzz example Mar 11, 2016
example_labels_test.go Workaround for godoc Apr 7, 2016
example_sqrt_test.go Generate more small floats to catch bugs. Nov 13, 2016
flag.go Some refactoring Feb 14, 2016
flag_test.go Improve coverage Feb 25, 2016
formated_reporter.go Actually support labels for arguments and condiftion failures Apr 7, 2016
formated_reporter_test.go Improve coverage Feb 26, 2016
gen.go Fix linter hints Jun 29, 2018
gen_parameter_test.go Add MaxSize and MinSize to GenParameters. Apr 7, 2017
gen_parameters.go Fixes #37 Aug 5, 2018
gen_result.go Addresses #28 Feb 15, 2018
gen_result_test.go Improve coverage Mar 8, 2016
gen_test.go Made gen.Map much more flexible Jun 29, 2018
locked_source.go Fixes #37 Aug 5, 2018
prop.go Add MaxSize and MinSize to GenParameters. Apr 7, 2017
prop_arg.go Address various linting problems Apr 30, 2016
prop_arg_test.go Address various linting problems Apr 30, 2016
prop_result.go Fix final two issues Apr 30, 2016
prop_result_test.go Improve coverage Mar 4, 2016
prop_test.go Add MaxSize and MinSize to GenParameters. Apr 7, 2017
properties.go Merge branch 'master' into prateek/default-reporter-width Jun 26, 2018
properties_test.go Allow users to override reporter during TestingRun Jun 22, 2018
reporter.go Fix various linting issues Mar 18, 2016
runner.go Ensure to return full test result when running multiple workers Jul 15, 2018
runner_test.go Ensure to return full test result when running multiple workers Jul 15, 2018
shrink.go Add an implementation warning to Shrink (addresses #6) Jun 24, 2016
shrink_test.go Additional tests Apr 30, 2016
test_parameters.go Fixes #37 even more Aug 6, 2018
test_result.go Address various linting problems Apr 30, 2016
test_result_test.go Improve coverage Feb 24, 2016

README.md

GOPTER

... the GOlang Property TestER Build Status codecov GoDoc

Change Log

Synopsis

Gopter tries to bring the goodness of ScalaCheck (and implicitly, the goodness of QuickCheck) to Go. It can also be seen as a more sophisticated version of the testing/quick package.

Main differences to ScalaCheck:

  • It is Go ... duh
  • ... nevertheless: Do not expect the same typesafety and elegance as in ScalaCheck.
  • For simplicity Shrink has become part of the generators. They can still be easily changed if necessary.
  • There is no Pretty ... so far gopter feels quite comfortable being ugly.
  • A generator for regex matches
  • No parallel commands ... yet?

Main differences to the testing/quick package:

  • Much tighter control over generators
  • Shrinkers, i.e. automatically find the minimum value falsifying a property
  • A generator for regex matches (already mentioned that ... but it's cool)
  • Support for stateful tests

Documentation

Current godocs:

  • gopter: Main interfaces
  • gopter/gen: All commonly used generators
  • gopter/prop: Common helpers to create properties from a condition function and specific generators
  • gopter/arbitrary: Helpers automatically combine generators for arbitrary types
  • gopter/commands: Helpers to create stateful tests based on arbitrary commands
  • gopter/convey: Helpers used by gopter inside goconvey tests

License

MIT Licence