Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.circleci/ | H | 27-Sep-2020 | - | |||
assert/ | H | 27-Sep-2020 | - | |||
env/ | H | 27-Sep-2020 | - | |||
fs/ | H | 27-Sep-2020 | - | |||
golden/ | H | 27-Sep-2020 | - | |||
icmd/ | H | 27-Sep-2020 | - | |||
internal/ | H | 27-Sep-2020 | - | |||
poll/ | H | 27-Sep-2020 | - | |||
scripts/ | H | 27-Sep-2020 | - | |||
skip/ | H | 27-Sep-2020 | - | |||
x/ | H | 27-Sep-2020 | - | |||
.codecov.yml | H A D | 27-Sep-2020 | 117 | |||
.gitignore | H A D | 27-Sep-2020 | 44 | |||
.golangci.yml | H A D | 27-Sep-2020 | 1.1 KiB | |||
CONTRIBUTING.md | H A D | 27-Sep-2020 | 870 | |||
Dockerfile | H A D | 27-Sep-2020 | 1,022 | |||
Gopkg.toml | H A D | 27-Sep-2020 | 451 | |||
LICENSE | H A D | 27-Sep-2020 | 561 | |||
README.md | H A D | 27-Sep-2020 | 1.9 KiB | |||
appveyor.yml | H A D | 27-Sep-2020 | 478 | |||
dobi.yaml | H A D | 27-Sep-2020 | 1 KiB | |||
go.mod | H A D | 27-Sep-2020 | 194 | |||
go.sum | H A D | 27-Sep-2020 | 1.4 KiB | |||
pkg.go | H A D | 27-Sep-2020 | 151 |
README.md
1# gotest.tools 2 3A collection of packages to augment `testing` and support common patterns. 4 5[![GoDoc](https://godoc.org/gotest.tools?status.svg)](https://pkg.go.dev/gotest.tools/v3/?tab=subdirectories) 6[![CircleCI](https://circleci.com/gh/gotestyourself/gotest.tools/tree/master.svg?style=shield)](https://circleci.com/gh/gotestyourself/gotest.tools/tree/master) 7[![Go Reportcard](https://goreportcard.com/badge/gotest.tools)](https://goreportcard.com/report/gotest.tools) 8 9## Usage 10 11With Go modules enabled (go1.11+) 12 13``` 14$ go get gotest.tools/v3 15``` 16 17``` 18import "gotest.tools/v3/assert" 19``` 20 21To use `gotest.tools` with an older version of Go that does not understand Go 22module paths pin to version `v2.3.0`. 23 24 25## Packages 26 27* [assert](http://pkg.go.dev/gotest.tools/v3/assert) - 28 compare values and fail the test when a comparison fails 29* [env](http://pkg.go.dev/gotest.tools/v3/env) - 30 test code which uses environment variables 31* [fs](http://pkg.go.dev/gotest.tools/v3/fs) - 32 create temporary files and compare a filesystem tree to an expected value 33* [golden](http://pkg.go.dev/gotest.tools/v3/golden) - 34 compare large multi-line strings against values frozen in golden files 35* [icmd](http://pkg.go.dev/gotest.tools/v3/icmd) - 36 execute binaries and test the output 37* [poll](http://pkg.go.dev/gotest.tools/v3/poll) - 38 test asynchronous code by polling until a desired state is reached 39* [skip](http://pkg.go.dev/gotest.tools/v3/skip) - 40 skip a test and print the source code of the condition used to skip the test 41 42## Related 43 44* [gotest.tools/gotestsum](https://github.com/gotestyourself/gotestsum) - go test runner with custom output 45* [maxbrunsfeld/counterfeiter](https://github.com/maxbrunsfeld/counterfeiter) - generate fakes for interfaces 46* [jonboulle/clockwork](https://github.com/jonboulle/clockwork) - a fake clock for testing code that uses `time` 47 48## Contributing 49 50See [CONTRIBUTING.md](CONTRIBUTING.md). 51