Skip to content

Why it matters

The pyramid exists because someone measured the cost curve: an E2E test costs 20-50× more to run than a unit test, and 10-20× more to debug when it fails.

Google's most-cited post on the subject, Martin Wacker's "Just Say No to More End-to-End Tests" (2015), recommends the split 70% unit / 20% integration / 10% E2E and identifies the failure mode that the pyramid prevents: E2E suites that grow to hundreds of tests, run for hours in CI, and fail intermittently [1]. Google's own analysis of 4.2 million test runs at the time found that median E2E tests failed intermittently at 1.5% per run; a suite of 500 E2E tests produces 7+ spurious failures per CI cycle, which is where teams stop trusting their tests.

The empirical corroboration comes from GitLab's public test dataset (February 2025). The distribution across the Community and Enterprise editions is 75.66% unit, 15.55% integration, ~9% other — precisely the pyramid shape, at scale (218,459 unit tests against 44,893 integration tests) [2]. The proportion is not decorative; it is the operational shape of a suite that runs in ~30 minutes in CI and stays maintainable.