Setup & Installation
What This Skill Does
Generates Espresso UI test code for Android apps in Kotlin or Java. Covers view matching, actions, assertions, idling resources, and RecyclerView patterns. Tests can run on a local emulator or on real devices through TestMu AI's cloud integration with LambdaTest.
Espresso's API has plenty of gotchas like missing closeSoftKeyboard() calls or reaching for Thread.sleep() instead of IdlingResources, so having correct patterns generated from the start cuts out a lot of debugging.
When to use it
- Writing login flow tests with text input and error state checks
- Testing RecyclerView item clicks and scroll behavior
- Running Espresso suites on real cloud devices via LambdaTest
- Setting up IdlingResources for async network calls instead of Thread.sleep
- Stubbing and verifying Android intents in instrumentation tests