Chapter 7: Testing Gin HTTP Routes
In this chapter, you will learn how to test a Gin web-based application, which involves running Go unit and integration tests. Along the way, we will explore how to integrate external tools to identify potential security vulnerabilities within your Gin web application. Finally, we will cover how to test the API HTTP methods using the Postman Collection Runner feature.
As such, we will cover the following topics:
- Testing Gin HTTP handlers
- Generating code coverage reports
- Discovering security vulnerabilities
- Running Postman collections
By the end of this chapter, you should be able to write, execute, and automate tests for a Gin web application from scratch.