~/talk

Testable Android Architecture

Talkat droidcon NYC 2016 · 2016-09-29..09-30· [android, testing]
github:ecgreb
slides:none on file

A modified MVP architecture called MVPC separates Android‑dependent code (activities, system services, lifecycle) from pure logic and data so presenters run as plain JVM classes and survive config changes by re‑registering with new controllers; unit tests use JUnit + Mockito to swap out a network interface (the demo sleeps 2s but tests mock it), view tests run on Robolectric, async work uses Thread whose run method is invoked synchronously in tests, and the sample trims a generated 700‑line activity down to ~95 lines.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:22Evolution of Android testing
  3. 4:30Problems with activity-centric apps
  4. 9:22Clean architecture approach
  5. 14:25Separating Android and non-Android code
  6. 18:18Testing Android vs non-Android parts
  7. 21:19Code walkthrough and demo
  8. 33:54Q&A session
~/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.