Skip to main content
Your team’s Maestro flows and Espresso tests can run on Minitap devices as they are. You upload the app build, send your tests with the CLI or from GitHub Actions, and Minitap runs each Maestro flow, or each Espresso test class, on its own device, records it, and waits for the verdict. The results show up in Script runs, next to your Appium tests and Mini’s runs.
Beta. Maestro and Espresso jobs are being tried with a few teams first. Maestro runs on Android emulators and iPhone simulators. Espresso runs on Android. Ask the Minitap team to turn them on for your workspace.

What you send

In a Maestro folder, config.yaml and the flows whose names start with _ stay available to the others (for runFlow) and don’t run on their own. Each flow starts on a fresh device, so it never sees what another flow left behind. On iPhone simulators clearState has no effect, which that fresh start makes unnecessary. A bundle can be up to 50 MB.

Set up

Open Settings → Test frameworks and choose Set up on Maestro or Espresso. The setup walks you through three steps:
  1. An API key. The CLI signs in with a workspace API key. Keep it in your CI’s secret store as MINITEST_API_KEY.
  2. A first run from your terminal, with the commands below already filled in with your app ID.
  3. The same run in your CI.

Run from your terminal

Install the CLI, upload the build, then send the tests:
For Espresso, use --framework espresso and pass the test APK, for example --tests app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk. The command shows progress while the tests run, then prints one line per test with its status and failure reason, the whole stack trace of each failed test, and the link to the run. It exits with: Other options: --run-name to name the run, --commit-sha and --branch to show them on the run, --model tablet, --os-version, --timeout (seconds to wait, one hour by default), and --no-wait to return as soon as the run has started.

Run from GitHub Actions

Store the key as a repository secret named MINITEST_API_KEY, then add a job:
The step waits for the verdict and fails when a test fails. Its job summary lists every test with its failure reason and links the run. The run takes the workflow’s name and run number, and the pull request’s commit and branch. Set fail-on-failure: false to keep the job green and read the verdict from the step’s status output (passed, failed, or error when no verdict came back), next to run-url and job-id. On another CI, run the two terminal commands in a job: the second one exits non-zero when a test fails.

Read the results

Open Results → Script runs and filter on the framework. Each flow or test class has its device, its recording and its tests. A failed Espresso test shows its stack trace, and when the app crashed, the crash from the device log. The CLI reads the same thing with minitest script-runs get <run id>.

How long we keep them