~/talk

How Espresso Works

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [testing, android]
links:none on file
slides:none on file

Explains Espresso 3.0 internals: matchers use Hamcrest, onView builds a Dagger 2-backed ViewInteraction with a UIController and ViewFinder, and calling onView alone does nothing so always follow with check or perform. Espresso waits by looping the main thread and reflectively dispatching queued messages until idling resources (registered via IdlingRegistry) and async tasks are idle, avoiding sleeps; ActivityTestRule launches activities via Instrumentation with a background-thread timeout (~45s).

AI-written summary · about

  1. 0:00Introduction to Espresso
  2. 1:37Breaking down Espresso assertions
  3. 6:33How onView creates ViewInteraction
  4. 10:54How check executes on UI thread
  5. 22:31Finding views in view hierarchy
  6. 26:00View assertions and matchers
  7. 30:38Launching activities in tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.