Skip to Content
Microservices in .NET Core
book

Microservices in .NET Core

by Christian Horsdal Gammelgaard
January 2017
Beginner to intermediate
344 pages
10h 58m
English
Manning Publications
Content preview from Microservices in .NET Core

Chapter 7. Writing tests for microservices

This chapter covers

  • Writing good automated tests
  • Understanding the test pyramid and how it applies to microservices
  • Testing microservices from the outside
  • Writing fast, in-process tests for endpoints
  • Using Nancy.Testing for integration and unit tests

Up to this point, you’ve written a few microservices and set up collaborations between some of them. The implementations are fine, but you haven’t written any tests for them. As you write more and more microservices, developing systems without good automated tests becomes unmanageable. In the first half of this chapter, I’ll discuss what you need to test for each individual microservice. Then we’ll dive into code, looking first at testing endpoints ...

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.
Start your free trial

You might also like

Building Microservices with .NET Core 2.0 - Second Edition

Building Microservices with .NET Core 2.0 - Second Edition

Gaurav Aroraa

Publisher Resources

ISBN: 9781617293375Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link