gotestyourself
gotest.tools
Go

A collection of packages to augment the go testing package and support common patterns.

Last updated Jun 28, 2026
579
Stars
54
Forks
33
Issues
+1
Stars/day
Attention Score
25
Language breakdown
Go 99.9%
Shell 0.1%
Files click to expand
README

gotest.tools

A collection of packages to augment testing and support common patterns.

PkgGoDev CircleCI Go Reportcard

Usage

With Go modules enabled

$ go get gotest.tools/v3
import "gotest.tools/v3/assert"

Packages

compare values and fail the test when a comparison fails test code which uses environment variables create temporary files and compare a filesystem tree to an expected value compare large multi-line strings against values frozen in golden files execute binaries and test the output test asynchronous code by polling until a desired state is reached skip a test and print the source code of the condition used to skip the test

Related

go test runner with custom output zero-dependency patterns for organizing test cases zero-dependency test doubles (fakes, spies, stubs, and mocks) and monkey patching patterns

Contributing

See CONTRIBUTING.md.

🔗 More in this category

© 2026 GitRepoTrend · gotestyourself/gotest.tools · Updated daily from GitHub