Skip to Content
gRPC Microservices in Go
book

gRPC Microservices in Go

by Huseyin Babal
December 2023
Intermediate to advanced
200 pages
5h 20m
English
Manning Publications
Content preview from gRPC Microservices in Go

7 Testing microservices

This chapter covers

  • Understanding the motivation behind testing
  • Test strategies (e.g., unit testing, integration testing, and end-to-end testing)
  • Test containers’ usage in test automation
  • Calculating and viewing the test coverage for test suites
  • Understanding test pyramids

Microservice architecture encourages you to write minimal services that can be easily tested as a unit. For example, while testing the Order service, the only context you need to focus on is Order. To test the Order service, you have two high-level alternatives: manual testing and automated testing.

With manual testing, you must run actual and dependent services to test the entire flow. This can be a time-consuming operation compared to testing backed ...

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

Kubernetes in Action

Kubernetes in Action

Marko Luksa
Concurrency in Go

Concurrency in Go

Katherine Cox-Buday

Publisher Resources

ISBN: 9781633439207Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link