Android Unit Testing for Beginners - Android Testing Part 2

Published: 29 January 2024
on channel: Daniel Talks Code
1,776
34

Continuing our series on Android automated testing, in this episode we focus on how to add unit tests to a ViewModel class that uses LiveData, Coroutines, and DataBinding using MockK for mocking, the Truth library for assertions, ArchCore, and the Coroutines Test library.

Consider Subscribing 🤩
   / @danieltalkscode  

Chapters:
0:00 Intro
0:24 The TodosViewModel
1:28 Dependencies
2:14 Generate a Test
4:48 Write Your First Test
6:19 Testing Coroutines

Github Repository:
https://github.com/danpgomez/Importan...

-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.


On this page of the site you can watch the video online Android Unit Testing for Beginners - Android Testing Part 2 with a duration of hours minute second in good quality, which was uploaded by the user Daniel Talks Code 29 January 2024, share the link with friends and acquaintances, this video has already been watched 1,776 times on youtube and it was liked by 34 viewers. Enjoy your viewing!