Maestro
$ maestro Official Med RiskMaestro (mobile-dev-inc/Maestro) executes declarative YAML UI end-to-end tests across iOS simulators, Android emulators, web views, and Maestro Cloud (maestro test, maestro cloud, maestro hierarchy). Supports -p ios|android, --device, --format junit, and --output for automated CI pipelines.
brew install mobile-dev-inc/tap/maestro maestro drives local iOS simulators and Android emulators via ADB/XCTest and writes JUnit XML and screenshot artifacts locally, which agents can inspect directly.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive CLI execution with --format junit, --output, --test-output-dir, and maestro hierarchy, though it lacks a native --json report mode.
- Supports
--format junitand--outputfor structured CI reporting maestro hierarchyexposes UI element trees for test authoring
Local simulator/emulator tests are isolated; remote uploads require explicit maestro cloud invocation and MAESTRO_CLOUD_API_KEY.
- Clear separation between local
maestro testand remotemaestro cloud - Scoped
MAESTRO_CLOUD_API_KEYauthentication
Installable via Homebrew tap (mobile-dev-inc/tap/maestro) or curl script across macOS, Linux, and Windows (requires Java runtime).
- Cross-platform install via Homebrew or
get.maestro.mobile.dev, requires JVM
Simple YAML syntax with built-in flakiness tolerance replaces brittle Appium/XCUITest/Espresso boilerplate.
- Single YAML test runner for both iOS (
-p ios) and Android (-p android)
Official Mobile.dev repository (mobile-dev-inc/Maestro) under Apache-2.0 license.
- First-party
mobile-dev-inc/Maestrorepository
Well-structured documentation at docs.maestro.dev with clear YAML flow and CLI flag examples.
- Official docs at docs.maestro.dev
Security, Auth & Guardrails
Local simulator/emulator test runs need no credentials; maestro cloud accepts MAESTRO_CLOUD_API_KEY or --api-key.
Apache-2.0 open-source local CLI; Maestro Cloud hosted runs require a paid plan or free trial.
# Maestro (maestro) Agent Rules - Inspect UI elements with `maestro hierarchy` before editing `.maestro/*.yaml` flows. - Always pass `--format junit --output <file>` on `maestro test` for deterministic pass/fail parsing. - Confirm before running `maestro cloud` since it uploads app binaries externally.
Agent-Ready Command Recipes
Safe Read-Only Queries
maestro hierarchy
Inspects the current simulator/emulator accessibility tree so agents can write accurate YAML selectors.
maestro test --format junit --output maestro-report.xml .maestro/smoke.yaml
Executes a declarative YAML E2E flow locally and writes a machine-parseable JUnit XML report.
Controlled Writes & Previews
maestro cloud --api-key "$MAESTRO_CLOUD_API_KEY" ./build/app.apk .maestro/
Submits the mobile binary and YAML test suite to Maestro Cloud for hosted execution.
Strengths for Agents
- + Declarative YAML flows and
maestro hierarchymake mobile E2E tests easy for coding agents to author and debug. - +
--format junitproduces deterministic XML reports for CI.
Caveats & Pitfalls
- ! Requires a Java runtime (JDK) and a booted iOS Simulator or Android Emulator/device.
- ! No native
--jsonreport formatter (junit,html, andnooponly).