The app had 105,000 lines of Dart spread across 757 files. Firebase Remote Config, Firestore, FFI calls into Rust for GPS processing, SharedPreferences for half the state management. Zero tests.
Not "low coverage." Zero. No test directory, no test runner config, no mocks. Seven months of production use on 30 devices, and the first flutter test invocation in the project's history was mine.
I wrote a preprint documenting how we got from that zero to 2,583 tests across 292 files. The paper and all companion data are open access on Zenodo: DOI: 10.5281/zenodo.24260880 .
This post covers the key findings. The paper has the full methodology.
The Problem Nobody Warns You About
Every Flutter testing tutorial starts with a counter app. Tap a button, verify the number.…