Use this skill to pick the correct Compose UI test entry point. Compares createComposeRule(), createAndroidComposeRule (), createEmptyComposeRule(), runComposeUiTest { }, and runAndroidComposeUiTest { }, 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".
Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI
Supported by the Atlas install prompt. Skill-specific requirements vary.
Skill stats
Skills1CategoryEngineeringStars0
About this skill
Use this skill to pick the correct Compose UI test entry point. Compares createComposeRule(), createAndroidComposeRule (), createEmptyComposeRule(), runComposeUiTest { }, and runAndroidComposeUiTest { }, 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".
Quick start
Copy the install prompt. Use the green button above this README.
Send it to your agent. Paste it into your coding agent’s chat and send.
Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
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".
About this listing
Category
Engineering
Reported license
Apache-2.0
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.