🧪Test Pyramid
Also known as Testing Pyramid, Test Automation Pyramid
Many small unit tests at the base. Only a few big end-to-end tests at the top.
Think of it like
Think of it like a pile of blocks. Lots of blocks at the bottom, and just a few at the top.
Example
Jack's app has 600 unit tests, 80 integration tests and 12 end-to-end tests. The whole suite runs in four minutes.
Why it matters
It keeps the suite fast and steady while still checking the whole app works.
Definition
Common mistake
Key takeaways
- 1Wide base. Many small, fast unit tests.
- 2Thin top. Few slow end-to-end tests.
- 3Cost rises up. Higher tests are slower to run.