~/talk

Unit Test Your Code, Even Your UI!

TalkinFrenchat Droidcon Paris 2015 · 2015-11-09..11-10· [testing]
slides:none on file

Shows how Android Gradle plugin features let unit tests run on the JVM so UI logic can be tested quickly without a device, using Robolectric shadows or small custom adapters in place of Android stubs. Demonstrates an MVP-like split (data provider / presenter / view proxy) to make views mockable, and walks through a tic-tac-toe example with tests for moves, remaining turns and AI; reports prior coverage as low (0.01%) and JVM test run times around 2 seconds.

AI-written summary · about

  1. 0:00Unit test importance
  2. 2:00Unit vs instrumentation tests
  3. 5:29Android unit test setup
  4. 6:52TDD basics example
  5. 7:54TDD class testing
  6. 10:38Android test dependencies
  7. 12:27Mocking TextUtils issues
  8. 15:59Tic-tac-toe TDD testing
  9. 20:59Android activity testing
  10. 24:11MVP for UI tests
  11. 26:18Tic-tac-toe MVP implementation
  12. 30:13Mocking UI components
  13. 32:43Optimizing Android view tests
  14. 33:46Code coverage importance
  15. 35:55Code coverage in Android Studio
  16. 36:16Singleton testing issues
  17. 37:41Mocking singleton alternatives
  18. 38:37Summary and resources
~/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.