
By learning how to test this app, you'll be able to test apps that use the same libraries and architecture.Īlternatively, you can clone the Github repository for the code: $ git clone This app is written in Kotlin, has several screens, uses Jetpack components, and follows the architecture from a Guide to app architecture. 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.


Set up, run, and interpret both local and instrumented tests in Android.AndroidX Architecture Components Core Test Library.

You'll learn about the following libraries and code concepts: How to choose instrumented tests and local tests.How to write and run unit tests on Android.Application architecture, following the pattern from the Guide to app architecture and Android Fundamentals codelabs.The following core Android Jetpack libraries: ViewModel and LiveData.This first codelab covers the basics of testing on Android, you'll write your first tests and learn how to test LiveData and ViewModels. What you'll learn in this series of codelabs is how to create a collection of tests (known as a testing suite) for a real-world app. But doing this manually every time is tiring, prone to mistakes, and does not scale.Ĭomputers are great at scaling and automation! So developers at companies large and small write automated tests, which are tests that are run by software and do not require you to manually operate the app to verify the code works. As you continued to add and update features, you probably also continued to run your code and verify it works. You performed a test, albeit a manual test. When you implemented the first feature of your first app, you likely ran the code to verify that it worked as expected. 5.3 Testing Coroutines and Jetpack integrations.5.2 Dependency Injection and Test Doubles.We recommend that you do all the codelabs in order, because they progress through tasks step-by-step.

This codelab is part of a series that guides you through how to test your Android project. All the course codelabs are listed on the Advanced Android in Kotlin codelabs landing page. You'll get the most value out of this course if you work through the codelabs in sequence, but it is not mandatory. This codelab is part of the Advanced Android in Kotlin course.
