Session

Local Unit Testing: Android Unidirectional Data Flow with LiveData

Beginning to test the Coinverse app from scratch was daunting at first. Where do I begin between testing the UI and business logic? How do I handle components that work with the network responses, databases, and analytics? After modularizing the app using Android's Unidirectional Data Flow (UDF) and LiveData, writing local unit tests for the business logic became simpler. This talk covers how to use the UDF pattern with LiveData in Kotlin in order to write Junit 5 tests with MockK.

Sample Code - github.com/AdamSHurwitz/Coinverse
Google Play - bit.ly/play-coin

Adam Hurwitz

Android Consultant and Coinverse Creator

View Speaker Profile

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top