v0.x-to-tdd-rpccases
OfficialMigrate generated handler tests to table-driven TDD.
Software Engineering#tdd#table-driven tests#go testing#forge#test migration#connect error codes#rpc harness
Authorreliant-labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill fixes test scaffolding drift by migrating legacy per-RPC CRUD handler tests to the standardized table-driven runner shape, so updates across versions keep your generated tests consistent and maintainable.
Core Features & Use Cases
- Convert generated CRUD test harnesses: Rewrites
handlers/<svc>/handlers_crud_gen_test.gofrom inlined per-RPC boilerplate into thin shims that delegate toforge/pkg/tdd.RunRPCCases. - Preserve expected behavior fingerprints: Keeps connect error-code matching, per-row setup ordering, default context behavior, and nil/Check semantics aligned with the
pkg/tddtest harness. - Codemod support for common hand-rolled shapes: Runs
forge test migrate-tddto convert typical legacytests := []struct{...}table styles into per-RPCTestXxx_Generatedfunctions backed bytdd.RunRPCCases.
Quick Start
Run this from your project root to migrate the scaffolded handler tests: forge generate.
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: v0.x-to-tdd-rpccases Download link: https://github.com/reliant-labs/forge/archive/main.zip#v0-x-to-tdd-rpccases 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.