Go 1 · Testing and profiling
View coverage in the browser
Write a coverage profile and open an annotated HTML report.
go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out
Go 1 · Testing and profiling
Write a coverage profile and open an annotated HTML report.
go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out
Was this page helpful?