Testing Android Apps Based on Dagger and RxJava
summary
Shows how to test an Android app built with Dagger, Retrofit and RxJava by running most tests on the JVM and minimizing boilerplate. Concrete examples include JVM unit tests that replace Dagger modules, Espresso UI tests that swap components, and use of the DaggerMock rule to create test modules; tests use Mockito, Espresso, and custom RxJava scheduler rules to make asynchronous Single/flatMap behavior deterministic and verify UI and presenter interactions reliably.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:43Demo app architecture
- 4:40Testing Dagger & RxJava
- 8:01Unit tests with Mockito & Espresso
- 15:03RxJava schedulers in tests
- 22:18Presenter-interactor tests
- 26:19Testing RxJava operators
- 31:34Advanced testing with TrampolineScheduler
- 34:22Summary








