JUnit 5 Testing: Android Unidirectional Data Flow with LiveData
Droidcon SF 2019 | JUnit 5 Testing: Android Unidirectional Data Flow with LiveData | Adam Hurwitz
What you'll learn
Beginning to test the Coinverse app from scratch was daunting at first. You may ask a number of questions. Where do you begin between testing the UI and business logic? How do you 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. In this talk, Adam Hurwitz discusses how to use the UDF pattern with LiveData in Kotlin in order to write JUnit 5 tests with MockK.