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:- An API key. The CLI signs in with a workspace API key. Keep it in your CI’s secret store as
MINITEST_API_KEY. - A first run from your terminal, with the commands below already filled in with your app ID.
- The same run in your CI.
Run from your terminal
Install the CLI, upload the build, then send the tests:--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 namedMINITEST_API_KEY, then add a job:
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 withminitest script-runs get <run id>.
