The Testing Trophy: Prioritize Integration Tests
The Testing Trophy flips the classic pyramid, arguing for "mostly integration tests" to maximize your return on investment. It's for UI apps where testing component interactions gives more confidence than isolated unit tests.
The Testing Trophy is a strategy for UI apps that maximizes ROI by prioritizing integration tests. It visually represents writing "not too many" unit or E2E tests, but "mostly integration" tests. This model shines where the most valuable tests verify that multiple components work together correctly, mimicking user interactions. The footgun is applying it rigidly or outside its UI context; the goal is confidence for effort, not a specific ratio.
Read the original → kentcdodds.com
- #testing
- #javascript
- #ui
- #integration testing
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.