One Test Automation Framework for Mobile? I Run Three, One per Layer
I counted the flow files, XCUITest files and androidTest files across my own Android and iOS apps, then read the git history for what each layer was actually good for.

One of the more useful test automation changes I made to PlannedPing was deleting a flow file. Its assertions were all marked optional, so it passed whatever the app did. Which test automation framework you pick matters less than which layer you ask it to cover, and the git history of my own apps shows where each layer stops.
If you build mobile apps and are shopping for one framework, my answer is that you won't end up with one. I run black-box YAML flows for journeys across screens, the platform's own UI test framework (XCUITest on iOS, Compose UI tests and Espresso on Android) for single-screen behaviour, and plain unit tests under both. Below is what that looks like when counted, and the commits behind it.
What each test automation framework is for
Maestro is black-box. It drives the device from outside the app through the accessibility tree and waits for the screen to settle on its own, and its flows are YAML. That makes a flow readable by someone who never opens the code.
The platform frameworks live closer to the code. On Android, Compose testing gives you APIs to find elements, check their attributes and perform actions, and Espresso does the same for View-based screens, synchronizing with the UI before each action. Both can run as instrumented tests on a device or emulator, and Compose tests can also run locally. In my repos they all live in androidTest and run on a device. On iOS, UI tests drive the app through XCUIApplication, a proxy that can launch, monitor and terminate the app.
The trade is plain. A black-box flow only knows what is on screen, so it can't seed a database or fake a clock. An Android instrumented test runs inside the app's process and can. XCUITest can't reach into the app's state either, so I plant state through launch arguments or a debug hook in the app.
Mobile automation testing: what my repos run, counted
I counted files, not test cases. A file is a number I can reproduce with a command, and a test case count would depend on how each framework names things. The androidTest column counts every .kt file in the folder, including runners, fakes and DI modules, so read it as footprint, not as test count.
| App | Maestro YAML flows | XCUITest files | androidTest .kt files (importing Compose UI test / Espresso) |
|---|---|---|---|
| PlannedPing Android | 86 | n/a | 112 (37 / 10) |
| LeadPing | none | 8 (iOS) | 74 (33 / 1) (Android) |
| ChatPing | none | 11 (iOS) | 34 (5 / 2) (Android) |
| RecallPing Android | none | n/a | 98 (27 / 2) |
| ReelSavePing iOS | none | 23 | n/a |
Only one of my apps has a Maestro suite; the rest rely on their platform framework.
An XCUITest file here means a Swift file that imports XCTest and uses XCUIApplication. I excluded one other match in ChatPing's iOS repo because it was an app config file, not a test. The same count gives 5 files in ClickPing's iOS app, 4 in ResizePing's, and 1 each in two more, so seven iOS apps run XCUITest. StatusPing for Android adds a fifth app with Compose UI tests (2 files). Of the Android repos, only PlannedPing has a .maestro folder.
XCUITest, Compose tests or Maestro: four cases from git
A flow that could not fail. Commit 4db063677, "replace fragile/zero-value Maestro flows with targeted instrumentation", deleted attachment_flow.yaml. The commit message gives two reasons. Every assertion was optional: true, which was my authoring mistake, so it carried zero regression value. And the flow could not drive the system file picker, so that coverage moved to instrumentation. In the same commit I replaced a coordinate tap ("92%,6%") in a snooze flow with a semantic tap on a content description, and added a RecurringAdvancementIntegrationTest that seeds Room directly and proves the button-to-use-case-to-database chain without needing a real contact on the emulator.
A UI change that swept the flows. Commit 1f1269ce1, "sweep Maestro blast-radius", followed a change to the schedule list (recurring schedules moved onto the Upcoming tab and the Recurring filter chip went away). Ten files changed: I replaced eight assertVisible: "All" lines with assertVisible: "Upcoming" across seven flows, removed two taps on the "Recurring" chip, and deleted one flow that a newer one had superseded. That's what black-box flows cost: they are tied to visible text, so one copy change touches a lot of files. I accept the cost because those flows read like the user's journey, but I count it.
A bug a flow could not reproduce. Commit 79de48502 added three Hilt-injected tests against a real Room database for a phantom-send bug: a stale scheduled marker on a future recurring schedule wrote a FAILED history entry. The commit message explains the choice: the scenario needs precise control over a clock-relative scheduledAt and shared-preferences state that "cannot be seeded externally". One of the three tests is a fence in the other direction, proving that a genuinely abandoned one-time schedule still writes exactly one FAILED entry. A Maestro flow could never have set that state up.
A crash in one screen. In ChatPing's iOS repo, f811ca31 is "XCUITest for composer send/retype/dictate crash". The crash lived in a send, retype and dictate sequence in the composer, so I tested that screen directly, with a debug-only fake dictation hook planted in the app.
Related: triaging flaky mobile UI tests and letting an agent drive a device.
How I choose a mobile test automation layer
My rule of thumb from those commits: when the check is a user journey that reads well as visible text, write a flow. When the thing under test needs state you can only plant from inside the app, write a platform test. When it needs neither, write a unit test.
- Team of one or two. Start with the platform framework for the screens you change most. In my repos that is 37 Compose-test files in PlannedPing and 33 in LeadPing. Add Maestro once you have journeys worth reading as plain steps, and budget for sweeps like
1f1269ce1when copy changes. - iOS and Android parity. Maestro is the only layer in my set that uses one file format on both platforms. Seven iOS apps run XCUITest, but none of them has a flow folder, so I have no parity evidence of my own to offer.
- Assertions. After a save, assert that the saved thing exists. I added exactly that to six flows in
0ca0754f2, "assert persisted state after save", because a flow that taps Save and then ends proves nothing.
Keep reading
- Android Memory Leak Checks Beyond LeakCanary: Teardown, Cache Files and Test StateLeakCanary finds destroyed Activities that stay reachable. These four cases were not heap leaks: startup work that survived teardown, two cache files left on disk, and an exception that surfaced in a later test.
- My Notes Said Firebase Test Lab Ran on Every Gate. It Never Went Green.I set up a Firebase Test Lab device matrix for an Android app in one evening. Months later my notes said it ran on every gate. The run history said something else.
- Claude Code in Android Studio: The Editor Is the Easy PartThe plugin gives the agent diffs, your selection and lint. The phone is reached from the terminal, and that is where my agents' habits, my screenshots and my own guard hook surprised me.