Testing Retrofit & OkHttp with MockWebServer — From Setup to Network-Condition Simulation
The first time I had a production bug in a Retrofit API client — a header missing on one endpoint — I checked our tests and realized we we...
All posts / Category
Unit tests, UI tests, coroutine tests, and testing strategies for Android
The first time I had a production bug in a Retrofit API client — a header missing on one endpoint — I checked our tests and realized we we...
A Room migration that worked on my emulator and crashed for 12% of users is why I wrote this. Manual testing covers three scenarios; a 60-line test fi...
Testing async code is hard — coroutines run on dispatchers, Flows emit over time, one missing advanceUntilIdle can silently skip half the test. ...
The semantics tree is what tests see — not pixels. This complete guide covers Compose UI testing from zero to production: createComposeRule setu...
Unit tests catch bugs before users do. This guide walks through the core mindset, setup with JUnit 5, MockK, Turbine, and coroutines-test, and how to ...