RxJava: Where did my exception go?

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?

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TrainerDay + Wahoo Elemnt

Player cocks 3 years with wrong setups of his graphics card — a switch causes all troubles

Symfony Station Communiqué — 18 March 2022. A look at Symfony and PHP news!

Code logo

Creating a simple notification service by RabbitMq & Webflux

Virtual Background with AWS Chime and Body Pix

Using Slackbot for reasons other than pranking your team

Bugs Make You a Better Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dmitry Si

Dmitry Si

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

More from Medium

Lost in Java Time with Android

Using Secrets in Circle Ci and Local

Migration of ROOM DB using Auto Migrations

Why Android developer ❤ to use Kotlin as a main language besides Java?