Modern QA2026Advanced Workflow: Multi-File Suite Generation — tiles
Log inJoin
65 / 87 · 02 AI-Augmented Test Design · Claude Code Workflow: Spec-to-Suite← prev⊞ allnext →☰ Read as one page

10.3Advanced Workflow: Multi-File Suite Generation

For larger features that span multiple files:

# Step 1: Survey the feature
claude "Read all files in app/services/payment/ and app/routes/payment.py.
List every public function and endpoint, noting which ones have existing
tests in tests/test_payment*.py and which ones do not."

# Step 2: Generate for uncovered functions
claude "For every function you identified as not having tests,
generate a test file. Follow the patterns in tests/test_payment_processing.py.
Organize by module: one test file per source file."

# Step 3: Run and iterate
claude "Run all payment tests: pytest tests/test_payment*.py -v.
Fix test bugs. Report any application bugs you find."

# Step 4: Integration tests
claude "Now generate integration tests that test the full payment flow:
create order -> process payment -> confirm order -> send receipt.
Use the test database and mock external APIs (Stripe, SendGrid)."