Popularity
6.4
Declining
Activity
7.6
-
525
11
50
Programming language: Go
License: GNU General Public License v3.0 or later
Tags:
Testing
Testing Frameworks
Latest version: v3.0.3
gotest.tools alternatives and similar packages
Based on the "Testing Frameworks" category.
Alternatively, view gotest.tools alternatives based on common mentions on social networks and blogs.
-
dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. -
gnomock
Test your code without writing mocks with ephemeral Docker containers ๐ฆ Setup popular services with just a couple lines of code โฑ๏ธ No bash, no yaml, only code ๐ป -
embedded-postgres
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test -
go-testdeep
Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite -
testza
Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! ๐ -
GoSpec
Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED] -
jsonassert
A Go test assertion library for verifying that two representations of JSON are semantically equal -
assert
:exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions -
gogiven
gogiven - BDD testing framework for go that generates readable output directly from source code
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.com
Do you think we are missing an alternative of gotest.tools or a related project?
README
gotest.tools
A collection of packages to augment testing
and support common patterns.
Usage
With Go modules enabled (go1.11+)
$ go get gotest.tools/v3
import "gotest.tools/v3/assert"
To use gotest.tools
with an older version of Go that does not understand Go
module paths pin to version v2.3.0
.
Packages
- assert - compare values and fail the test when a comparison fails
- env - test code which uses environment variables
- fs - create temporary files and compare a filesystem tree to an expected value
- golden - compare large multi-line strings against values frozen in golden files
- icmd - execute binaries and test the output
- poll - test asynchronous code by polling until a desired state is reached
- skip - skip a test and print the source code of the condition used to skip the test
Related
- gotest.tools/gotestsum - go test runner with custom output
- go testing patterns - zero-depedency patterns for organizing test cases
- test doubles and patching - zero-depdency test doubles (fakes, spies, stubs, and mocks) and monkey patching patterns
Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).