Android Unit Test
nwjs/chromium.src
Guide for writing and converting Chromium Android unit tests across host Robolectric (chromejunittests) and on-device (chromepublicunittestapk) suites.
A skill your agent uses to launch, drive, and tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule.
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenario --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .claude/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .claude/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenarioType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenario --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .agents/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .agents/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenario --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .cursor/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .cursor/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/skydoves/android-testing-skills.git --path instrumentation/scenarios/launching-activities-with-activityscenario--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenario --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .gemini/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .gemini/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenarioInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .github/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .github/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install skydoves/android-testing-skills launching-activities-with-activityscenario --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/skydoves/android-testing-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/instrumentation/scenarios/launching-activities-with-activityscenario .opencode/skills/launching-activities-with-activityscenario && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "launching-activities-with-activityscenario" agent skill from https://github.com/skydoves/android-testing-skills/tree/main/instrumentation/scenarios/launching-activities-with-activityscenario into .opencode/skills/launching-activities-with-activityscenario/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "launching-activities-with-activityscenario", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
launching-activities-with-activityscenarioA skill your agent uses to launch, drive, and tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule.
Launching Activities With Activityscenario is an agent skill from skydoves/android-testing-skills. Use this skill to launch, drive, and tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule. Covers ActivityScenario.launch<A(), launch(intent), launchActivityForResult, moveToState(Lifecycle.State.), recreate(), onActivity { }, the Closeable / use { } idiom, and the manifest declaration trap. Establishes that androidx.test.ext.junit.rules.ActivityScenarioRule is the single canonical FQN — androidx.test.rule.ActivityScenarioRule does NOT exist; the…
Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing. It works with Android and JUnit. The repository describes itself as: ⚡️ A set of skills for Android testing: Compose UI, AndroidX Test, JVM unit tests, and ADB. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 8665ed5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin and xml).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
schemas.android.comAlso links to:
developer.android.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Launching Activities With Activityscenario loads about 4.1k tokens when it runs. Until then it costs about 230 tokens; SKILL.md has 1,047 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from skydoves/android-testing-skills at commit 8665ed5, republished under its Apache-2.0 licence (© skydoves). 1,047 words, ~4,059 tokens.
.claude/skills/launching-activities-with-activityscenario/SKILL.md (or your agent's skills folder).ActivityScenario is the modern replacement for the deprecated ActivityTestRule. It provides a thread-safe, lifecycle-aware handle to drive an Activity through CREATED / STARTED / RESUMED / DESTROYED, recreate it for configuration-change emulation, and post work onto its UI thread via onActivity { }. The JUnit4 wrapper ActivityScenarioRule calls launch in before and close in after. This skill encodes the canonical FQN trap, the threading rules, and the manifest requirement.
ActivityTestRule (deprecated) and asks for the replacement.ActivityNotFoundException and the Activity is missing from the test APK manifest.recreate() test "loses" state and the user is debugging remember vs rememberSaveable.onActivity called from the wrong thread).setResult(...) + finish() and wants to read the Activity.RESULT_* back.Settings.Global.ALWAYS_FINISH_ACTIVITIES ("Don't keep activities") as a way to test recreation — ActivityScenario rejects it.../launching-fragments-with-fragmentscenario/SKILL.md.androidx.activity.ComponentActivity for Compose tests — createComposeRule() already wraps the scenario; see ../../../compose/setup/configuring-test-dependencies/SKILL.md.../../runner/running-instrumented-tests-with-androidjunit4/SKILL.md.../../uiautomator/cross-app-tests-with-uiautomator/SKILL.md.../../../compose/setup/setting-up-host-vs-device-tests/SKILL.md.androidTestImplementation("androidx.test:core:1.7.0") for androidx.test.core.app.ActivityScenario.androidTestImplementation("androidx.test.ext:junit:1.3.0") for androidx.test.ext.junit.rules.ActivityScenarioRule.androidTestImplementation("androidx.test:runner:1.7.0") and testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" from the runner skill.src/androidTest/AndroidManifest.xml, src/debug/AndroidManifest.xml, or the production manifest.androidx.test.core.app.ActivityScenario:import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.launchActivity // Kotlin reified extension
// Plain class-based launch
val s1: ActivityScenario<MyActivity> = ActivityScenario.launch(MyActivity::class.java)
// Reified inline (KTX)
val s2 = launchActivity<MyActivity>()
// With explicit intent (extras / data uri / action)
val intent = Intent(ApplicationProvider.getApplicationContext(), MyActivity::class.java)
.putExtra("user_id", 42)
val s3 = ActivityScenario.launch<MyActivity>(intent)
// For activities that call setResult(...) + finish() before reaching RESUMED
val s4 = ActivityScenario.launchActivityForResult(MyActivity::class.java)launch blocks the caller until the Activity reaches RESUMED. launchActivityForResult blocks until the Activity completes — read scenario.result afterwards. Source: androidx.test.core.app.ActivityScenario (per tasks/research/R2-scenario.md lines 48-93).
moveToState(Lifecycle.State.*). Allowed targets: CREATED, STARTED, RESUMED, DESTROYED. DESTROYED is terminal — once reached the scenario cannot move back (lines 100-102 of R2):import androidx.lifecycle.Lifecycle
scenario.moveToState(Lifecycle.State.STARTED) // pause behind another activity
scenario.moveToState(Lifecycle.State.RESUMED) // back to foreground
scenario.moveToState(Lifecycle.State.DESTROYED) // terminal — close() is now a no-opmoveToState cannot be called from the main thread; calling from a @UiThreadTest method or from inside a Looper handler deadlocks because it await(...)s an instrumentation barrier from the test thread (R2 lines 823-828).
recreate() to emulate a configuration change. This runs onSaveInstanceState, destroys the Activity, creates a fresh instance, and runs onRestoreInstanceState. State stored via rememberSaveable / SavedStateHandle / Bundle survives. Plain remember { ... } and bare var fields do not (R2 lines 839-850):scenario.recreate()
scenario.onActivity { activity ->
// activity is now a fresh instance
assertThat(activity.viewModel.count).isEqualTo(2) // survives if hoisted in the ViewModel
}If a test asserts that state survives recreate() and finds it gone, the production code probably uses remember, not rememberSaveable.
onActivity { activity -> }. This block runs on the UI thread, blocks the test thread until done, and is the only legal way to touch fields/views directly:scenario.onActivity { activity ->
activity.findViewById<EditText>(R.id.email).setText("test@example.com")
activity.viewModel.refresh()
}The activity reference is scoped to the lambda. Never store it past the lambda body — recreate() invalidates it, and close() destroys the instance.
To capture data out of the scope, use a holder (R2 lines 649-658):
var captured: MyActivity? = null
scenario.onActivity { captured = it }
val current: MyActivity = captured!!Activity.RESULT_* via scenario.result. Only valid for scenarios launched with launchActivityForResult, and only after the Activity has called setResult(...) + finish():val scenario = ActivityScenario.launchActivityForResult(LoginActivity::class.java)
scenario.onActivity { it.confirmLogin() } // calls setResult(RESULT_OK) + finish()
val result: Instrumentation.ActivityResult = scenario.result
assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK)ActivityScenarioRule JUnit4 wrapper for class-scoped activities. Single canonical FQN — androidx.test.ext.junit.rules.ActivityScenarioRule. The package androidx.test.rule does NOT contain ActivityScenarioRule; it only ships the deprecated ActivityTestRule. This is the most common confusion when migrating (R2 line 490):import androidx.test.ext.junit.rules.ActivityScenarioRule
import org.junit.Rule
@get:Rule
val activityRule = ActivityScenarioRule(LoginActivity::class.java)
@Test
fun loginButtonEnablesAfterEmail() {
activityRule.scenario.onActivity { it.email = "x@y.z" }
// ...
}The rule calls ActivityScenario.launch in before and scenario.close() in after.
@Rule(order = N) ordering with Hilt, place Hilt outermost. Lower numbers evaluate outer first (closest to the test method runs last):@get:Rule(order = 0) val hiltRule = HiltAndroidRule(this)
@get:Rule(order = 1) val activityRule = ActivityScenarioRule(LoginActivity::class.java)ui-test-manifest artifact only contributes androidx.activity.ComponentActivity; custom test activities must be declared by the developer in src/androidTest/AndroidManifest.xml or src/debug/AndroidManifest.xml:<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<activity android:name=".MyTestHostActivity" android:exported="true" />
</application>
</manifest>Without this, ActivityScenario.launch throws ActivityNotFoundException regardless of what is in production. See ../../../compose/setup/configuring-test-dependencies/SKILL.md for the parallel Compose story.
ActivityScenarioRule, JUnit calls close() automatically. When launching ad hoc, use Kotlin use { } (the scenario implements java.io.Closeable) per R2 lines 138-150:ActivityScenario.launch<MyActivity>().use { scenario ->
scenario.onActivity { /* ... */ }
}close() drives the activity to DESTROYED regardless of current state and is idempotent — safe to call after moveToState(DESTROYED) (no-op).
ActivityTestRule (deprecated) vs ActivityScenarioRule// WRONG
import androidx.test.rule.ActivityTestRule
@Rule
public ActivityTestRule<MyActivity> rule = new ActivityTestRule<>(MyActivity.class);
// WRONG because: ActivityTestRule is @Deprecated at rules-1.7.0/.../ActivityTestRule.java:85.
// Its launch is racy with main-thread state, and lifecycle control is ad hoc.// RIGHT
import androidx.test.ext.junit.rules.ActivityScenarioRule
@get:Rule
val rule = ActivityScenarioRule(MyActivity::class.java)ActivityScenarioRule import path (the FQN trap)// WRONG
import androidx.test.rule.ActivityScenarioRule // class does not exist!
// WRONG because: androidx.test:rules ships only the deprecated ActivityTestRule, not
// ActivityScenarioRule. The IDE auto-completes neither — the import is unresolved.// RIGHT
import androidx.test.ext.junit.rules.ActivityScenarioRule
// Lives in androidx.test.ext:junit. This is the SINGLE canonical FQN.launch / moveToState from the main thread// WRONG
@Test @UiThreadTest
fun launchOnUiThread() {
val scenario = ActivityScenario.launch(MyActivity::class.java) // deadlocks
}
// WRONG because: launch / moveToState / onActivity / close all await an instrumentation
// barrier on the test thread. From the UI thread the barrier never fires (R2 lines 823-828).// RIGHT
@Test
fun launchFromTestThread() {
val scenario = ActivityScenario.launch(MyActivity::class.java)
scenario.onActivity { activity ->
// UI-thread work goes here, NOT a recursive moveToState/launch
}
}// WRONG
var leaked: MyActivity? = null
scenario.onActivity { leaked = it }
scenario.recreate()
leaked!!.someField // stale reference; underlying instance is gone// RIGHT
scenario.onActivity { activity ->
activity.someField = "new value"
}
// or: re-acquire after recreate()
scenario.recreate()
scenario.onActivity { activity ->
assertThat(activity.someField).isEqualTo("new value (restored from saved state)")
}// WRONG
// Toggle Settings.Global.ALWAYS_FINISH_ACTIVITIES to force recreation between activities.
// WRONG because: ActivityScenario does not honor "Don't keep activities" — its barrier
// model expects deterministic transitions. Use scenario.recreate() instead.// RIGHT
scenario.recreate() // deterministic onSaveInstanceState → destroy → create → onRestoreInstanceStateActivityScenarioRule from androidx.test.ext.junit.rules. The package androidx.test.rule does NOT contain it.ActivityTestRule for new tests — it is @Deprecated. The lint and codemods replace it.ActivityScenario.launch, moveToState, or close from the main thread. They block on an instrumentation barrier that only fires off the UI thread.activity reference returned by onActivity past the lambda body. recreate() and close() invalidate it.Settings.Global.ALWAYS_FINISH_ACTIVITIES to force recreation — ActivityScenario rejects it. Use scenario.recreate().src/androidTest/AndroidManifest.xml or src/debug/AndroidManifest.xml. The ui-test-manifest artifact only contributes androidx.activity.ComponentActivity.moveToState(Lifecycle.State.DESTROYED) or close() (or use ActivityScenarioRule, which does it automatically) — leaks confuse subsequent tests.ActivityScenarioRule for class-scoped Activity tests; use ActivityScenario.launch(...).use { } for tests that need fine-grained launch timing.@get:Rule(order = 0) for Hilt and order = 1 (or higher) for ActivityScenarioRule so Hilt installs before the Activity is launched.grep -r "androidx.test.rule.ActivityScenarioRule" src/ returns nothing — only androidx.test.ext.junit.rules.ActivityScenarioRule is imported.grep -r "ActivityTestRule" src/ returns nothing for new code.src/androidTest/AndroidManifest.xml or src/debug/AndroidManifest.xml.scenario.recreate() use rememberSaveable / SavedStateHandle / onSaveInstanceState-backed state for anything that should survive.@UiThreadTest method calls launch / moveToState / close directly../gradlew :<module>:connectedDebugAndroidTest runs without ActivityNotFoundException or Cannot run onActivity since Activity is not alive.Activity.RESULT_* use launchActivityForResult (not plain launch).androidx.test.core.app.ActivityScenario — launch, launchActivityForResult, moveToState, recreate, onActivity, state, result, close. See tasks/research/R2-scenario.md lines 48-160.junit-1.3.0/androidx/test/ext/junit/rules/ActivityScenarioRule.java — the canonical JUnit4 wrapper.rules-1.7.0/androidx/test/rule/ActivityTestRule.java lines 85-86 — @Deprecated; the deprecation Javadoc explicitly redirects to ActivityScenario.tasks/research/R2-scenario.md — full ActivityScenario + FragmentScenario report. Lines 813-919 enumerate every common pitfall (main-thread launch, DESTROYED terminal, recreate() + remember, etc.).docs/CORPUS.md Section H.3 — ActivityScenario API surface and JUnit4 wrapper FQN.tasks/research/R1-androidx-test-core.md lines 477-535 — the dual-ActivityScenarioRule confusion and the canonical FQN.© skydoves, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in instrumentation/scenarios/launching-activities-with-activityscenario of skydoves/android-testing-skills.
Open the folder on GitHubat commit 8665ed5
Launching Activities With Activityscenario next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Launching Activities With Activityscenario this skillskydoves/android-testing-skills | 334 | — | ~4.1k | Automated safety check: Pass | Apache-2.0 | |
| Android Unit Testnwjs/chromium.src | 160 | — | ~1.8k | Automated safety check: Pass | BSD-3-Clause | |
| Debug Playwright Prowquay/quay | 2.8k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Testing SkillTypeCellOS/BlockNote | 10k | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Mesh Labpermissionlesstech/bitchat-android | 7.8k | — | ~2.9k | Automated safety check: Pass | GPL-3.0 | |
| Quay Prow Triagequay/quay | 2.8k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 |
nwjs/chromium.src
Guide for writing and converting Chromium Android unit tests across host Robolectric (chromejunittests) and on-device (chromepublicunittestapk) suites.
quay/quay
Deep-dive diagnosis of a Playwright test failure already isolated to one Quay Prow/OpenShift CI run: downloads its GCS artifacts (results.json, JUnit, build/pod logs, Jaeger traces), classifies real…
TypeCellOS/BlockNote
Instructions for writing, running, and updating unit/end-to-end tests.
permissionlesstech/bitchat-android
Run, diagnose, and extend bitchat Android Mesh Lab physical-device tests.
quay/quay
Diagnose any Quay Prow job failure end to end: prowjob.json - top-level build log - JUnit - resolved failing step - Playwright results.json when the failing step is Playwright, continuing through…
shopware/shopware-cli
Use Shopware CLI for Shopware project, extension, and account workflows — create and install new projects (project create, project dev install), validate projects or extensions (with…
skydoves/android-testing-skills
A skill your agent uses to verify Compose layout measurements from a UI test using assertWidthIsEqualTo, assertHeightIsEqualTo, assertWidthIsAtLeast, assertHeightIsAtLeast…
skydoves/android-testing-skills
A skill your agent uses to verify a Compose semantics node's properties from a UI test using assertExists, assertDoesNotExist, assertIsDisplayed, assertIsNotDisplayed, assertIsDeactivated…
skydoves/android-testing-skills
A skill your agent uses to render every Jetpack Compose @Preview as a screenshot on a real Android device or emulator and publish a browsable HTML catalog from CI.
skydoves/android-testing-skills
A skill your agent uses to capture visual artefacts from a device for test failures, golden image generation, QA repro, and demo videos.
skydoves/android-testing-skills
A skill your agent uses to pick the correct Compose UI test entry point.
skydoves/android-testing-skills
A skill your agent uses to pick which behaviors to cover in an Android test suite using Google's five-category state vocabulary plus the explicit "what NOT to test" list from…
Categories
A skill your agent uses to launch, drive, and tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule. Launching Activities With Activityscenario is an agent skill from skydoves/android-testing-skills. Use this skill to launch, drive, and tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule.
Launching Activities With Activityscenario fits situations like: tear down an Activity from an instrumentation test using ActivityScenario and the JUnit4 wrapper ActivityScenarioRule; the user reports ActivityNotFoundException; activityTestRule deprecated; how do I rotate the activity in a test.
Run `npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a claude-code`. Or copy the skill folder (instrumentation/scenarios/launching-activities-with-activityscenario in skydoves/android-testing-skills) into .claude/skills/launching-activities-with-activityscenario in your project. Claude Code loads it when a task matches its description.
Run `npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a codex`. Or copy the skill folder (instrumentation/scenarios/launching-activities-with-activityscenario in skydoves/android-testing-skills) into .agents/skills/launching-activities-with-activityscenario in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add skydoves/android-testing-skills --skill launching-activities-with-activityscenario -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/launching-activities-with-activityscenario, .gemini/skills/launching-activities-with-activityscenario, .github/skills/launching-activities-with-activityscenario and .opencode/skills/launching-activities-with-activityscenario in your project.
SKILL.md names no scripts, command-line tools or credentials: Launching Activities With Activityscenario is instructions for the agent only.
SKILL.md names 2 domains. In commands or code: schemas.android.com; the agent is likely to contact it when it follows the instructions. As links in the text: developer.android.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Launching Activities With Activityscenario is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Launching Activities With Activityscenario: Android Unit Test (nwjs/chromium.src, 160 stars), Debug Playwright Prow (quay/quay, 2.8k stars), Testing Skill (TypeCellOS/BlockNote, 10k stars) and Mesh Lab (permissionlesstech/bitchat-android, 7.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
skydoves (a GitHub user) maintains it in skydoves/android-testing-skills, which has 334 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on May 25, 2026.
Source: skydoves/android-testing-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.