Backend Integration Tests Workflow
Purpose
- •Execute
/add-integration-tests-equivalent flow directly in Claude. - •Add test skeletons, implement tests, review quality, and validate gates.
Flow
- •Validate Design Doc path (or select latest approved Design Doc).
- •Generate integration/E2E test skeleton plan from acceptance criteria.
- •Create test implementation task file.
- •Implement skeleton test cases.
- •Review test quality against skeleton intent.
- •Apply review fixes until approved (bounded loop).
- •Run final quality gate (tests + coverage + static checks).
- •Report readiness for commit.
Bounded Revision Loop
- •If review status is
needs_revision, apply required fixes and re-review. - •Maximum 2 revision loops before escalation.
Quality Gate Requirements
- •All added tests pass.
- •Integration test behavior matches Design Doc acceptance criteria.
- •Coverage is non-regressive for touched backend modules.
- •No unresolved static/build errors.
Hard Rules
- •Do not skip test review between implementation and final quality.
- •Do not merge incomplete skeleton coverage.
- •Do not claim completion without explicit pass evidence.