Testing best practices
This brings us to the end of this chapter and the end of our exploration of Go with TDD. We have had an amazing journey, having studied many libraries and techniques and applied them to our BookSwap
application, as well as smaller examples. In this final section, we will recap the lessons learned and formulate some testing best practices.
Achieving a comprehensive testing strategy requires constant effort and a cultural shift within an organization to embrace quality and prioritize testing. Figure 11.4 presents a summary of some of the best practices we have explored divided into three different categories:
Figure 11.4 – Development, testing, and culture best practices
We have discussed 14 best practices throughout this book, which have been divided into 3 categories – development, testing, and culture.
Development best practices
Here are some best practices for development (as seen in Figure 11.4):
- Use...