This project is no longer maintained by Turbine Labs, which has shut down.
The test project contains a variety of small helper packages to make writing tests in go a little easier. The test project has no external dependencies beyond the go standard library.
- Go 1.10.3 or later (previous versions may work, but we don't build or test against them)
go get -u github.com/turbinelabs/test/...
mkdir -p $GOPATH/src/turbinelabs
git clone https://github.com/turbinelabs/test.git > $GOPATH/src/turbinelabs/test
go test github.com/turbinelabs/test/...
Each package is best described in its respective Godoc:
assert
: a collection of useful test assertionscategory
: categorization and selective execution of testscheck
: simple boolean checks, some of which are used byassert
http
: useful extensions to the net/http/httptest packageio
: usefulio.Reader
andio.Writer
implementationslog
: usefullog.Logger
factoriesmatcher
: usefulgomock.Matcher
implementationsserver
: a command-line configurable test HTTP serverstack
: produces user friendly stack tracesstrings
: provides string conversions that are useful in teststempfile
: provides wrappers around ioutil.TempFile to easily create temporary files or file namestestrunner
: a testrunner forgo test
that generates a junit-style test result XML file
Please see Versioning of Turbine Labs Open Source Projects.
Patches accepted! Please see Contributing to Turbine Labs Open Source Projects.
All Turbine Labs open-sourced projects are released with a Contributor Code of Conduct. By participating in our projects you agree to abide by its terms, which will be carefully enforced.