Go cover to Treemap
Useful when you have large project with lots of files and packages
$ go install github.com/nikolaydubina/[email protected] $ go test -coverprofile cover.out ./... $ go-cover-heatmap -coverprofile cover.out > out.svg
..also available in 1080x360
In all examples above I run
go test -coverprofile <my-file> ./.... I did not do any special setup. Some projects may reuqire additional steps to properly run tets and generate full coverprofile. What you see is "lower bound" of coverage for those projects. All profiles generated on
main branch of each project in GitHub on 2021-12-07.
Welcomed! Add pretty color palettes! Add interesting examples!
- Official Go tool to make HTML from cover profile: https://github.com/golang/go/blob/master/src/cmd/cover/html.go#L97
- Official Go parser of cover profile
- Go SVG Treemap renderer with heatmap: github.com/nikolaydubina/treemap