一键导入
android-testing
Android testing strategies covering unit tests, instrumented tests, UI tests with Compose, and integration testing for Tauri mobile apps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Android testing strategies covering unit tests, instrumented tests, UI tests with Compose, and integration testing for Tauri mobile apps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Continuously improves the project by checking docs (web, Context7, opencode), using LSPs for code context, monitoring skills/plugins/scripts, and adapting best practices.
Continuity management — preserves context, maintains thermal maps, and serializes states across sessions
Read diffs carefully, identify risks, and produce review feedback that is specific and actionable.
Write accurate docs, keep references current, and capture verified behavior only.
Branching, rebasing, commit hygiene, and review-friendly history for agency delivery.
Use the language server for precise navigation, symbol lookup, refactoring, and diagnostics.
| name | android-testing |
| displayName | Android Testing |
| description | Android testing strategies covering unit tests, instrumented tests, UI tests with Compose, and integration testing for Tauri mobile apps. |
| category | mobile |
| tags | ["android","testing","unit-test","instrumented-test","compose-test"] |
| agents | ["android-kotlin","mobile-qa"] |
| toolkit_refs | ["gradle","mobile"] |
src/test/)@Test
fun `given valid input, when login called, then returns success`() {
// Given
val mockRepo = mockk<AuthRepository>()
every { mockRepo.login(any()) } returns Result.success(User("test"))
// When
val result = LoginUseCase(mockRepo)("user", "pass")
// Then
assertTrue(result.isSuccess)
}
src/androidTest/)gradle MCP → :app:connectedCheck@RunWith(AndroidJUnit4::class)
class LoginScreenTest {
@get:Rule val composeTestRule = createComposeRule()
@Test
fun `displays error on invalid login`() {
composeTestRule.setContent { LoginScreen(viewModel = mockViewModel()) }
composeTestRule.onNodeWithText("Login").performClick()
composeTestRule.onNodeWithText("Invalid credentials").assertIsDisplayed()
}
}
Invoke handler mappings match Rust commandsrun_task with :app:testDebugUnitTestrun_task with :app:connectedDebugAndroidTestrun_task with :app:testCoverageinstall_app + launch_appscreenshot at each test stepcapture_ui_hierarchy