20 AI testers on 20 different phones, in parallel, on GitHub's free runners: Claude Code agents on iOS Simulators and Android emulators that find broken flows, translation, layout and accessibility bugs
Python accessibility-testingai-agentsai-testingandroidandroid-emulatorclaudeclaude-codee2e-testingexploratory-testingexpofluttergithub-actionsiosios-simulatorllmmobile-testingqareact-nativetest-automationui-testing
Contributing: ideas where help is welcome, and where each one starts
Pierre RAFFALLI7cf11e63f67f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 912a25d..11ff55c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,7 @@## Unreleased+- **Contributing**: [CONTRIBUTING.md](CONTRIBUTING.md) and a section in the README with ideas where help is welcome (other agent CLIs like OpenCode, web apps, physical phones, new personas, findings to issues, other CI), where each one starts in the code and how to test it offline.- **Build arguments**: the `build_args` input adds arguments to the automatic build of both platforms, like `--dart-define=API_URL=https://staging.example.com` for a Flutter app that needs its backend address (Gradle and xcodebuild arguments for the other frameworks). Keys go in a `BUILD_ARGS` secret, never printed ([scripts/build/args.sh](scripts/build/args.sh)).- **How each agent ended, on the run page**: finished, out of turns, usage limit, refused token or key, no API credit, rate limit or overloaded API, as an annotation with what to do next, plus turns and cost in the job summary. Nothing the agent wrote is printed, since public logs are public. `collect.sh` prints the same line for each agent ([scripts/agent_status.py](scripts/agent_status.py)).- **setup.sh**: asks again after an empty paste or a wrong choice, checks an API key with Anthropic before saving it (a free call, the key never on the command line), warns when a token does not look like one and when the repo is private, where macOS minutes count ten times. `setup.ps1` does the same, except the online check.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..c5d147e--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,63 @@+# Contributing++Thanks for helping. Open an issue before you start, to say what you want to build: two people won't work on the same thing, and we can agree on the shape before you write code. Small pull requests get merged faster than big ones.++## Before you open a pull request++- Run the tests. They are offline and need no phone: `python3 -m unittest discover -s tests -q`.+- Scripts run on GitHub's macOS runners too: keep them working with the bash 3.2 of macOS (no `mapfile`, expand empty arrays as `${ARR[@]+"${ARR[@]}"}`) and with Python 3.9.+- The logs of a public repo are public. Never print a report, a screenshot path with user data, a key or a secret value: print counts and statuses only, like [scripts/build/args.sh](scripts/build/args.sh) and [scripts/agent_status.py](scripts/agent_status.py) do.+- [skills/mobile-agent-testers/SKILL.md](skills/mobile-agent-testers/SKILL.md) and [plugins/mobile-agent-testers/skills/setup/SKILL.md](plugins/mobile-agent-testers/skills/setup/SKILL.md) must stay identical (a test checks it).+- Say how you tested. If you ran it on real emulators or simulators, a link to the run helps.++The README exists in five languages. Change the English one; the translations can follow in the same pull request or a later one.++## Ideas, and where each one starts++### Other agent CLIs (OpenCode, Codex CLI, Gemini CLI, Goose...)++The agent is one command per platform: the `claude -p` call in [scripts/ios/run_agent.sh](scripts/ios/run_agent.sh) and [scripts/android/run_agent.sh](scripts/android/run_agent.sh). Everything else is plain: the tools are scripts (`screen.py`, `gesture.sh` or `adb`, `type.py`) and the mission is a Markdown brief ([AGENT_BRIEF.md](AGENT_BRIEF.md), or a file of [briefs/](briefs/)).++A good shape: an `agent` input in [.github/workflows/agent-testers.yml](.github/workflows/agent-testers.yml) (default: Claude Code), and one sourced script that builds the command for each CLI, next to [scripts/llm_env.sh](scripts/llm_env.sh).++The CLI must be able to run shell commands headless, limited to the tools of the brief (today's allowlist is in `--allowedTools`), read the PNG that `screen.py` writes, write two files under `results/<persona>/`, and stop on its own. [scripts/agent_status.py](scripts/agent_status.py) reads Claude Code's JSON output to say how a run ended: add the new CLI's output there, with tests.++Test it offline with a stand-in for the CLI on `PATH`, like [tests/test_build_args.py](tests/test_build_args.py) does for `flutter`.++### Web apps++The same personas on a mobile browser, for PWAs and mobile sites. A new `web` platform in [scripts/matrix.py](scripts/matrix.py) and [personas.json](personas.json), and `scripts/web/` with the three tools on Playwright: `screen.py` (screenshot plus the list of elements with their centres, in the same format as the phone tools), gestures and typing. It runs on the Linux runners, so it would be the cheapest platform.++### Physical Android phones++On a self-hosted runner with a phone plugged in over USB. [scripts/android/run_agent.sh](scripts/android/run_agent.sh) assumes an emulator: it changes the language with `adb root`, which retail phones refuse, and the workflow starts the emulator with android-emulator-runner. A `device: physical` option would skip both and use the phone that `adb devices` lists.++### New personas++Personas are a few lines in [personas.json](personas.json); the run scripts apply their settings to the phone (text size, dark mode, language and location today). Ideas, asked for by users: increased contrast, reduced motion, color blindness filters, a slow or flaky network.++On Android, these are `adb shell settings put` calls (`secure high_text_contrast_enabled`, the `global` animation scales, `secure accessibility_display_daltonizer`) and the emulator console for the network (`adb emu network speed` and `network delay`). On iOS, check what `xcrun simctl ui` supports in the Xcode of the runner. Add a test in [tests/test_matrix.py](tests/test_matrix.py) for the new fields.++### Findings to issues++[scripts/summarize.py](scripts/summarize.py) writes `SUMMARY.md` on your machine, after [scripts/collect.sh](scripts/collect.sh) decrypts the results. An opt-in step there could open draft issues in your app's repo with `gh issue create`, one per distinct bug, with the personas that hit it and their screenshots, or post the summary to Slack or Discord. It must stay on your machine: the results are private, never upload them from the runner.++### Other CI++The workflow is written for GitHub Actions (job matrix, macOS runners, android-emulator-runner). The build scripts, the persona tools and the encryption ([scripts/encrypt_results.sh](scripts/encrypt_results.sh)) are portable: a GitLab CI, Bitrise or Codemagic version would reuse them.++### More build systems++Framework detection is in [scripts/build/detect.sh](scripts/build/detect.sh), and each framework is one `case` in [scripts/build/android.sh](scripts/build/android.sh) and [scripts/build/ios.sh](scripts/build/ios.sh). NativeScript, Unity or Godot would each be one more case, tested with a stand-in for the build tool.++### Translations++Copy [README.md](README.md) to `README.<language>.md`, keep the headings in the same order, and add the language to the line of languages at the top of every README. The examples page ([docs/examples.md](docs/examples.md)) has translations too.++### Model comparison++The demo app has [11 planted bugs](demo-app/BUGS.md), so it makes a small benchmark. Run the same personas with different models (the `model` and `llm_base_url` inputs, see [docs/cheaper-models.md](docs/cheaper-models.md)) and publish what each one found and cost, as a page of [docs/runs/](docs/runs/) with its JSON data.++## Questions++Open an issue, or a thread in [Discussions](https://github.com/pierridotite/mobile-agent-testers/discussions).diff --git a/README.es.md b/README.es.mdindex 4a042de..d37afb4 100644--- a/README.es.md+++ b/README.es.md@@ -7,7 +7,7 @@**20 testers con IA en 20 teléfonos distintos, en paralelo, en los runners gratuitos de GitHub.**-**[Ejemplos](docs/examples.es.md)** · **[Comparativa](docs/compare.md)** · **[Preguntas frecuentes](#preguntas-frecuentes)** · **[Personas](personas.json)** · **[Versiones](https://github.com/pierridotite/mobile-agent-testers/releases)**+**[Ejemplos](docs/examples.es.md)** · **[Comparativa](docs/compare.md)** · **[Preguntas frecuentes](#preguntas-frecuentes)** · **[Personas](personas.json)** · **[Contribuir](CONTRIBUTING.md)** · **[Versiones](https://github.com/pierridotite/mobile-agent-testers/releases)**[English](README.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · Español · [Português](README.pt-BR.md)@@ -180,6 +180,20 @@ Sí. Una persona son unas pocas líneas en [personas.json](personas.json): dispoA veces interpreta mal una pantalla: 3 de los 20 agentes de LocalSend señalaron el teclado en inglés del simulador como parte de la app. Unos minutos por agente cubren los caminos principales, no cada rincón de una app grande. Cada hallazgo viene con capturas numeradas, así que revísalas antes de reportar nada.+## Contribuir++Ideas en las que se agradece ayuda. Abre primero un issue para decir cuál tomas, así dos personas no construyen lo mismo. [CONTRIBUTING.md](CONTRIBUTING.md) explica por dónde empieza cada una y cómo probarla sin conexión.++- **Otros CLI de agentes**: OpenCode, Codex CLI, Gemini CLI, Goose. Las herramientas son scripts normales y la misión es un brief en Markdown, así que el agente es un solo comando por plataforma.+- **Apps web**: las mismas personas en un navegador móvil con Playwright, para PWA y sitios móviles.+- **Teléfonos Android físicos** por adb, en un runner propio.+- **Nuevas personas**: más contraste, menos movimiento, filtros de daltonismo, una red lenta o inestable.+- **De hallazgos a issues**: convertir el resumen en borradores de issues de GitHub con sus capturas, o en un mensaje de Slack o Discord.+- **Otros CI**: GitLab CI, Bitrise, Codemagic.+- **Más sistemas de compilación**: NativeScript, Unity, Godot, cada uno un caso en `scripts/build/`.+- **Traducciones** del README y de la documentación.+- **Comparar modelos**: los 11 bugs plantados en la app de demo forman un pequeño benchmark. Una tabla de lo que encuentra y cuesta cada modelo.+## Versión alojada para equipos (en estudio)El flujo de este repo sigue siendo gratis, de código abierto y completo. Estoy estudiando una versión alojada para equipos con apps privadas: runners de macOS incluidos (en un repo privado, GitHub cuenta cada minuto de macOS diez veces) y un panel web para compartir los informes con todo el equipo, product managers incluidos.diff --git a/README.ja.md b/README.ja.mdindex dd4e9d2..76cdf4e 100644--- a/README.ja.md+++ b/README.ja.md@@ -7,7 +7,7 @@**20 人の AI テスターが、20 台の異なるスマートフォンで、GitHub の無料ランナー上で同時にテスト。**-**[適用例](docs/examples.ja.md)** · **[比較](docs/compare.md)** · **[よくある質問](#よくある質問)** · **[ペルソナ](personas.json)** · **[リリース](https://github.com/pierridotite/mobile-agent-testers/releases)**+**[適用例](docs/examples.ja.md)** · **[比較](docs/compare.md)** · **[よくある質問](#よくある質問)** · **[ペルソナ](personas.json)** · **[コントリビュート](CONTRIBUTING.md)** · **[リリース](https://github.com/pierridotite/mobile-agent-testers/releases)**[English](README.md) · [简体中文](README.zh-CN.md) · 日本語 · [Español](README.es.md) · [Português](README.pt-BR.md)@@ -178,6 +178,20 @@ gh workflow run agent-testers.yml -f source_repo=you/app -f app_id=com.you.app \画面を読み違えることがあります:LocalSend では 20 のエージェントのうち 3 つが、シミュレーターの英語キーボードをアプリの一部だと報告しました。エージェントごとの探索は数分なので、主な操作の流れはカバーしても、大きなアプリの隅々まではカバーしません。どの指摘にも番号付きのスクリーンショットが付くので、報告する前に確認してください。+## コントリビュート++手伝ってもらえると嬉しいアイデアです。同じものを二人で作らないよう、着手する前に issue でどれをやるか教えてください。それぞれの始め方とオフラインでのテスト方法は [CONTRIBUTING.md](CONTRIBUTING.md) にあります。++- **他のエージェント CLI**:OpenCode、Codex CLI、Gemini CLI、Goose。ツールはただのスクリプトで、ミッションは Markdown の指示書なので、エージェントはプラットフォームごとにコマンド 1 つです。+- **Web アプリ**:Playwright でモバイルブラウザ上に同じペルソナを走らせ、PWA やモバイルサイトを試す。+- **実機の Android**:セルフホストランナーから adb で接続。+- **新しいペルソナ**:コントラストを上げる、視差効果を減らす、色覚フィルター、遅い・不安定なネットワーク。+- **発見を issue に**:サマリーをスクリーンショット付きの GitHub issue の下書きや、Slack・Discord のメッセージにする。+- **他の CI**:GitLab CI、Bitrise、Codemagic。+- **他のビルドシステム**:NativeScript、Unity、Godot。それぞれ `scripts/build/` に case を 1 つ追加。+- **翻訳**:README とドキュメント。+- **モデル比較**:デモアプリに仕込んだ 11 個のバグは小さなベンチマークになります。各モデルが見つけた数とコストの表を。+## チーム向けホスト版(検討中)このワークフローは今後も無料・オープンソースのまま、機能もすべてそろっています。非公開アプリを持つチーム向けに、ホスト版を検討しています。macOS ランナー込み(非公開リポジトリでは、GitHub は macOS の 1 分を 10 分として数えます)で、レポートをプロダクトマネージャーも含めたチーム全員と共有できる Web ダッシュボード付きです。diff --git a/README.md b/README.mdindex 8e51266..9780344 100644--- a/README.md+++ b/README.md@@ -7,7 +7,7 @@**20 AI testers on 20 different phones, in parallel, on GitHub's free runners.**-**[Examples](docs/examples.md)** · **[Compare](docs/compare.md)** · **[FAQ](#faq)** · **[Personas](personas.json)** · **[Releases](https://github.com/pierridotite/mobile-agent-testers/releases)**+**[Examples](docs/examples.md)** · **[Compare](docs/compare.md)** · **[FAQ](#faq)** · **[Personas](personas.json)** · **[Contributing](CONTRIBUTING.md)** · **[Releases](https://github.com/pierridotite/mobile-agent-testers/releases)**English · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Português](README.pt-BR.md)@@ -179,6 +179,20 @@ Yes. A persona is a few lines in [personas.json](personas.json): device, OS versIt sometimes misreads a screen: 3 of LocalSend's 20 agents flagged the Simulator's English keyboard as part of the app. A few minutes per agent covers the main paths, not every corner of a big app. Every finding comes with numbered screenshots, so check them before filing anything.+## Contributing++Ideas where help is welcome. Open an issue first to say which one you take, so two people don't build the same thing. [CONTRIBUTING.md](CONTRIBUTING.md) says where each one starts and how to test it offline.++- **Other agent CLIs**: OpenCode, Codex CLI, Gemini CLI, Goose. The tools are plain scripts and the mission is a Markdown brief, so the agent is one command per platform.+- **Web apps**: the same personas on a mobile browser with Playwright, for PWAs and mobile sites.+- **Physical Android phones** over adb, on a self-hosted runner.+- **New personas**: increased contrast, reduced motion, color blindness filters, a slow or flaky network.+- **Findings to issues**: turn the summary into draft GitHub issues with their screenshots, or a Slack or Discord message.+- **Other CI**: GitLab CI, Bitrise, Codemagic.+- **More build systems**: NativeScript, Unity, Godot, each one case in `scripts/build/`.+- **Translations** of the README and docs.+- **Model comparison**: the demo app's 11 planted bugs make a small benchmark. A table of what each model finds and costs.+## Hosted version for teams (exploring)The workflow here stays free, open source and complete. I'm exploring a hosted version for teams with private apps: macOS runners included (on a private repo, GitHub counts each macOS minute ten times) and a web dashboard to share the reports with the whole team, product managers included.diff --git a/README.pt-BR.md b/README.pt-BR.mdindex 7e39dc0..cd08315 100644--- a/README.pt-BR.md+++ b/README.pt-BR.md@@ -7,7 +7,7 @@**20 testadores com IA em 20 celulares diferentes, em paralelo, nos runners gratuitos do GitHub.**-**[Exemplos](docs/examples.pt-BR.md)** · **[Comparação](docs/compare.md)** · **[Perguntas frequentes](#perguntas-frequentes)** · **[Personas](personas.json)** · **[Versões](https://github.com/pierridotite/mobile-agent-testers/releases)**+**[Exemplos](docs/examples.pt-BR.md)** · **[Comparação](docs/compare.md)** · **[Perguntas frequentes](#perguntas-frequentes)** · **[Personas](personas.json)** · **[Contribuir](CONTRIBUTING.md)** · **[Versões](https://github.com/pierridotite/mobile-agent-testers/releases)**[English](README.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · [Español](README.es.md) · Português@@ -180,6 +180,20 @@ Sim. Uma persona são algumas linhas no [personas.json](personas.json): aparelhoÀs vezes lê uma tela errado: 3 dos 20 agentes do LocalSend apontaram o teclado em inglês do simulador como parte do app. Alguns minutos por agente cobrem os caminhos principais, não cada canto de um app grande. Cada bug relatado vem com capturas numeradas, então confira antes de abrir qualquer issue.+## Contribuir++Ideias em que ajuda é bem-vinda. Abra uma issue antes para dizer qual você vai pegar, assim duas pessoas não constroem a mesma coisa. O [CONTRIBUTING.md](CONTRIBUTING.md) diz por onde cada uma começa e como testar offline.++- **Outros CLIs de agente**: OpenCode, Codex CLI, Gemini CLI, Goose. As ferramentas são scripts comuns e a missão é um brief em Markdown, então o agente é um único comando por plataforma.+- **Apps web**: as mesmas personas num navegador mobile com Playwright, para PWAs e sites mobile.+- **Celulares Android físicos** via adb, num runner próprio.+- **Novas personas**: mais contraste, menos movimento, filtros de daltonismo, rede lenta ou instável.+- **Achados viram issues**: transformar o resumo em rascunhos de issues do GitHub com as capturas, ou numa mensagem no Slack ou Discord.+- **Outros CIs**: GitLab CI, Bitrise, Codemagic.+- **Mais sistemas de build**: NativeScript, Unity, Godot, cada um um caso em `scripts/build/`.+- **Traduções** do README e da documentação.+- **Comparar modelos**: os 11 bugs plantados no app de demonstração formam um pequeno benchmark. Uma tabela do que cada modelo encontra e quanto custa.+## Versão hospedada para equipes (em estudo)O fluxo deste repositório continua gratuito, de código aberto e completo. Estou estudando uma versão hospedada para equipes com apps privados: runners macOS incluídos (num repositório privado, o GitHub conta cada minuto de macOS dez vezes) e um painel web para compartilhar os relatórios com a equipe toda, product managers incluídos.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 7d516ca..e40b11c 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -7,7 +7,7 @@**20 个 AI 测试员,20 台不同的手机,在 GitHub 的免费运行器上并行测试。**-**[应用实例](docs/examples.zh-CN.md)** · **[对比](docs/compare.md)** · **[常见问题](#常见问题)** · **[角色](personas.json)** · **[版本](https://github.com/pierridotite/mobile-agent-testers/releases)**+**[应用实例](docs/examples.zh-CN.md)** · **[对比](docs/compare.md)** · **[常见问题](#常见问题)** · **[角色](personas.json)** · **[参与贡献](CONTRIBUTING.md)** · **[版本](https://github.com/pierridotite/mobile-agent-testers/releases)**[English](README.md) · 简体中文 · [日本語](README.ja.md) · [Español](README.es.md) · [Português](README.pt-BR.md)@@ -177,6 +177,20 @@ gh workflow run agent-testers.yml -f source_repo=you/app -f app_id=com.you.app \它有时会看错屏幕:LocalSend 的 20 个智能体中有 3 个把模拟器的英文键盘当成了应用的一部分。每个智能体只探索几分钟,覆盖主要路径,而不是大型应用的每个角落。每个发现都附带编号截图,提交之前请先核对。+## 参与贡献++以下方向欢迎帮忙。动手前先开一个 issue 说明你要做哪一项,避免两个人做同一件事。[CONTRIBUTING.md](CONTRIBUTING.md) 写明了每一项从哪里入手,以及如何离线测试。++- **其他智能体 CLI**:OpenCode、Codex CLI、Gemini CLI、Goose。工具都是普通脚本,任务是一份 Markdown 说明,所以每个平台只需换一条命令。+- **Web 应用**:用 Playwright 在手机浏览器里跑同样的角色,覆盖 PWA 和移动网站。+- **真实 Android 手机**:在自托管 runner 上通过 adb 连接。+- **新角色**:增强对比度、减弱动态效果、色盲滤镜、慢速或不稳定的网络。+- **把发现变成 issue**:把汇总转成带截图的 GitHub issue 草稿,或发到 Slack、Discord。+- **其他 CI**:GitLab CI、Bitrise、Codemagic。+- **更多构建系统**:NativeScript、Unity、Godot,每种在 `scripts/build/` 里加一个分支。+- **翻译** README 和文档。+- **模型对比**:演示应用里预埋的 11 个 bug 就是一个小基准。做一张表,列出每个模型找到多少、花多少钱。+## 团队托管版(探索中)这里的工作流会一直免费、开源、完整。我正在探索一个面向私有应用团队的托管版:包含 macOS 运行器(在私有仓库里,GitHub 把 macOS 的每一分钟按十分钟计算),以及一个网页面板,方便把报告分享给整个团队,包括产品经理。