Skip to content
skillcellar
All skills

choosing-test-rule-vs-runtest

Indexed

Use this skill to pick the correct Compose UI test entry point. Compares `createComposeRule()`, `createAndroidComposeRule<A>()`, `createEmptyComposeRule()`, `runComposeUiTest { }`, and `runAndroidComposeUiTest<A> { }`, plus the v1 vs v2 split (`UnconfinedTestDispatcher` vs `StandardTestDispatcher`). Encodes the rule that mixing `runComposeUiTest { }` and a `ComposeTestRule` in the same test is forbidden, that `setContent` may only run once, and that `createEmptyComposeRule()` returns `ComposeTestRule` (no `setContent`). Use when the user asks "ComposeTestRule vs ComposeUiTest", reports `IllegalStateException: setContent can only be called once`, mentions `runComposeUiTest`, the v2 deprecation warning, `effectContext`, custom `ComponentActivity`, or "host tests need a coroutine scope".

skydoves/android-testing-skills/compose/setup/choosing-test-rule-vs-runtest351 starsApache-2.0Last pushed 25 May 2026No findings
Indexed automatically from public GitHub, not reviewed. This page shows what the skill’s SKILL.md says about itself and what the scan flagged in it. It cannot show that the skill is safe. Read its files on GitHub before you install it.

Install

install

$ npx skills add https://github.com/skydoves/android-testing-skills --skill choosing-test-rule-vs-runtest

The skills CLI downloads the skill from GitHub when you run the command, so what you get may have changed since the scan.

Scan

The scan flagged nothing in SKILL.md when it was last read. It doesn’t read the skill’s other files, and a clean scan doesn’t prove a skill is safe.

Copies

No other indexed repository has this exact folder.