Awesome
turbinelabs/test
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.
Requirements
- Go 1.10.3 or later (previous versions may work, but we don't build or test against them)
Install
go get -u github.com/turbinelabs/test/...
Clone/Test
mkdir -p $GOPATH/src/turbinelabs
git clone https://github.com/turbinelabs/test.git > $GOPATH/src/turbinelabs/test
go test github.com/turbinelabs/test/...
Packages
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
Versioning
Please see Versioning of Turbine Labs Open Source Projects.
Pull Requests
Patches accepted! Please see Contributing to Turbine Labs Open Source Projects.
Code of Conduct
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.