![]() You can then mark them as completed or not, filter them, or delete them. The app allows you to write down tasks to complete and displays them in a list. In this series of codelabs, you'll be working with the TO-DO Notes app. If you finished all of the non-optional steps in the 5.1 Testing Basics codelab, you can continue using the same project and skip this step. Write navigation tests using Mockito and Espresso.Write integration tests for fragments and their view models using Espresso UI testing framework.Write unit tests for a view model using a test double and dependency injection.Write unit tests for a repository using a test double and dependency injection.You will use the following libraries and code concepts: How to test repositories, fragments, view models and the Navigation component.How to apply the Service Locator Pattern. ![]() How to use manual dependency injection on Android for unit and integration tests.How to create and use test doubles, namely fakes and mocks.Application architecture, following the pattern from the Guide to app architecture and Android Fundamentals codelabs.The following core Android Jetpack libraries: ViewModel, LiveData and the Navigation Component.Testing concepts covered in the first codelab: Writing and running unit tests on Android, using JUnit, Hamcrest, AndroidX test, Robolectric, as well as Testing LiveData.Fragments and viewmodel integration tests.In doing this, you'll learn how to write: This second testing codelab is all about test doubles: when to use them in Android, and how to implement them using dependency injection, the Service Locator pattern, and libraries. ![]() 5.3 Testing Coroutines and Jetpack integrations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |