RxJava: Where did my exception go?

Dmitry Si
2 min readNov 23, 2019

RxJava in the unit-tests can swallow the exception which would crash the real Android app. Here is how to fix the tests.

Suppose we’re using RxJava in our Android app, and we cover it with unit-tests. Does it mean the same code that passes the test won’t crash the app in production on the same input data? No! But why?

Dmitry Si

Software developer. Most recently Android Java/Kotlin engineer. Former manager, desktop and embedded software creator. https://github.com/fo2rist/