Is samhail í pirimid an tástála do bhunstructúr a dhéanamh ar thréimhse tástála — go leor tástálacha aonaid thapa ag an bhunáit, níos lú tástálacha comhtháthaithe sa lár, agus go leor beag tástálacha deireadh-go-deireadh ag an bharr. Treorú a thugann sé do dheasbhealach cothromaithe, éifeachtach a bhaineann le tástáil.
An pirimid
/\
/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
/--------------\
BASE (most): UNIT tests — fast, isolated, cheap → run lots of them
MIDDLE: INTEGRATION tests — components together → fewer (slower, more setup)
TOP (fewest): E2E tests — whole app, user flows → few (slow, brittle, expensive)
