Looks like go test
now supports this functionality, so there is no
reason to use this tool anymore.
Original version by Pierre Durand was deprecated.
Differences from original version:
- added support for
-coverpkg
- Coverage profile with multiple packages (
go test
doesn't support that)
go get github.com/powerman/gotestcover
gotestcover -coverprofile=cover.out mypackage
go tool cover -html=cover.out -o=cover.html
Run on multiple package with:
package1 package2
package/...
Some go test / build
flags are available.