behavior-driven-testing - Write behavior-driven unit tests in Go
Guides writing and reviewing Go unit tests that validate meaningful behaviors with local data, table-driven subtests, and Gomega assertions.
Tags
Updated: 2026-10-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write behavior-focused Go unit tests
- Structure table-driven subtests
- Name tests in Gherkin style
- Assert with Gomega matchers
- Mock network dependencies locally
- Verify observable state changes
Inputs
- Go source code under test
- Behavioral requirements
- Local fixtures and test data
- Fake clients or stubs
Outputs
- Go unit test files
Requirements
- Go toolchain
- Go testing package
- Gomega dependency
- Vendored dependencies
- Offline execution environment
