Test Pyramid Layers
Multiple Choice Medium
Question
In the test pyramid, which layer should have the most tests?
Hint
The base is the widest part of a pyramid.
Explanation
The test pyramid has unit tests at the base (most numerous, fast and cheap), integration tests in the middle, and E2E tests at the top (fewest, slow and expensive). This distribution gives you fast feedback from many unit tests while keeping slow, brittle E2E tests to a minimum.
Related Resources
Related Lessons
- Test Pyramid
Balancing test types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.