Testing Out Kotlin
summary
Kotlin adoption is shown through concrete testing techniques: use Robolectric for unit tests, mock network calls with Mockito, and reserve Espresso for critical UI paths; guideline numbers are ~70% unit tests, ~20% integration tests, rest end-to-end. Examples replace Java boilerplate with extension functions, reified types and inline lambdas; a 14‑line higher‑order helper (a network captor + replay DSL) eliminates repeated ArgumentCaptor code and demonstrably runs in tests inside Android Studio and with Android KTX.
AI-written summary · about
chapters (11)
- 0:00Intro
- 0:40Why Kotlin
- 3:35Kotlin Updates
- 10:22Kotlin Tests
- 13:19Kotlin Extension Functions
- 16:47Finding New Expressions
- 18:02Infix Operator
- 19:28Reified Types
- 22:00HigherOrder APIs
- 25:41Call Syntax
- 31:33Extension Lambda








