Test-Driven Development in Android

Jan 24 2023 · Kotlin 1.6, Android 12, AS Bumblebee 2021.1.1

Part 2: Integration Tests

10. Build Integration Tests

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 09. Refactor JUnit Tests Next episode: 11. Create Test Class

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Transcript: 10. Build Integration Tests

Integration tests check how different parts on your application work together to achieve a common goal. This includes the Android framework or even external dependencies.

They are the second level of our testing pyramid which means you should try to cover as much as you can with unit tests before creating your integration tests. Having said that, don’t worry about creating as much integration tests as you need, just keep in mind that it takes longer to execute them since they usually need an emulator to run.

In this section you are going to be building on a fun wishlist app which takes cared of creating wishlist ideas for all your friends and loved ones.

Open the starter project for this episode and wait until android studio finishes syncing your project. Then take some time to familiarize yourself with the project.

The details you need to be familiar with are the DetailViewModel class which is the class that we are going to be testing in this episode and the next ones.

You also need to be familiar with the repository interface and the repository implementation since this is the class that we are going to be using to save data later on.