skydoves/android-testing-skills/testing-animations-deterministically
Use this skill to write non-flaky Compose animation tests by setting mainClock.autoAdvance = false and stepping frames by hand with advanceTimeByFrame and advanceTimeBy(durationMillis). Explains why InfiniteAnimationPolicy cancels indeterminate animations the moment the test starts unless autoAdvance is disabled, why the first frame after a state toggle does not initialize playTime, and why state mutations during the paused-clock window must go through runOnUiThread instead of runOnIdle. If the
Agent skill · version 1.0.0 · from skydoves/android-testing-skills
Install
npx yarkr-cli add skill:skydoves/android-testing-skills/testing-animations-deterministicallyWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/testing-animations-deterministically
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/android-testing-skills/testing-animations-deterministicallyOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/android-testing-skills/testing-animations-deterministicallyWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.