SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Go Testing Framework Projects
-
nil is returned initially, as we're creating user_test.go and using Testify to create tests as we shape the behavior of PostUser. We don't have a DB wired up yet, so the responses will simply be hard-coded structs of what we expect the API to respond with for now to pass the tests.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Debug both standard applications and Ginkgo tests (this is what I'm using at the moment 🤷)
-
-
-
dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Quick side note - this is probably the subject of a whole other blog post but my current favourite way of testing CLI tools uses godog to write tests. It can be a little complex but I've found it supremely powerful. Here are some good examples of how I've approached it with layli and wait-for.
-
-
-
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 💻
-
Now that you see the motivation behind VCR testing, let's dig deeper into how to implement it in Go using dnaeon/go-vcr.
-
-
embedded-postgres
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test
Project mention: I curate a daily newsletter with resources about Golang - Daily Golang. Here are the latest 6 issues of the newsletter | dev.to | 2024-08-19fergusstrange/embedded-postgres Embedded Postgres allows running a real Postgres database locally as part of another Go application or test, providing a simple way to include Postgres in your development environment.
-
-
-
-
-
-
-
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
Go Testing Frameworks discussion
Go Testing Frameworks related posts
-
Building and Deploying a New API (Part 1)
-
Quitting early for the win!
-
Go-DOM - 1st major milestone
-
Functional Programming in Go
-
Leverage Your Test Suite With testcontainers-go & docker-compose
-
Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock
-
I curate a daily newsletter with resources about Golang - Daily Golang. Here are the latest 6 issues of the newsletter
-
A note from our sponsor - SaaSHub
www.saashub.com | 19 Mar 2025
Index
What are some of the best open-source Testing Framework projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | Testify | 24,218 |
2 | ginkgo | 8,560 |
3 | GoConvey | 8,322 |
4 | go-cmp | 4,332 |
5 | dockertest | 4,257 |
6 | Gauge | 3,022 |
7 | Looking for Maintainer | 2,574 |
8 | godog | 2,390 |
9 | gomega | 2,231 |
10 | is | 1,840 |
11 | gnomock | 1,424 |
12 | go-vcr | 1,287 |
13 | testfixtures | 1,138 |
14 | embedded-postgres | 913 |
15 | goblin | 887 |
16 | goc | 843 |
17 | GoAws | 802 |
18 | baloo | 778 |
19 | gocheck | 697 |
20 | go-mutesting | 653 |
21 | gotest.tools | 541 |
22 | go-testdeep | 441 |
23 | gofight | 440 |