go get github.com/conejo/coverage
cd ~/go/src/github.com/conejo/coverage
go install .
- by default 'coverage' recursively executes tests in current dir and all sub-dirs
- -html flag opens default browser with html coverage report
idea and most parts of the script borrowed from: https://mlafeldt.github.io/blog/test-coverage-in-go/