Rahul Pahuja, I recommend getting started with unit testing for your app's business logic, mainly the ViewModel using JUnit 5 testing. There’s a lot of great talks from Danny Preussler and Philipp Hauer I’d recommend included in my notes.

I also outlined my unit testing process in Android Unidirectional Data Flow — Local Unit Testing with MockK, JUnit 5, and AssertJ. It’s due for a refresh now that it can be refactored from LiveData to StateFlow.



Open Sourcer

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