README
¶
Go Test Yourself
A collection of packages compatible with go test
to support common testing
patterns.
Packages
- fs - create test files and directories
- golden - compare large multi-line strings
- testsum -
a program to summarize
go test
output and test failures - icmd - execute binaries and test the output
- poll - test asynchronous code by polling until a desired state is reached
- skip - skip tests based on conditions
Related
- testify/assert and testify/require - assertion libraries with common assertions
- golang/mock - generate mocks for interfaces
- testify/suite - group test into suites to share common setup/teardown logic
Documentation
¶
There is no documentation for this package.
Directories
¶
Path | Synopsis |
---|---|
Package fs provides tools for creating and working with temporary files and directories.
|
Package fs provides tools for creating and working with temporary files and directories. |
Package golden provides tools for comparing large mutli-line strings.
|
Package golden provides tools for comparing large mutli-line strings. |
gotestsum
module
|
|
Package icmd executes binaries and provides convenient assertions for testing the results.
|
Package icmd executes binaries and provides convenient assertions for testing the results. |
Package poll provides tools for testing asynchronous code.
|
Package poll provides tools for testing asynchronous code. |
Package skip provides functions for skipping based on a condition.
|
Package skip provides functions for skipping based on a condition. |
Package testsum provides functions for parsing `go test -v` output and returning a summary of the test run.
|
Package testsum provides functions for parsing `go test -v` output and returning a summary of the test run. |