~/talk

Testing Out Kotlin

Talkat DevFest Nantes 2018 · 2018-10-18..10-19· [kotlin, testing]
slides:none on file

Shows concrete test conversions from Java to Kotlin with code samples and tools: Robolectric shadow access, Espresso for E2E, Mockito and mockito-kotlin for mocks, Android Studio/IntelliJ support. Demonstrates extension functions and properties, infix assertions like should have title, reified generics used to implement setupActivity and a compact networkCaptor, and extension-lambda based replay helpers. Quantifies testing guidance (about 70% unit, 20% integration, 10% end-to-end) and reports reducing verbose captor boilerplate down to ~18 and ~14 line implementations.

AI-written summary · about

  1. 0:00Start
  2. 2:59Types of Tests
  3. 4:11Integration Tests
  4. 5:05End-to-End Tests
  5. 7:27Accessing Getters and Setters
  6. 8:19Extension Functions and Extension Properties
  7. 9:12Extension Properties
  8. 11:44Add an Assertion
  9. 12:12Fluent Assertion
  10. 12:58Kotlin Supports in Fixed Calls
  11. 14:43Setup Activity
  12. 16:34Lambdas
  13. 20:11Cleaned Up Api
  14. 20:45Type Alias
  15. 21:42Extension Lambda
  16. 23:22Extension Lambdas
~/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.