Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
What's your favourite part of unit testing?
2 projects | /r/golang | 19 Jan 2023
I also use BDD (Gherkin with godog in particular) to verify and document the expected behaviour of a product from an end user's perspective when needed. I usually do this when the product also contains untested code that I have no control over when I'm working on a problem - this gives me peace of mind over something I can't control while doubling as documentation.
Behaviour Driven Development (BDD) boilerplate tests generator
3 projects | /r/golang | 20 Mar 2022
It looks like it is not possible to share steps between scenario's or features. In https://github.com/cucumber/godog it is possible to share steps.
Behaviour Driven Development (BDD) boilerplate tests generator for Golang
2 projects | /r/golang | 21 Jan 2022
Differences between gherkingen and godog are:
BDD (Behavior-driven development) mit Go
2 projects | dev.to | 18 May 2021
Recommendations for Learning Test-Driven Development (TDD) in Go?
3 projects | /r/golang | 9 Apr 2023
A bit off-topic, but i really like the ginkgo BDD framework
ginkgo integration with jira/elasticsearch/webex/slack
2 projects | /r/golang | 17 Jan 2023
If you are using Ginkgo for your e2e, this library might of help.
Testing frameworks, which to use?
5 projects | /r/golang | 28 Feb 2022
https://onsi.github.io/ginkgo/ offers a simple way to create tables with different scenarios useful to generate different test cases based on a file like a yml without to need to develop useless code. Maybe at start seems to be a little verbose but depends how you design the test case.5 projects | /r/golang | 28 Feb 2022
If you like BDD and more expressive tests, go get ginkgo. It is a pain in the back get the hang of its R-spec like syntax, but if you're good at it and you like it, it is very expressive and readable. It has its own matcher (assertions library), gomega, but if you don't like it, you can still use testify instead.
Testza - A modern test framework with pretty output
2 projects | /r/golang | 25 Aug 2021
What are people’s thoughts on testing frameworks? I’ve heard that most devs only use the testing package in the standard library and the testify package for assertions— I assume this is because Go is meant to be lightweight and scalable, and adding external dependencies basically goes against that. But I’ve also seen devs use packages like ginkgo to make tests more structured and readable. What do you guys think?
What are your favorite packages to use?
55 projects | /r/golang | 15 Aug 2021
Ginkgo Behavioural test framework
Air – Live reload when developing with Go
6 projects | news.ycombinator.com | 30 Jul 2021
If you write your tests with Ginkgo  its CLI can do this for you. It also has nice facilities to quickly disable a test or portion of a test by pretending an X to the test function name, or to focus a test (only run that test) by prepending an F. It’s pretty nice.
Half a million lines of Go at The Khan Academy
5 projects | news.ycombinator.com | 16 May 2021
The BDD testing framework Ginko  has some "weird" / unidiomatic patterns, yet it is very popular
Ginkgo for unit testing?
2 projects | /r/golang | 4 May 2021
To settle an argument amongst my coworkers, I started a Twitter poll on using Gingko for golang unit testing. Some like the framework because it makes tests clean. Others hate it with a firey passion.
6 projects | dev.to | 19 Nov 2020
As a big fan of automated testing, it’s comforting to learn that we can easily write tests for our controllers using envtest (which runs a local k8s control plane so we can run our tests against it), the Gingko testing framework and the Gomega matching/assertion library:
What are some alternatives?
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
GoConvey - Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
goblin - Minimal and Beautiful Go testing framework
httpexpect - End-to-end HTTP and REST API testing for Go.
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
venom - 🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
go-cmp - Package for comparing Go values in tests
gotests - Automatically generate Go test boilerplate from your source code.
gocheck - Rich testing for the Go language
gomega - Ginkgo's Preferred Matcher Library