The pyramid is the default shape; several teams adopt legitimate variations depending on their domain, and several adopt illegitimate ones by accident.
Shape | Description | When it is legitimate | When it is a smell |
|---|---|---|---|
Pyramid | 70-80 unit / 15-20 integ / 5-10 E2E | Default for most applications | — |
Trophy | 70 unit / 20 integ / 10 e2e, integ-heavy | API-first services | When E2E creeps up |
Ice cream cone | Inverted: heavy E2E, thin unit | Never | Default failure mode of large teams |
Hourglass | Heavy unit, heavy E2E, thin integration | Rare, requires contract testing | Missing contract layer |
Honeycomb | Many small contract tests | Microservices | Without E2E, user flows untested |
The ice cream cone is the failure the pyramid exists to prevent. It emerges when teams add E2E tests as the default for every feature, because "E2E is what the product manager asked for" — and the suite grows to 500 E2E tests over two years because nobody removed the old ones. The remedy is not to delete the E2E tests but to reclassify: many of them are integration tests in disguise (business logic asserted through the UI). Rewriting them at the right layer collapses the runtime and restores the pyramid.