InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 12 Go Assertion Projects
-
I prefer to use the Go library testify, which significantly simplifies the code:
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
-
Another great option is gock, a lib that is also inspired by nock, with a simple and easy API. It works by intercepting any HTTP request made by any http.Client and adding it to a list, so it can check if a mock request exists. If not, an error is returned, unless the real networking mode is on. In that case, the request is done normally.
-
gotest.tools
A collection of packages to augment the go testing package and support common patterns.
-
-
go-testdeep
Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
jsonassert
A Go test assertion library for verifying that two representations of JSON are semantically equal (by kinbiko)
-
-
-
-
Go Assertions discussion
Go Assertions related posts
-
Full Introduction to Golang with Test-Driven Development
-
Why I don't use a third-party assertion library in Go unit tests
-
Testing calls to Daily's REST API in Go
-
Do you wrap testing libraries?
-
[Go] How to unit test for exception handling?
-
Introdução aos testes unitários em Go
-
How do you do DB preparation in e2e tests?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 13 May 2025
Index
What are some of the best open-source Assertion projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | Testify | 24,548 |
2 | httpexpect | 2,636 |
3 | gock | 2,164 |
4 | gotest.tools | 558 |
5 | quicktest | 530 |
6 | go-testdeep | 447 |
7 | test | 190 |
8 | jsonassert | 135 |
9 | probe | 33 |
10 | trial | 6 |
11 | must | 5 |
12 | attest | 0 |