LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-04

Capabilities

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
Go
unit testing
behavior-driven testing
Gomega
table-driven tests
offline testing
Write behavior-focused Go unit tests
Structure table-driven subtests
Name tests in Gherkin style
Assert with Gomega matchers
Go source code under test
Behavioral requirements
Local fixtures and test data
Go unit test files