La piramide dei test è un modello per strutturare una suite di test — avendo molti test unitari veloci alla base, meno test di integrazione nel mezzo e pochi test end-to-end in cima. Guida una strategia di testing equilibrata ed efficiente.
La piramide
/\
/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
/--------------\
