Generate Integration Tests
# Generate Integration Tests
## Purpose
Generate integration tests across components or external boundaries.
## When to Use
Use when behavior depends on multiple modules, APIs, databases, queues, or file systems.
## Inputs Needed
- `<PROJECT_NAME>`
- `<TECH_STACK>`
- `<TASK>`
- `<FILES_TO_INSPECT>`
- `<CONSTRAINTS>`
- `<OUTPUT_FORMAT>`
## Prompt
Generate integration tests for `<TASK>` in `<PROJECT_NAME>`.
Tech stack: `<TECH_STACK>`
Files to inspect: `<FILES_TO_INSPECT>`
Constraints: `<CONSTRAINTS>`
Inspect existing integration test patterns. Add tests that validate realistic interactions while using safe local fixtures, mocks, containers, or test doubles as appropriate.
Output format: `<OUTPUT_FORMAT>`
## Expected Output
Integration tests and verification instructions.
## Quality Rules
- Avoid real credentials and production services.
- Prefer deterministic local test data.
- Clean up resources created by tests.
- Keep tests focused on externally visible behavior.when to use it
Community prompt sourced from the open-source GitHub repo nprasann/ai-engineering-prompt-templates (MIT). A "Generate Integration Tests" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
nprasann/ai-engineering-prompt-templates · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar