integration-testing
SkillAI & modelsTest real system boundaries, not mocks of mocks. Integration tests verify that components work together, not that they work in isolation.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the integration-testing skill
What this skill tells your AI
The instructions your AI receives, as published by developersglobal/ai-agent-skills in skills/integration-testing/SKILL.md and read by ahel’s review.
Overview
Unit tests verify components work in isolation. Integration tests verify they work together. The gap between these two is where most production bugs hide. This skill ensures integration tests cover the real system boundaries.
When to Use
- After unit tests are passing
- Before any feature ships to production
- When testing database, API, or third-party service interactions
Process
Step 1: Identify Real Boundaries
- Map every boundary in the system: code ↔ database, code ↔ external API, service ↔ service, frontend ↔ backend.
- Rank boundaries by failure impact.
- Integration tests should cover the top 5 highest-impact boundaries.
Verify: Boundary map created. Top 5 prioritized.
Step 2: Test Real, Not Mocked
- Use a real test database (not SQLite in-memory if prod uses PostgreSQL).
- Use contract tests for external APIs — test against a recorded real response.
- Use test containers for services that would otherwise require mocking.
- Mock only: third-party services you can't control, slow services with contract tests already in place.
Verify: No internal boundaries are mocked in integration tests.
Step 3: Test the Happy Path AND Failure Cases
- Happy path: the system works end-to-end for the primary use case.
- Failure cases: database down, API returns 500, timeout, malformed response.
- State verification: after each action, verify the state in the real database.
Verify: At least 1 failure case per boundary is tested.
Step 4: Keep Tests Independent
- Each test cleans up its own state (transactions rolled back, test data deleted).
- Tests don't share state with each other.
- Tests can run in any order.
Verify: Test suite passes when run in random order.
Common Rationalizations (and Rebuttals)
| Excuse | Rebuttal |
|---|---|
| "Unit tests are enough" | Unit tests with mocks test that your mocks work, not your system. |
| "Integration tests are slow" | Slow tests are better than discovering bugs in production. Optimize the setup, not the coverage. |
| "We test in staging" | Staging is not a substitute for automated tests. It's too slow and too manual. |
Verification
- Real boundaries identified and prioritized
- Integration tests use real dependencies (not mocks of internal components)
- Happy path and failure cases tested for each boundary
- Tests are independent (can run in any order)
- Test cleanup is reliable
References
Signals
- GitHub stars
- 66
- Forks
- 9
- Last commit
- May 2026
Advanced
- Catalog kind
- skill
- Gateway key
integration-testing-developersglobal- Source
- github.com/developersglobal/ai-agent-skills