All glossary terms
Verify

Integration test

An integration test verifies that multiple components work together correctly — a service hitting a real database, two microservices communicating, a frontend talking to a real API. Integration tests catch interface bugs that unit tests miss because units are tested in isolation.

The 'test pyramid' (Mike Cohn) recommends roughly 70% unit tests, 20% integration, 10% end-to-end. The justification: unit tests are fast and stable; integration tests are slower and flakier; e2e tests are slowest and flakiest. Most teams skew their pyramid wrong — too many e2e tests, too few unit tests — because e2e looks like it catches everything. In practice, e2e suites become flaky-test maintenance burdens unless rigorously tended.

Related terms