Go 1 · Testing and profiling

Measure coverage

Print the percentage of statements covered by tests.

go test -cover ./...

Official Go 1 documentation

More testing and profiling commands

All testing and profiling commands · Go 1 cheatsheet

Was this page helpful?