writing-espresso-tests
CommunityWrite reliable Espresso View tests fast
Software Engineering#dialogs#espresso#idlingresource#instrumentation tests#android views#recyclerViewActions#intent stubbing
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Espresso View UI tests often fail with missing/ambiguous matchers, ineffective actions, or flaky timing when dialogs, RecyclerView items, intents, or background work are involved.
Core Features & Use Cases
- Find, act, and assert with the correct Espresso primitives: use
onView(matcher).perform(action).check(matches(...))with the proper matcher/action/assertion catalog for Android Views. - Handle the common failure traps: apply
inRoot(isDialog())/inRoot(isPlatformPopup())for dialogs and popups, select the correct RecyclerView and AdapterView interaction patterns (RecyclerViewActions,onData), and stub/verify intents withIntentslifecycle. - Make async work deterministic: register and manage
IdlingResource(including correctimplementationusage), configure idling timeouts, and avoidThread.sleep.
Quick Start
Ask the AI to generate an Espresso 3.7.0 instrumentation test for an Android Views screen that clicks a dialog button, interacts with a RecyclerView row, stubs an outbound camera intent, and uses an IdlingResource to wait for non-UI async work.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: writing-espresso-tests Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#writing-espresso-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.