Follow

Today I spent way too much time learning that if your project contains multiple packages, and you want good coverage reports, you need to do this:

go test -v -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=$(go list ./... | tr "\n" ",") ./...

Sign in to participate in the conversation
Infosec Exchange

A Mastodon instance for info/cyber security-minded people.