Android Testing

Android Testing is a skill for Claude Code, Codex from niels-emmer/myace. It costs 23 tokens per session (326 once invoked), scanned A, original, MIT.

A testing guide for Android apps, covering fast code tests, user-interface tests, screenshot comparisons, database tests, and tests for older XML-based screens.

In plain words
What is it for?
Use it to test ViewModels, repositories, Compose screens, legacy views, Room database queries and migrations, and coroutine-based code.
Why use it?
It helps choose an appropriate test type for each part of an Android app and catches both behavior and visual regressions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/niels-emmer/myace/android-testing
Any agent
npx skills add niels-emmer/myace --skill android-testing
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Android Testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/android-testing.svg)](https://agentmods.dev/skills/niels-emmer/myace/android-testing)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/android-testing"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/android-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 326 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00326
Opus 5 $0.00012 $0.00163
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00002 $0.00033

Measured 5d ago against content hash 0398e8e5ab00, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Android Testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

collections/additional/android-developer/skills/android-testing/SKILL.md · 25 lines

What it actually says

Purpose

Test Android apps at the right level — fast unit tests for ViewModels, UI tests for critical flows.

Checklist

  • Unit tests (JUnit + Robolectric): test ViewModels, repositories, and data transformation logic. Robolectric simulates the Android framework for fast test execution.
  • Compose UI tests: use ComposeTestRule to test composable rendering and interaction. Cover default, empty, and error states.
  • Screenshot tests: use Paparazzi or equivalent for Compose screenshot testing. Catch visual regressions.
  • Espresso tests: for legacy XML-based UI. Don't use for new Compose UI.
  • Room DAO tests: use an in-memory Room database instance. Test queries, migrations, and type converters.
  • Test independence: each test sets up its own state. Use StandardTestDispatcher/UnconfinedTestDispatcher (kotlinx-coroutines-test) for coroutine-based code.

Expected output

A test suite where ViewModels are unit-tested with Robolectric, Compose UI is screenshot-tested, and Room DAOs are integration-tested against an in-memory database.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 25 lines · 23 tokens per session scan A 0398e8e5ab00

Subscribe to this mod's changes

Android Testing is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 4d ago), licensed MIT. It adds 23 tokens to every session and 326 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

test-flutter

Flutter App のテスト実行・静的解析・フォーマット・テスト記述ガイド.

K9i-0/ccpocket · 26 tokens

ios-testing

Testing patterns for Swift and SwiftUI apps.

TalissonVitorino/kmp-ios-skills · 69 tokens

mobile-testing

Android and JVM testing - JUnit5, MockK, Turbine for Flow, and Compose UI testing for unit, integration, and UI tests; also applies to KMP commonTest running on the JVM/Android target. For iOS/Swift tests (XCTest, Swift Testing, XCUITest) use ios-testing. For TDD methodology and the three-tier test model (fake-first…

TalissonVitorino/kmp-ios-skills · 102 tokens

flutter-testing

Flutter + NestJS 多区域项目测试规范 — Flutter 单元测试(Notifier/Provider + ProviderContainer override)、widget 测试、golden 测试、★ flavor 条件编译测试(cn 不含 Firebase / overseas 不含 JPush 的静态与运行时验证)、多租户隔离测试、AI 扣费 refund 测试、NestJS service 单测(mock Prisma)、e2e(supertest + 测试库)、mocktail/jest mock 约定、覆盖率门禁。.

lh17708357536-gif/flutter-cn-overseas-app-skills · 114 tokens

test-software

Design, implement, and evaluate risk-based software tests across unit, integration, contract, end-to-end, and regression layers. Use when adding tests, reproducing bugs, improving coverage, diagnosing flaky tests, or defining a test strategy; do not use to change production behavior unless the user also requests…

Phelan164/codex-howto · 65 tokens

android-testing

Android testing for AI agents. Use this skill whenever writing unit tests, integration tests, UI tests, ViewModel tests, Repository tests, DAO tests, Compose UI tests, Hilt testing, @HiltAndroidTest, TestCoroutineDispatcher, runTest, turbine Flow testing, MockK, Mockito, FakeRepository, Robolectric, Espresso, Compose…

piyushverma0/android-agent-skills · 120 tokens