~/talk

Android Testing

Talkat Android Dev Summit 2015 · on Monday, 2015-11-23· [testing]
links:none on file
links:none on file
slides:none on file

A sample note-taking app is built with MVP and two Gradle flavors (prod and mock flavor) so tests run hermetically by swapping real services for in-memory or file-backed fakes. Fast local unit tests use the Mockable Android Jar, UI tests use Espresso with ActivityTestRule, and a performance harness captures dumpsys, Logcat and Systrace per test. Running the harness surfaces a glaring regression — 91% janky frames on one scenario.

AI-written summary · about

  1. 0:00Intro
  2. 1:26Meet your testing tools
  3. 3:35Notes app
  4. 7:02Isolate from external dependencies
  5. 8:06Choose flavors prod/mock
  6. 8:48Gradle tasks
  7. 15:03Mockable Android Jar
  8. 17:05Run from Gradle
  9. 17:19Test-driven development
  10. 18:57Run on device/ emulator
  11. 24:21Add note feature
  12. 24:42Anatomy of a UI test
  13. 26:09Add note screen test
  14. 29:53Go green
  15. 33:11Perf Testing Harness
  16. 33:54Custom Test Rules
  17. 35:00Running the harness
  18. 35:32Test output
~/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.