The testing pyramid is a model for structuring a test suite — having many fast unit tests at the base, fewer integration tests in the middle, and few end-to-end tests at the top. It guides a balanced, efficient testing strategy.
The pyramid
/\
/E2E\ ← FEW end-to-end tests (slow, broad, brittle, expensive)
/------\
/ INTEG. \ ← SOME integration tests (medium speed/scope)
/----------\
/ UNIT \ ← MANY unit tests (fast, focused, cheap) — the BASE
/--------------\
