~/talk

Nitrogen in your (test) pyramid.

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [testing, android]
slides:none on file

Shows a concrete way to run the same Espresso UI tests on the JVM and in CI by adding the instrumentation test sources to the unit-test source set and using Robolectric 4.0 + androidx.test 1.0.0 so Espresso, ActivityScenario and ApplicationProvider work in JVM runs. Uses MockWebServer stubs, Truth assertions and Gradle scripts or JUnit categories to handle many build variants. It mostly works but Robolectric still fails on async/reactive flows, FragmentManager transactions and some custom views, and test-reporting/debugging require extra setup. Project Nitrogen is the unifying goal.

AI-written summary · about

  1. 0:00Introduction and legacy code challenge
  2. 3:03Test pyramid structure explained
  3. 6:12Android test library overview
  4. 10:51Unified testing with Robolectric
  5. 13:03Live code demo setup
  6. 18:54Running tests in CI with Robolectric
  7. 21:02Handling build variants in tests
  8. 23:30Robolectric limitations and fixes
  9. 24:54Future of unified testing
~/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.