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

..03-May-2022-

.circleci/H27-Sep-2020-

assert/H27-Sep-2020-

env/H27-Sep-2020-

fs/H27-Sep-2020-

golden/H27-Sep-2020-

icmd/H27-Sep-2020-

internal/H27-Sep-2020-

poll/H27-Sep-2020-

scripts/H27-Sep-2020-

skip/H27-Sep-2020-

x/H27-Sep-2020-

.codecov.ymlH A D27-Sep-2020117

.gitignoreH A D27-Sep-202044

.golangci.ymlH A D27-Sep-20201.1 KiB

CONTRIBUTING.mdH A D27-Sep-2020870

DockerfileH A D27-Sep-20201,022

Gopkg.tomlH A D27-Sep-2020451

LICENSEH A D27-Sep-2020561

README.mdH A D27-Sep-20201.9 KiB

appveyor.ymlH A D27-Sep-2020478

dobi.yamlH A D27-Sep-20201 KiB

go.modH A D27-Sep-2020194

go.sumH A D27-Sep-20201.4 KiB

pkg.goH A D27-Sep-2020151

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