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

Official Go 1 documentation

More testing and profiling commands

All testing and profiling commands · Go 1 cheatsheet

Was this page helpful?