Testing in agile/DevOps life cycle using Microservices Architecture
To get the most value from unit tests, Microservices tests need to be executed frequently—every build should run the tests. A failed test implies failure of build. Microservices testing should be configured in a continuous integration server (for example, Jenkins, TeamCity, Bamboo) so that these services are constantly monitored for changes in the code.
A testing approach in agile/DevOps life cycle using microservices architecture to provide optimal coverage methodology is highlighted in the following points:
- Unit Testing: This will cover basic tests for the API and within each service. Code that uses other services should mock and stub them out.
- Integrated Testing: This is to test services from one application to another. Before starting service integration test, test versions of the services that will use the given requests should be created.
- Performance: A test system that reflects the production system should be...