the_testing_pyramide
Table of Contents
The testing pyramide
The testing pyramide is a conceptual model that shows how to correctly distribute unit, integration and end-to-end tests.
Main takeaways
- The more high-level you get, less tests you should have.
- Write tests with different granularity.
Benefits
- Following the model helps finding mistakes on low levels.
- Saves money.
- Ensures a balance between speed of feedback and complete verification.
Typical mistakes
- ice cream cone (reversed pyramid)
- high-level tests repeat low-level ones.
- isolation break: unit tests access the database or network and become integration testing.
the_testing_pyramide.txt · Last modified: by plida

