go-tdd
CommunityGo TDD: red-green-refactor with mocks and tests.
Author333-333-333
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Test-Driven Development workflow in Go: red-green-refactor cycle, table-driven tests, mocks via interfaces, integration tests with testcontainers, and contract tests between services.
Core Features & Use Cases
- Red-Green-Refactor cycle drives production code by failing tests first, then implementing the minimum code to pass.
- Table-driven tests provide broad coverage with compact test cases.
- Mocks via interfaces decouple dependencies for unit tests without frameworks.
- Integration tests with testcontainers validate real databases and services in isolated environments.
- Contract tests enforce API boundaries between services and clients.
- Repository compatibility testing verifies repository implementations against a real PostgreSQL instance.
Quick Start
Begin by writing failing tests in Go to drive development, then implement code to pass tests, add mocks, and progressively add integration and contract tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-tdd Download link: https://github.com/333-333-333/agents/archive/main.zip#go-tdd Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.