Skip to content

Instantly share code, notes, and snippets.

@chaudharisuresh997
Last active March 18, 2020 11:44
Show Gist options
  • Save chaudharisuresh997/1e75828b0708add96c8f58c5696ab281 to your computer and use it in GitHub Desktop.
Save chaudharisuresh997/1e75828b0708add96c8f58c5696ab281 to your computer and use it in GitHub Desktop.
Go Code coverge
gocov test ./... | gocov-xml > coverage.xml
https://github.com/AlekSi/gocov-xml
go get github.com/axw/gocov/gocov
go test workspace/... --coverprofile=coverage.txt
gocov convert coverage.txt > coverage.json
gocov-xml < coverage.json > coverage.xml 
#Go coverage
https://github.com/ory/go-acc
./bin/go-acc "workspace/A/B" "workspace/A/C" -o acccoverage.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment