Skip to main content
Automate · Android

Your Espresso suite, on real Android phones

Upload the app and its androidTest APK, name the devices, and run the instrumentation tests you already have — with a video, device log and output for every test.

Android only · free device-minutes to start · no credit card required

POST /espresso/v1/build

{

"app": "farm://app-3f9c01",

"testSuite": "farm://suite-81ad02",

"devices": ["Pixel 8-17", "Galaxy S25-16"],

"class": ["com.acme.LoginTest"]

}

From Gradle to a real phone in four calls

The same two files you build for connectedAndroidTest, run on hardware you don't have to buy.

  1. 1

    Build

    Gradle's assembleDebug and assembleDebugAndroidTest give you the two APKs. No SDK, no changes to your tests.

  2. 2

    Upload

    Send both APKs with your access key. Big APKs can go straight to storage, which suits CI.

  3. 3

    Run

    Start one build that names the devices. Each device gets its own session, and they run in parallel.

  4. 4

    Read

    Poll the build until it finishes. Every test has its own result, video and logs.

The tests you wrote, on hardware you don't own

No SDK in your app and no rewrite. Two APKs and one API call to start.

Real phones or emulators

Pick real Android hardware, or mark a device virtual to run on an emulator.

Up to 20 devices per build

One session per device, in parallel up to the threads your plan includes.

Run part of the suite

Filter by class, package, annotation or test size.

Every test on its own

Result, video, device log and output per test, plus a crash dump when the app crashes.

Steps you can read

Each Espresso action shows up in All Commands, the same tab an Appium run uses.

Skipped is not failed

@Ignore and failed assumptions are shown as skipped and never fail a device.

A red test you can explain

When a test fails on one phone and passes on another, you need to see what that phone did. Every test gets its own video clip, device log and stack trace, and a crash dump is kept if the app crashes.

  • Per test, not per run. Open the clip of the one test that failed instead of scrubbing a long recording.
  • Every Espresso action listed. Clicks, typing and checks appear in the All Commands tab, the same tab an Appium run uses.
  • Honest results. A filter that matches no test is an error, never a pass. A misspelt class name can't turn a build green.
ci / espresso.sh

# 1. upload the app

curl -F [email protected] …/espresso/v1/app

# 2. upload the tests

curl -F [email protected] …/espresso/v1/test-suite

# 3. start the build

curl -d '{"app":…,"testSuite":…,"devices":[…]}' …/espresso/v1/build

# 4. wait for the result

curl …/espresso/v1/builds/$BUILD_ID # status: passed

Fits in one CI step

Plain HTTP calls with your access key. No plugin to install and no agent to run, so it works in GitHub Actions, GitLab, Jenkins, Bitrise or a shell script.

  • Same key as Appium. One access key for every Automate API.
  • Gate on one field. The build is passed only when every device passed.
  • Run what changed. Filter by class, package, annotation or test size.
  • Stop safely. Cancel a build from a cleanup step; a finished result is never rewritten.
FAQ

Frequently asked questions

No. You build the same two APKs Gradle already gives you — the app and its androidTest APK — and upload them. Your tests run with the instrumentation runner they declare, on the device, as they would from Android Studio.

Run your androidTest APK on a real phone

Upload two APKs and start a build from your terminal or CI.