I am trying to use go test -cover to measure the test coverage of a service I am building. It is a REST API and I am testing it by spinning it up, making test HTTP
go test -cover
you can run go test in a way that creates coverage html pages. like this:
go test -v -coverprofile cover.out ./... go tool cover -html=cover.out -o cover.html open cover.html