Integration tests are a logical extension to unit tests. They test the integration between multiple technical components within your applications in a real environment with access to external data sources (such as Databases, Web Services, and Caches).
The goal of this type of test is to ensure that everything is working well together and providing the expected functionalities when combining the various technical components together for creating application behavior.
Furthermore, integration tests should always have clean-up steps, so that they can run repeatedly without error and will not leave any artifacts behind in databases or file systems. In the following example, you will understand how to apply integration ...