Skip to main content
Run any Skill in Manus
with one click

table-driven-test

Stars1
Forks0
UpdatedFebruary 19, 2026 at 13:10

Table-driven test pattern for writing clean, maintainable, and comprehensive tests. Separate test data (table entries) from test logic to eliminate copy-paste duplication. Use when: (1) writing Go tests with multiple input/output variations, (2) testing pure functions with various combinations, (3) refactoring duplicated test code, (4) adding edge cases and boundary conditions to existing tests, (5) implementing TDD test scenarios that share the same assertion structure. Covers Go-specific patterns (t.Run subtests, parallel execution, cmp.Diff) and language-agnostic principles applicable to any parameterized testing.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly