• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

arbitrary/H15-Jan-2019-

commands/H15-Jan-2019-

convey/H15-Jan-2019-

gen/H15-Jan-2019-

prop/H15-Jan-2019-

.gitignoreH A D15-Jan-2019312

.travis.ymlH A D15-Jan-2019869

CHANGELOG.mdH A D15-Jan-20192.8 KiB

LICENSEH A D15-Jan-20191.1 KiB

MakefileH A D15-Jan-20191.1 KiB

README.mdH A D15-Jan-20192.3 KiB

bi_mapper.goH A D15-Jan-20193.1 KiB

bi_mapper_test.goH A D15-Jan-2019779

derived_gen.goH A D15-Jan-20192.8 KiB

derived_gen_test.goH A D15-Jan-20195.2 KiB

doc.goH A D15-Jan-2019976

example_fizzbuzz_test.goH A D15-Jan-20192 KiB

example_labels_test.goH A D15-Jan-20191.4 KiB

example_libraries_test.goH A D15-Jan-20192.4 KiB

example_sqrt_test.goH A D15-Jan-20191,015

flag.goH A D15-Jan-2019376

flag_test.goH A D15-Jan-2019365

formated_reporter.goH A D15-Jan-20193.6 KiB

formated_reporter_test.goH A D15-Jan-20192.1 KiB

gen.goH A D15-Jan-20198.3 KiB

gen_parameter_test.goH A D15-Jan-20191.2 KiB

gen_parameters.goH A D15-Jan-20192 KiB

gen_result.goH A D15-Jan-20191.7 KiB

gen_result_test.goH A D15-Jan-2019568

gen_test.goH A D15-Jan-20199.7 KiB

locked_source.goH A D15-Jan-20191.6 KiB

prop.goH A D15-Jan-20192.6 KiB

prop_arg.goH A D15-Jan-2019691

prop_arg_test.goH A D15-Jan-2019447

prop_result.goH A D15-Jan-20192.6 KiB

prop_result_test.goH A D15-Jan-20192.5 KiB

prop_test.goH A D15-Jan-20193.8 KiB

properties.goH A D15-Jan-20191.5 KiB

properties_test.goH A D15-Jan-2019937

reporter.goH A D15-Jan-2019237

runner.goH A D15-Jan-20191.6 KiB

runner_test.goH A D15-Jan-20193.6 KiB

shrink.goH A D15-Jan-20194.7 KiB

shrink_test.goH A D15-Jan-20193.8 KiB

test_parameters.goH A D15-Jan-20191.1 KiB

test_result.goH A D15-Jan-20191.1 KiB

test_result_test.goH A D15-Jan-20191.1 KiB

README.md

1# GOPTER
2
3... the GOlang Property TestER
4[![Build Status](https://travis-ci.org/leanovate/gopter.svg?branch=master)](https://travis-ci.org/leanovate/gopter)
5[![codecov](https://codecov.io/gh/leanovate/gopter/branch/master/graph/badge.svg)](https://codecov.io/gh/leanovate/gopter)
6[![GoDoc](https://godoc.org/github.com/leanovate/gopter?status.png)](https://godoc.org/github.com/leanovate/gopter)
7
8[Change Log](CHANGELOG.md)
9
10## Synopsis
11
12Gopter tries to bring the goodness of [ScalaCheck](https://www.scalacheck.org/) (and implicitly, the goodness of [QuickCheck](http://hackage.haskell.org/package/QuickCheck)) to Go.
13It can also be seen as a more sophisticated version of the testing/quick package.
14
15Main differences to ScalaCheck:
16
17* It is Go ... duh
18* ... nevertheless: Do not expect the same typesafety and elegance as in ScalaCheck.
19* For simplicity [Shrink](https://www.scalacheck.org/files/scalacheck_2.11-1.14.0-api/index.html#org.scalacheck.Shrink) has become part of the generators. They can still be easily changed if necessary.
20* There is no [Pretty](https://www.scalacheck.org/files/scalacheck_2.11-1.14.0-api/index.html#org.scalacheck.util.Pretty) ... so far gopter feels quite comfortable being ugly.
21* A generator for regex matches
22* No parallel commands ... yet?
23
24Main differences to the testing/quick package:
25
26* Much tighter control over generators
27* Shrinkers, i.e. automatically find the minimum value falsifying a property
28* A generator for regex matches (already mentioned that ... but it's cool)
29* Support for stateful tests
30
31## Documentation
32
33Current godocs:
34
35* [gopter](https://godoc.org/github.com/leanovate/gopter):  Main interfaces
36* [gopter/gen](https://godoc.org/github.com/leanovate/gopter/gen): All commonly used generators
37* [gopter/prop](https://godoc.org/github.com/leanovate/gopter/prop): Common helpers to create properties from a condition function and specific generators
38* [gopter/arbitrary](https://godoc.org/github.com/leanovate/gopter/arbitrary): Helpers automatically combine generators for arbitrary types
39* [gopter/commands](https://godoc.org/github.com/leanovate/gopter/commands): Helpers to create stateful tests based on arbitrary commands
40* [gopter/convey](https://godoc.org/github.com/leanovate/gopter/convey): Helpers used by gopter inside goconvey tests
41
42## License
43
44[MIT Licence](http://opensource.org/licenses/MIT)
45