Registry / skydoves

skydoves/android-testing-skills/setting-up-host-vs-device-tests

Use this skill to choose between host (Robolectric/JVM) and device (instrumentation) tests for Jetpack Compose, and to configure each correctly. Covers the `androidHostTest` (a.k.a. `src/test/`) vs `androidDeviceTest` (a.k.a. `src/androidTest/`) source set split, what each flavor can and cannot drive (RenderThread, screenshots, accessibility), the `@RunWith(AndroidJUnit4::class) @Config(minSdk = 23)` setup for Robolectric, and why `Thread.sleep` is forbidden everywhere except screenshot tests wa

Agent skill · version 1.0.0 · from skydoves/android-testing-skills

Install

npx yarkr-cli add skill:skydoves/android-testing-skills/setting-up-host-vs-device-tests

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/setting-up-host-vs-device-tests
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/setting-up-host-vs-device-tests

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/android-testing-skills/setting-up-host-vs-device-tests

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.