SaaSHub helps you find the best software and product alternatives Learn more →
Top 9 Go Assertion Projects
-
Como herramientas te recomiendo: FastJson https://github.com/valyala/fastjson : Si necesitas leer jsons Testify https://github.com/stretchr/testify : Para mockear y testear
-
httpexpect for testing HTTP services. Works great with both RESTful and GraphQL.
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
Mocking the http client with explicit responses; for example using h2non/gock
-
-
gotest.tools
A collection of packages to augment the go testing package and support common patterns.
Assertion libraries that people seem to love: - testify (my favorite) - go-cmp is a more barebones library - gotest.tools -- I have never used this but some swear by it
-
go-testdeep
Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite
And do not forget to use go-testdeep and its JSON operator to test JSON content: :)
-
jsonassert
A Go test assertion library for verifying that two representations of JSON are semantically equal (by kinbiko)
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
-
Go Assertions related posts
- Introdução aos testes unitários em Go
- How do you do DB preparation in e2e tests?
- I don't understand popularity of a table driven tests approach
- Next month I'll start working at a company as a Backend Developer and will be mostly using Go. How can I better prepare myself?
- sqlassert - Go package with assertion helpers for SQL databases
- testcase v0.80.0 - release testcase/assert with package level assertion functions
- Make The Dead Fish Swim - Test Driven Golang
-
A note from our sponsor - #<SponsorshipServiceOld:0x00007fea6052ba00>
www.saashub.com | 8 Feb 2023
Index
What are some of the best open-source Assertion projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | Testify | 18,763 |
2 | httpexpect | 2,091 |
3 | gock | 1,784 |
4 | quicktest | 451 |
5 | gotest.tools | 391 |
6 | go-testdeep | 340 |
7 | jsonassert | 102 |
8 | trial | 6 |
9 | attest | 0 |