Back to BlogEngineering6 min read
A Pragmatic Testing Strategy for Mobile Apps
Unit tests for money logic, integration tests where the seams break, a thin E2E layer for three journeys, and a device matrix built around real users.
SummationWorks Team

Mobile apps rarely fail through one dramatic crash. They fail through small cuts: a checkout button that stops working on Android 13, a payment flow that breaks after an SDK update, a login screen that freezes on older devices nobody on the team owns. By the time these show up in App Store reviews, the damage is done. A testing strategy is there to catch them before your customers do.
Teams tend to fall into one of two traps. Some skip testing to ship faster. Others chase "100% test coverage" and spend weeks testing code that barely matters. Neither serves the business. What works is a strategy that puts testing effort where the risk is highest and accepts gaps everywhere else.
Why mobile testing is harder than web testing
A web app runs in a handful of browsers you can mostly control. A mobile app runs in conditions you can't:
- Device fragmentation. Hundreds of Android models with different screen sizes, chipsets and manufacturer tweaks, plus older iPhones still in active use across the GCC and Egypt.
- OS versions. Users sit on a wide range of iOS and Android versions, each with its own small behavioural differences.
- Network reality. Apps get used on patchy mobile data, in lifts, on planes. Code that assumes a fast, stable connection breaks in the field.
- Interrupted lifecycles. A phone call, a low-battery warning, or the OS killing your app in the background can corrupt state if you haven't planned for it.
- Slow release cycles. You can't hotfix a mobile app in five minutes the way you can a website. App Store and Play Store review takes hours to days, so a bug that ships stays shipped.
That last point is the real reason mobile testing matters more. A defect that reaches production costs far more when you can't patch it quietly the same afternoon.
The testing pyramid, adapted for mobile
The classic model is the testing pyramid: many fast, cheap tests at the bottom, fewer slow, expensive ones at the top. It holds up for mobile, as long as you set the proportions by where real bugs live.
Unit tests: the wide base
A unit test checks one function or class in isolation, with no UI and no network. It runs in milliseconds and tells you immediately when something breaks. Business logic belongs here: pricing calculations, date and currency formatting, discount rules, input validation, state transitions.
In a Flutter app this layer is quick and cheap to cover. Our rule: if a piece of logic would cost real money or real trust when it's wrong, it gets a unit test. A VAT calculation for a Saudi e-commerce app, a loyalty-points formula, an offline-sync conflict resolver all qualify. A trivial getter doesn't.
Integration tests: the load-bearing middle
Integration tests check that several pieces work together: a screen talking to a repository, a repository talking to an API client, data flowing through your state management. The most valuable bugs usually hide here, because each unit can be correct on its own while the seams between them are broken.
Good integration tests cover cases like:
- The login flow from tapping submit to landing on the home screen, with the network layer mocked.
- A purchase completing and updating entitlements correctly (critical if you use RevenueCat or in-app billing).
- Persistence: write something, kill the app, reopen it, confirm it's still there.
They are slower than unit tests and worth every second, because they catch the failures that take longest to debug in production.
End-to-end and UI tests: the narrow top
E2E tests drive the real app as a user would, tapping through whole journeys on an emulator or device. They are the most realistic tests and the most fragile: slow to run, and prone to flaky failures from timing and animations.
Keep this layer thin on purpose. Automate only the few journeys that must never break:
- Onboarding and sign-up
- The core action the app exists for (place an order, book a service, send a payment)
- Checkout and payment
Manual QA on a chosen set of real devices covers the rest better.
What to test, and what to skip
Being pragmatic means accepting that you won't test everything. Put QA effort into:
- Revenue paths. Anything that touches money: checkout, subscriptions, in-app purchases, refunds.
- Authentication and security. Login, sessions, password reset, token expiry, biometric unlock.
- Data integrity. Anything that could corrupt or lose user data, especially offline-first flows that sync later (see our guide to offline-first Flutter apps).
- High-traffic screens. The two or three screens 90% of users see every day.
- Platform-specific behaviour. Permissions, deep links, push notifications and back-button handling differ between iOS and Android and need explicit checks.
Safe to deprioritise: rarely used admin screens, cosmetic edge cases, and exhaustive UI-snapshot tests that break whenever a designer nudges a margin.
Making testing part of how you ship
A testing strategy only pays off if it runs automatically, not when someone remembers. Four pieces make it real:
- Continuous integration. Every pull request runs your unit and integration tests, and a red build blocks the merge. No exceptions. (Our CI/CD guide for Flutter walks through the setup.)
- A device matrix. A small, deliberate set of real devices and OS versions that represent your actual users, including the older, cheaper Android phones common in many GCC and Egyptian markets.
- Beta distribution. Release candidates go to internal testers and a trusted group of real users through TestFlight or Play Console before the public rollout.
- Crash and analytics monitoring. Tools like Firebase Crashlytics turn your live user base into an early-warning system, so the bugs your tests missed surface within hours, not weeks.
Zero bugs is a fantasy. The realistic goal is that the bugs that escape are rare, low-impact and caught fast.
If you're building a mobile app and want this kind of QA from the first sprint, it's how we build Flutter apps; see our mobile app development service, our services and our work, or get in touch to talk through your project.
About the author
SummationWorks Team
SummationWorks is a software development company building web apps, mobile apps, and AI tools for startups and growing businesses worldwide.
More about usRelated Articles

engineering8 min read
Rescue or Rebuild: What to Do With an App Another Developer Left Half-Finished
Your developer has gone and the app is half done. How to secure what you own, assess the code, decide whether to keep it, and what a proper handover includes.
SummationWorks Team

engineering6 min read
Odoo and ZATCA Phase 2: E-Invoicing Compliance for Saudi Businesses
Wave 24 closed in June 2026 and Wave 25 pulls in every business above SAR 187,500. Here is how ZATCA Phase 2 works, what Odoo does natively, and the setup steps that trip most companies up.
SummationWorks Team

engineering5 min read
Custom Odoo Modules: When to Configure, When to Customise, and How to Keep Upgrades Painless
Odoo is easy to customise, which is exactly how companies end up with unmaintainable systems. The decision rules, the module patterns, and the habits that keep a customised Odoo upgradeable.
SummationWorks Team
Have a project in mind?
Let's turn your idea into production-grade software.