Summary
In this chapter, we covered multiple topics related to Go testing, including the common features of the Go testing library and the basics of writing unit and integration tests for your code. You have learned how to add tests to your microservices, optimize test execution in various cases, create test mocks, and maximize the quality of your tests by following the best testing practices. The knowledge you gained from reading this chapter should help you to increase the efficiency of your testing logic and increase the reliability of your microservices.
In the next chapter, we will move to a new topic, that will cover the main aspects of service reliability and describe various techniques for making your services resilient to various types of failures.