What does the testing pyramid look like for microservices, and why do end-to-end tests become problematic at scale?
Last updated
The pyramid has many fast unit tests at the base, fewer integration and contract tests in the middle, and very few end-to-end (E2E) tests on critical journeys at the top.
E2E tests break down at scale: they need many services running together, making them flaky, slow, and hard to own across teams.
Covering every interaction is infeasible, so keep E2E to a thin smoke-test layer.