July 2022
Intermediate to advanced
164 pages
3h 8m
English
In the previous chapter, we focused on understanding Kotlin Flow cancellation, learning how to make Flows cancellable, and handling the cancellation. We also learned about retrying tasks with Flows and handling completion and exceptions in your Flows.
Adding tests for the Kotlin Flows in your code is an important part of app development. Tests will ensure that the Flows we add to our projects are free of bugs or errors and that they will work as we intended. They can make developing apps easier and help you refactor and maintain your code confidently.
In this chapter, we will learn how to test Kotlin Flows in Android. First, we will understand how to set up your Android project for testing Flows. We will then ...
Read now
Unlock full access