9 Automated testing for microservices

This chapter covers

  • Using automated testing with microservices
  • Unit testing and integration testing with Jest
  • End-to-end testing with Playwright

To this point in the book, while building microservices, we’ve tested our code manually. In this chapter, though, we’ll shift up a gear and learn how to apply automated testing to our microservices.

So far, we’ve primarily done our testing by running our code and visually inspecting the output. Methods of manual testing are many and varied. I want you to know that manual testing is okay, to a point. You should start with manual testing and continue with it until you’re comfortable enough to use automated testing.

Your product should also be well enough understood ...

Get Bootstrapping Microservices, Second Edition 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.