Mobile test coverage
Mobile test coverage: know what your mobile tests exercise on the backend
Mobile test coverage can mean three things: which devices and OS versions you test on, how much of the app's code your tests run, and how much of the backend they reach. CoverOps gives you the third, the one the other two miss: agents in the services your app calls record exactly what a mobile suite or a tester on a phone executed there. App code on the device and device coverage are not measured by CoverOps.
By the CoverOps team · Last updated
Why teams choose CoverOps for mobile test coverage
The coverage device labs and app instrumentation miss
Line-level coverage of the backend your app depends on, from every mobile test tool and every tester with a phone, with nothing installed on devices.
Manual and automated testing in one number
A monitoring window adds up automated suites and people testing on devices for as long as the release pass lasts, days included.
Catch API changes no mobile test reached
The changed-code gate, run against the mobile pass, shows which backend lines of a change were exercised and which were not.
Flaky tests caught, not hidden by retries
Passes on retry, different results on one commit and flips on a branch are all counted, flips per branch, and a confirmed flake can be quarantined so it stops blocking builds.
Cloud, self-hosted or air-gapped
Use the hosted service in AWS Frankfurt, or run CoverOps in your private cloud, on your own servers or fully offline.
ISO/IEC 27001, 27701 and ISO 9001
Certified to ISO/IEC 27001:2022, ISO/IEC 27701 and ISO 9001. SOC 2 Type 2 is coming soon.
Three kinds of mobile coverage
Device coverage is a matrix decision: the phones, OS versions and screen sizes your users actually have, weighed against how many you can afford to test on. It is about where you test, and usage data answers it better than any coverage tool.
App-code coverage is measured by instrumenting the app: JaCoCo or the Android Gradle plugin's coverage on Android, Xcode's code coverage on iOS, each framework's own tooling for cross-platform apps. It tells you which screens, view models and client-side rules your tests executed.
Backend coverage is the part both of those miss. Prices, permissions, payments and most of what can go wrong in a release live in the APIs the app calls. A mobile regression that passes on twenty devices still says nothing about which of those code paths it exercised. That is what CoverOps measures, with the same agents it uses for web and API tests.
How it works for mobile tests
- Run the backend services your app talks to in the test environment with the CoverOps agent for their language (Java, .NET, Node.js, Python, Go or PHP). Nothing is installed on phones, emulators or in the app.
- Open a coverage monitoring window before the mobile suite or the manual test session, and stop it afterwards. Every agent of the project reports into it while it is open, whatever tool or person caused the traffic.
- Send the verdicts into the same run: the Appium-capable runners have plugins (JUnit 5, TestNG, pytest, WebdriverIO, Robot Framework); Espresso, XCUITest or any other runner can post results to the Results API with the window's run key.
- If you need per-test results, make the app's test build send the running test's name in the
X-CoverageOps-TestandX-CoverageOps-Runheaders. That is code in your app; CoverOps provides the contract, not the app-side code.
curl -X POST "$COVERAGEOPS_ENDPOINT/v1/agent/runs/tests" \
-H "Authorization: Bearer $COVERAGEOPS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"run_key":"'"$WINDOW_KEY"'","shard":"ios","tool":"xcuitest",
"tests":[{"suite":"CheckoutTests","name":"testPaysByCard",
"status":"passed","duration_ms":8120}]}'X-CoverageOps-Test: CheckoutTests%3A%3AtestPaysByCard X-CoverageOps-Test-Id: AUT-45 (optional) X-CoverageOps-Run: <the run key>
The window can be started and stopped from the dashboard, from a pipeline through the REST API with a write-scoped API token, or by an AI assistant over MCP. The Appium page shows the pipeline version.
Manual testing on phones
Much mobile testing is still people with devices. A monitoring window counts their sessions the same way it counts automation: start it when the regression starts, stop it when it ends, and the result is what the whole pass reached on the backend. Windows can run for days, and a second window can measure one day inside a longer one from zero.
The window counts everything the agents see while it is open, so other traffic on the same environment is in it too. A test environment the mobile team has to itself gives the cleanest number.
What you get
Backend coverage of a mobile release pass
Line and method coverage of every service the app called while the window was open, replicas merged, with the source line by line and the code that never ran in red.
Backend changes no mobile test reached
The quality gate, run against the mobile window's key, reports how many of a change's backend lines the mobile pass executed, and lists the ones it did not.
Flaky mobile tests
Verdicts with retries, from the runner plugins or the Results API, feed the Flaky tests page: passes on retry, results that differ on one commit, flips on a branch.
API code nothing calls
Dead code over a window and an environment: backend methods that were loaded and never executed, by the app or anything else.
What is measured, and what is not
Measured
- Lines and methods of the backend services your app calls, on any service with a CoverOps agent; branches on Java and Node.js.
- Automated mobile suites and manual sessions on devices, added up in a monitoring window.
- Per test, only when the app's test build or a proxy you run sends the test context on each request.
Not measured
- App code on iOS, Android, React Native or Flutter: there is no on-device or in-app agent.
- Device, OS-version or screen-size coverage: CoverOps does not know which phone sent a request.
- Third-party SDKs and services the app calls directly (analytics, payments, maps) unless they are your services with an agent.
Frequently asked questions
What is mobile test coverage?
Depending on who asks: the devices and OS versions a team tests on, the share of the app's code its tests execute, or the share of the backend they reach. Each is measured differently, and a mature mobile team usually tracks more than one.
Does CoverOps measure code coverage of a mobile app?
No. It has no agent on the device or in the app. It measures the backend services the app calls. For the app's own code, use the platform's instrumentation (JaCoCo on Android, Xcode's coverage on iOS).
Which mobile test tools work with it?
Any, for the backend measurement: Appium, Espresso, XCUITest, Maestro or a person with a phone all cause traffic the agents see. Verdicts come from the runner plugins (JUnit 5, TestNG, pytest, WebdriverIO, Robot Framework) or from the Results API.
Can I see which mobile test reached which API code?
Only if each request carries the test's name. Browser and API tests do that through a cookie or headers; a native app does not unless its test build adds the headers. Without that, coverage is per window, not per test.
Can CoverOps decide which mobile tests to run for a change?
Not for app changes: it has no coverage of app code to reason with, so every test would run. For backend changes it needs per-test footprints. A selection tool that learns from test history may suit mobile suites better; the comparison pages say where each fits.
Keep reading
Related pages
In the documentation
The documentation is in English.
Measure what your mobile testing reaches on the backend
Bring the API behind your app to a demo; we show one mobile pass measured on it and what per-test results would need.