Integration tests
Let’s assume your project is covered by unit tests where a lot of your logic is held. You now have to add these tested classes to an activity or a fragment and require them to update your UI. How can you be certain that these classes will work well with each other? The answer to that question is through integration testing.
The idea behind this type of testing is to ensure that different components within your application integrate well with each other. Some examples include the following:
- Ensuring that your API-related components parse the data well and interact well with your storage components
- The storage components are capable of storing and retrieving the data correctly
- The UI components load and display the appropriate data
- The transition between different screens in your application
To aid with integration testing, the requirements are sometimes written in the format Given - When - Then
. These usually represent acceptance...