Testing different microservices together can be quite challenging. Not only may they have to interact with each other but they also cause different changes (mostly in the databases) whenever you run a test that involves multiple services.
For efficiency purposes, you should have tested each service thoroughly before you test them together. Bugs and errors are caught significantly easier in isolation than in a multi-service setup. Trust me, it saves you hours and days of work.
Let's dive into it by looking at the following topics:
- Configuration
- What to test?
- Testing locally
- Testing in a development environment
- Testing in production