skydoves/android-testing-skills/controlling-the-test-clock
Use this skill to drive the Compose test clock by hand with MainTestClock — currentTime, autoAdvance, advanceTimeByFrame, advanceTimeBy(milliseconds, ignoreFrameDuration), and advanceTimeUntil. Explains the 16 ms frame delay used by TestMonotonicFrameClock, the per-frame ordering where withFrameNanos awaiters resume before recomposition, and how the recomposer and MainTestClock share one TestCoroutineScheduler. Covers v1 versus v2 entry-point dispatcher differences (UnconfinedTestDispatcher vs S
Agent skill · version 1.0.0 · from skydoves/android-testing-skills
Install
npx yarkr-cli add skill:skydoves/android-testing-skills/controlling-the-test-clockWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/controlling-the-test-clock
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/controlling-the-test-clockOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/android-testing-skills/controlling-the-test-clockWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.