integration-testing-api-db
Installation
SKILL.md
Integration Testing (API-DB)
Overview
Integration tests should verify that real boundaries work together under realistic conditions. Prefer focused tests around meaningful cross-layer behavior instead of giant end-to-end scenarios or unit-level mocks pretending to be infrastructure.
Follow This Workflow
1. Define the integration boundary
- API to database.
- Service to repository.
- Worker to queue or persistence.
- Validation, authorization, and persistence combined at the real boundary.
- Keep the test scope narrower than E2E but broader than a unit.