~/talk

Fake it till you make it - effective use of test doubles

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [testing]
links:none on file
slides:none on file

Describes concrete unit testing patterns for Android: use stubs, fakes, mocks and dummies to isolate a splash presenter with dependencies (router, view, use case, tracking id), show a fake view that records loading/error state, and use Mockito to stub data providers and verify method calls. Recommends writing simple custom fakes instead of heavy mocking, stresses constructor injection and interfaces, notes Mockito can't mock suspend functions and MockK supports coroutines and static mocking.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Test pyramid and unit tests
  3. 3:02Test doubles in Android
  4. 8:43Types of test doubles
  5. 13:26Mocks vs custom fakes
  6. 19:56Mockito vs MockK
  7. 22:11Testing static properties
  8. 27:59Key takeaways and summary
  9. 30:35Q&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.