JUnit 5 Testing: Android Unidirectional Data Flow with LiveData

Droidcon SF 2019 | JUnit 5 Testing: Android Unidirectional Data Flow with LiveData | Adam Hurwitz
Course info
Level
Intermediate
Updated
Dec 19, 2019
Duration
32m
Table of contents
JUnit 5 Testing: Android Unidirectional Data Flow with LiveData
Description
Course info
Level
Intermediate
Updated
Dec 19, 2019
Duration
32m
Description

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.

About the author
About the author

droidcon SF is where the industry's leading Android experts converge to support the Android platform and create a strong network for developers and companies.

More from the author
Machine Learning on Android Demystified
Intermediate
39m
Dec 20, 2019
More courses by droidcon SF