v0.x-to-tdd-rpccases

Official

Migrate generated handler tests to table-driven TDD.

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.go from inlined per-RPC boilerplate into thin shims that delegate to forge/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/tdd test harness.
  • Codemod support for common hand-rolled shapes: Runs forge test migrate-tdd to convert typical legacy tests := []struct{...} table styles into per-RPC TestXxx_Generated functions backed by tdd.RunRPCCases.

Quick Start

Run this from your project root to migrate the scaffolded handler tests: forge generate.

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.