skydoves/android-testing-skills/using-robolectric-correctly
Use this skill to run Android-aware unit tests on the JVM with Robolectric — the right runner choice (AndroidJUnit4 vs RobolectricTestRunner), @Config sdk/qualifiers/application, the includeAndroidResources requirement, common shadows (ShadowApplication, ShadowLog, ShadowLooper, ShadowPackageManager, ShadowSystemClock), looper draining (shadowOf(Looper.getMainLooper()).idle()), and when NOT to reach for Robolectric (screenshot tests, RenderThread, accessibility services). Also covers the AGP 7.2
Agent skill · version 1.0.0 · from skydoves/android-testing-skills
Install
npx yarkr-cli add skill:skydoves/android-testing-skills/using-robolectric-correctlyWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/using-robolectric-correctly
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/using-robolectric-correctlyOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/android-testing-skills/using-robolectric-correctlyWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.