Introduction
In previous chapters, you learned about how to load background data and display it in the UI and how to set up API calls to retrieve data. But how can you be sure that things work well? What if you're in a situation where you have to fix a bug in a project that you haven't interacted much with in the past? How can you know that the fix you are applying won't trigger another bug? The answer to these questions is through tests.
In this chapter, we will analyze the types of tests developers can write and we will look at available testing tools to ease the testing experience. The first issue that arises is the fact that desktops or laptops, which have different operating systems, are used to develop mobile applications. This implies that the tests also have to be run on the device or emulator, which will slow the tests down. In order to solve this issue, we are presented with two types of tests: local tests, which are located in the test
folder and...