Testing pyramid adalah model untuk menyusun test suite — memiliki banyak unit tests cepat di dasar, lebih sedikit integration tests di tengah, dan beberapa end-to-end tests di puncak. Model ini membimbing strategi testing yang seimbang dan efisien.
Piramida
/\
/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
/--------------\
