
Testing Infrastructure and Test Pyramid

Building Reddit’s iOS and Android app
Topic 4 of 12
Published Apr 23, 2025 · Clip 11:16–16:58 (5:42)
The guests describe Reddit's test pyramid: enforced unit test coverage via ratchets, extensive integration tests, black-box E2E tests including accessibility assertions, and unusual uses like UI-test-driven memory leak analysis. They recount going from ~2% unit test coverage and manual QA with 12-hour turnarounds to a modern setup, explaining the shift-left motivation after preventable production incidents, the challenge of introducing tests into an untestable legacy codebase, and the reality of flaky tests. A new engineer's observation that Reddit's ratchet actually worked is highlighted, along with the side benefit that testing forced dependency injection and better code paths.