Go: tests with HTML coverage report
3 min readJan 2, 2020
No matter what, tests are essential. Coverage reports help us to write better tests. Go has extensive support for both. In this article, I will share examples of how you run tests and get coverage reports.
First, let’s start with running tests. Normally I use the following command to run tests:
go test ./...