Building Microservices with .NET Core
by Soumya Mukherjee, Gaurav Aroraa, Lalit Kale, Manish Kanwar
Integration testing
In unit testing, we test a single unit of code. In component or service testing, we test mock services depending on an external or third-party component. But integration testing in microservices is a bit challenging or critical as in this type of testing, we test components that work together; also, service calls here should be made with integration with external services. In this test strategy, we make sure that the system is working together correctly and the behavior of services are as expected. In our case, we have various microservices and some of them depend upon external services.
For example, StockService depends upon OrderService in a way that a particular number of items is reduced from the stock as soon as the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access