Рет қаралды 4,048
Learn Android Unit Testing - In this video, learn how to unit test Kotlin Flows with simple examples. Learn how to use terminal operators like toList(), first(), take() in Kotlin Flows to unit test flows in Kotlin. Learn how to use Turbine Library for testing Kotlin Flows.
This video covers - unit testing Room Database that returns a Flow object. Learn how to use awaitItem() in Turbine. Using awaitItem() to read values from Kotlin Flows and write test cases based on this value.
Writing test cases for Flows that are infinite becomes easier with Turbine. You can just use awaitItem method to read the Flow elements and write tests based on that. Learn unit testing in Android with simple examples in Kotlin Hindi. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Testing simple kotlin flows using Terminal Operator
2. Flows toList(), first() operator for unit testing
3. Turbine Library for Testing Kotlin Flows
4. awaitItem(), cancel(), test extension method
5. Room Database with Flows - Unit Testing Example
Kotlin Flows Playlist -
• Kotlin Flows Tutorials
Jetpack Paging Tutorial -
• Android Paging 3 | Jet...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode