© Sean Whitesell, Rob Richardson, Matthew D. Groves 2022
S. Whitesell et al.Pro Microservices in .NET 6https://doi.org/10.1007/978-1-4842-7833-8_7

7. Testing Microservices

Sean Whitesell1  , Rob Richardson2 and Matthew D. Groves3
(1)
KIEFER, OK, USA
(2)
Gilbert, AZ, USA
(3)
Grove City,, OH, USA
 

Kathy, the developer at Code Whiz, has made a few microservices and is concerned with proving they work as expected. She knows that the microservices are crucial for their client Hyp-Log, our hypothetical company in this book. Kathy looks at the various ways of testing microservices.

This chapter will go over why testing is important, what to test and what not to test, and various approaches to testing. We will also build an example of contract testing for REST-based ...

Get Pro Microservices in .NET 6: With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.