~/talk

The real face of functional testing

Talkat droidcon Berlin 2015 · 2015-06-15..06-17· [testing, developer-experience]
links:none on file
slides:none on file

Shows concrete test patterns for a real production app that queries the GitHub API and uses location and social logins, replacing network and GPS with test modules that return a prepared Observable<User> and a fixed location. Uses Espresso for UI interactions, Dagger 2 to swap modules, and Retrofit + RxJava for async stubs. Demonstrates replacing Facebook login with a test button, a 10s sleep workaround for flakiness, pressing back six times to tear down activities, and running on Travis CI for CI validation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52What is Espresso
  3. 3:44Abstracting test code
  4. 5:33Testing REST clients
  5. 8:05Mocking GPS and services
  6. 9:29Testing third-party login
  7. 11:15Demo app overview
  8. 13:45First functional test
  9. 19:05Debugging failing test
  10. 21:13Test modules for speed
  11. 27:01Testing error conditions
  12. 29:50Espresso pitfalls
  13. 31:41Custom matchers
  14. 32:43Key takeaways
  15. 34:13Closing remarks
~/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.