Skip to main content
Ejecuta cualquier Skill en Manus
con un clic

scaffold-integration-test

Estrellas6
Forks0
Actualizado15 de julio de 2026 a las 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

Instalaciรณn

Instalar con Codex o Claude Copia este prompt, pรฉgalo en Codex, Claude u otro asistente, y deja que revise la pรกgina de la skill y la instale por ti.

Explorador de archivos
2 archivos
SKILL.md
readonly