Skip to Content
Microservices Patterns
book

Microservices Patterns

by Chris Richardson
November 2018
Intermediate to advanced
520 pages
16h 20m
English
Manning Publications
Content preview from Microservices Patterns

Chapter 9. Testing microservices: Part 1

This chapter covers:

  • Effective testing strategies for microservices
  • Using mocks and stubs to test a software element in isolation
  • Using the test pyramid to determine where to focus testing efforts
  • Unit testing the classes inside a service

FTGO, like many organizations, had adopted a traditional approach to testing. Testing is primarily an activity that happens after development. The FTGO developers throw their code over a wall to the QA team, who verify that the software works as expected. What’s more, most of their testing is done manually. Sadly, this approach to testing is broken—for two reasons:

  • Manual testing is extremely inefficient—You should never ask a human to do what a machine can do better. ...
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

Microservices Patterns

Microservices Patterns

Chris Richardson

Publisher Resources

ISBN: 9781617294549Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link