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

scaffold-integration-test

Stars6
Forks0
UpdatedJuly 15, 2026 at 21:10

Generate HTTP-boundary integration tests for one feature under `internal/integration/`. These are NOT DB/usecase integration tests โ€” they boot an Echo server via `httptest` and verify only the HTTP path (Router โ†’ Middleware โ†’ Handler โ†’ Presenter) with the usecase MOCKED, per `internal/integration/README.md`'s test strategy. Hardcodes no helper API: reads `internal/integration/README.md` (test strategy + scope) and `internal/integration/helper_test.go` (the package's test helpers โ€” HTTP server bootstrap, request execution, JSON-response assertion, auth-header injection) at runtime to learn their current names + signatures, plus a sibling `<feature>_test.go` as the structural template, the target handler package's `BindHandler` signature, its generated `gen` request/response types, and the usecase mock package. Derives one subtest per operationId (HTTP method + path from the handler `gen`), each: boot Echo โ†’ mock the mapped usecase method โ†’ bind the handler โ†’ drive the endpoint through whatever request/assert h

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.

File Explorer
2 files
SKILL.md
readonly