go-testing

Standardize Go tests with table-driven cases, Bubbletea TUI transitions, and golden files.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/LuisAlbertoMK/gentleman-agent-gh --skill go-testing-luisalbertomk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-testing
Source: https://github.com/LuisAlbertoMK/gentleman-agent-gh/tree/main/internal/assets/skills/go-testing
Command: npx skills add https://github.com/LuisAlbertoMK/gentleman-agent-gh --skill go-testing-luisalbertomk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates inconsistency in Go test suites by enforcing standardized patterns for table-driven tests, TUI state transitions, and golden file management.

Core Features & Use Cases

  • Table-Driven Enforcement: Ensures multiple test cases are handled cleanly using subtests.
  • Bubbletea/TUI Testing: Provides specific patterns for testing state transitions and interactive flows using teatest.
  • Golden File Management: Automates the deterministic update and verification of rendered output files.

Quick Start

Apply the go-testing skill to refactor the current package tests into table-driven patterns and verify the Bubbletea model transitions.

Frequently Asked Questions about go-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write table-driven unit tests in Go using subtests?

Table-driven unit tests in Go standardize multiple test cases by executing them cleanly as subtests, ensuring consistent coverage and structured error handling across your project.

What is the best way to test Bubbletea TUI state transitions in Go?

Testing Bubbletea TUI state transitions is best handled using teatest patterns to validate interactive flows and model state changes, ensuring reliable TUI component validation.

How do I manage golden files for deterministic output verification in Go?

Golden file management in Go automates the deterministic update and verification of rendered output files, ensuring consistent output verification for your tests.

Does this Go testing approach support temporary filesystem isolation and integration test skipping?

Yes, this Go testing approach satisfies requirements for integration test skipping and temporary filesystem isolation to keep your test environment deterministic and secure.

How do I refactor existing Go package tests into standardized patterns?

Refactoring Go package tests applies standardized patterns to convert existing test suites into table-driven formats, verifying Bubbletea model transitions and enforcing consistent coverage.