19
Testing
Overview
Testing is a crucial aspect of software development that ensures the reliability and correctness of your code. In Go, a comprehensive testing approach covers various types of tests, each serving a unique purpose. This chapter explores different testing techniques and tools available in Go to empower developers in building robust and maintainable applications.
By the end of this chapter, you will understand the various types of tests Go developers implement. We will discuss the big three types of tests: unit, integration, and end-to-end (E2E) tests. We will then cover a few other types of tests, such as HTTP testing and fuzz testing. We will cover test suites, benchmarks, and code coverage, and even create a final test report ...
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.
Read now
Unlock full access