Code coverage for Go integration tests
Official guide for collecting and interpreting Go coverage across packages and integration-style runs.
Official guide for collecting and interpreting Go coverage across packages and integration-style runs.
- Author: Go Team
- Authority: primary
- Kind: guide
- URL: https://go.dev/doc/build-cover
What it covers
- coverage instrumentation
- cross-package and integration coverage
- cover profile workflow
Why authoritative
Official Go Team guide for modern coverage workflows.
Use when
- how do I collect Go coverage here
- how should I measure integration test coverage in Go
- what is the official Go coverage workflow
Keywords
- coverage, coverprofile, integration tests, go test, build-cover