BDD in Golang: An Introduction to Ginkgo & Gomega

Опубликовано: 16 Март 2026
на канале: The Engineering Coach
8,104
84

Welcome back to The Engineering Coach's Golang series! In this episode, we're taking a look at a different, but complementary, approach to testing: Behaviour-Driven Development (BDD).

We'll introduce you to Ginkgo, a popular BDD framework, and Gomega, its powerful assertion library. Using these tools, we'll test-drive the implementation of a Set abstract data type. You'll see how BDD frameworks help you write clear, human-readable specifications for your code's behaviour.

We'll follow the same "Red, Green, Refactor" cycle, but with a focus on writing tests that document the "why" behind your code. This is a great video for anyone looking to explore new testing philosophies and improve their collaboration with non-technical team members.

The code for this episode can be found on GitHub: https://github.com/the-engineering-co...

Let's Connect
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.

Mastodon: https://mastodon.social/@braddle
Bluesky: https://bsky.app/profile/braddle1.bsk...
LinkedIn:   / mark-bradley-engineering-coach  

#Golang #GoLang #Ginkgo #Gomega #BDD #TDD #TestDrivenDevelopment #TheEngineeringCoach