~/talk

Testing with Kotlin

Talkat Mobilization 8 · on Friday, 2018-10-26· [kotlin, testing]
links:none on file
slides:none on file

Shows concrete recipes: uses JUnit 5 indexes arguments from 1 to explain parameterized-test differences, replaces JUnit runners with KotlinTest/Kotest StringSpec and Spek for readable output, and swaps Mockito for MockK supports multiplatform or mockito-kotlin extensions. Builds test helpers: factory methods with default args to avoid tedious DI constructors, an extension to invoke ViewModel cleanup (onCleared) in unit tests, and a robot abstraction records rendered view states in order to verify MVI chat flows end-to-end. Examples live in the repo.

AI-written summary · about

  1. 0:00Intro
  2. 1:28Use cases
  3. 2:44Parametrize test
  4. 5:58Coding test
  5. 7:52Spec framework
  6. 9:22Mockito
  7. 10:34Mockito extensions
  8. 12:07Final thoughts
  9. 15:13Model View Presenter
  10. 17:08Model View Model
  11. 19:21Model View Intent
  12. 20:35Model View Robot
  13. 21:19Model View Intent specification
  14. 22:28Why spec
  15. 23:35Example
  16. 24:36Annotations
  17. 29:29What testing
~/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.