Introduction to Marble Testing Rx (Web, iOS, Android)
summary
Shows how to use marble testing with Rx (Web, iOS, Android) to drive and assert time-dependent reactive flows inside a ViewModel without full end-to-end runs. Uses a virtual-time scheduler and marble strings mapped to values to simulate debounce (500 ms), service response timing, and switchMap cancellation in a sample weather app so tests can verify loading/error states and catch race conditions.
AI-written summary · about
chapters (10)
- 0:00Reactive programming choice
- 2:30Rx debugging challenges
- 3:52Weather app with Rx
- 6:59Marble diagrams demo
- 8:46Marble Testing principles
- 9:27Unit test setup
- 11:57Testing complex cases
- 13:41Marble Testing advantages
- 14:23Multi-platform Marble Testing
- 15:26Marble Testing future
related talks
44mJust Another Marble Monday – Unit Testing NGRX/RxJS w/Marbles
27mTesting RxJs observables effectively
32mVenturing Into the world of RxSwift unit testing
35mTesting Android Apps Based on Dagger and RxJava
27mUnderstanding High Order Observables
22mBuilding Responsive Applications with RxKotlin
38mCuring your event processing blues with Rx
39mPractical TDD for Android
