Unit tier (base) Integration tier UI / E2E tier (top) Flaky failure / escape

Mobile Test Pyramid: Coverage vs. Cost vs. Flakiness (2D)

The "testing pyramid" is the standard mental model for a mobile app's automated test suite: many fast, cheap unit tests at the base, fewer integration tests in the middle, and a thin layer of slow, expensive UI/end-to-end tests at the top. This 2D simulator renders that model as a pannable, zoomable grid of individually coloured test cells stacked into a pyramid — drag to pan, scroll to zoom, then reshape the suite with the unit, integration and UI test-count sliders and the parallel CI worker pool. A live Gantt timeline shows the three tiers running serially, each parallelised across your worker pool, while a scrolling run-history scope tracks how escape probability and flaky risk evolve every time you fire the pipeline. Live readouts compute the pipeline's parallelised wall-clock time, the probability a real regression escapes to production given each tier's diminishing-returns detection curve, and the expected number (and probability) of flaky false failures per run using a Poisson model of each tier's non-determinism rate. Invert the pyramid — heavy on slow UI tests, thin on unit tests — and watch pipeline time explode while flaky-failure risk climbs, exactly the trade-off real mobile CI/CD teams have to manage.