Learn Android Unit Testing - In this video, learn how to use HILT to create test objects in unit testing android components. HILT provides great support for injecting test objects. Whenever test objects are required, we can use HILT to inject these objects in our test cases. Although HILT or any other DI framework is not required for Unit testing but having a dependency injection framework in place definitely helps. You can have loosely coupled classes that can be replaced using DI frameworks. You can inject mock implementation or fake implementation for unit test cases.
Learn how to define Custom Runner for HILT Testing in Android, how to use HILT for Room Database Testing in an example app. Learn how to use HiltAndroidRule for injecting fields marked with @Inject. Learn how to use @TestInstallIn in Hilt.
Learn unit testing in Android with simple examples in Kotlin Hindi. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Complete MVVM Architecture Example Walkthrough
2. HILT Testing Complete Example
3. TestInstallIn (components and replaces attribute)
4. Room Database HILT Testing Example
5. Android JUnit Test Cases
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...
Source Code -
github.com/Che...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode
Негізгі бет Android HILT Testing Tutorial | Unit Testing Room Example | CheezyCode Hindi
Пікірлер: 34