Get a first Patrol test passing on an Android emulator. Tell the user up front that
this covers
Android only (the pubspec
block + native Android); iOS and
other platforms follow the same install doc but aren't part of this first setup.
This skill is the ordered process and the gotchas; the canonical docs are the source
of truth for versions, native config, and code — follow them at each step instead of
guessing:
Keep this first one
self-contained — only Flutter framework widgets, no app or
backend dependencies — so a green run proves the harness itself. Place it in
(or the configured
).
Gitignore
(generated by Patrol) and
(your
dart-defines, often secrets) per the
Setup section:
https://patrol.leancode.co/documentation#setup
Boot an Android emulator and
wait for boot to fully complete before running —
a test launched mid-boot fails. Then run the single test with
. A
green run confirms the setup.
Once the setup is green, mention to the user that
Patrol MCP exists and can be
set up on request — it lets an AI agent run tests, capture screenshots, read the
native UI tree, and drive an interactive session. Let the user decide; if they
want it, follow the README:
https://pub.dev/packages/patrol_mcp