Ready to make your testing life easier? In this skill pack, we will dive into a few examples and teach you some useful testing techniques for your Android apps.
6 minutes
Unit testing your classes helps ensure that they work correctly based on controlled inputs but doing the setup can be painful if you have a lot of dependencies. Learn how to create mock objects using Mockito to simplify your setup and improve the readability of your tests.
There are a wide variety of test doubles you can use to make testing easier. In this video we will discuss mocks and spies, what their differences are and when you would use each of them.
10 minutes
Integration tests provide a way to verify the features in your application continue to work as you expect while adding new features and refactoring existing ones. In this screencast you will learn how to use the Espresso Test Recorder tool in Android Studio to add new integration tests to your test suite quickly and easily.
8 minutes
As applications are developed you will often need to add additional fields to your database. The architecture component Room achieves this by using Migrations. In this screencast, you will learn how to test your database migrations so you can be confident that your apps data is maintained in a clean state.