Testing pyramid (พีระมิดการทดสอบ) เป็นแบบจำลองสำหรับการจัดโครงสร้าง test suite — โดยมี unit test ที่รวดเร็วจำนวนมาก อยู่ที่ฐาน integration test จำนวนน้อยกว่า อยู่ตรงกลาง และ end-to-end test จำนวนน้อย อยู่ด้านบน มันชี้แนะกลยุทธ์การทดสอบที่สมดุลและมีประสิทธิภาพ
พีระมิด
/\
/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
/--------------\
