Menu

We Took a 105K-LOC Flutter App from Zero Tests to 2,583
📰

We Took a 105K-LOC Flutter App from Zero Tests to 2,583

DEV Community: dart·Sagar Ghag·20 days ago
#NEO3717N
#devtodart#devto#dev#tests#test
Long article (758 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.