What problem does it solve?
Guides teams to write consistent, reliable tests across Go projects, covering unit tests, testscript-based CLI tests, race-condition debugging, and TUI/container test scenarios.
Core Features & Use Cases
- Centralized test helper patterns in the testutil package for reuse across packages.
- Guidance for testscript workflows and embedded invkfile.cue style test definitions.
- Strategies to avoid flaky tests, use fake clocks, and manage time-dependent tests across platforms.
- Best practices for testing TUI components (Bubble Tea models) and container runtimes.
- Cross-reference to internal guidelines (.claude/rules/testing.md) for extended patterns.
Quick Start
Apply these testing patterns to your Go projects by centralizing helpers, adopting testscript workflows, and validating flaky tests.