v0.x-to-testkit

Official

Migrate test harnesses to shared testkit

Authorreliant-labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It resolves brittle, duplicated inline test helper code by moving the shared bootstrap-testing sub-helpers into forge/pkg/testkit, while keeping the generated per-service wiring stable.

Core Features & Use Cases

  • Centralizes test harness helpers: Discard logger, in-memory SQLite ORM setup, httptest server harness, permissive authorizer, and (when needed) WithTestTenant are provided by forge/pkg/testkit.
  • Keeps generated factory behavior intact: Per-service NewTest<Service> and NewTest<Service>Server shapes remain, with the wiring shim preserved in the generated pkg/app/testing.go.
  • Supports safe migration and verification: Uses forge generate for deterministic rewrite and guides verification via build and go test, with greps to confirm helper calls and detect legacy artifacts.

Quick Start

Run forge generate to rewrite pkg/app/testing.go into the testkit-backed shape and then verify with go test ./... and go build ./....

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-testkit
Download link: https://github.com/reliant-labs/forge/archive/main.zip#v0-x-to-testkit

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.