Chapter 12
Answer 1
The integration tests for microservices are written in mostly the same way as those for monolithic applications, with the following few differences:
- If the microservice needs to communicate with some another external microservice, then the integration test might need to have the external service set up so as to properly execute the test case
- The components that comprise the individual service should be set up for all of the microservices in place in the infrastructure—for example, a database that accompanies a particular microservice that is needed for testing purposes