Last active
March 18, 2020 11:44
-
-
Save chaudharisuresh997/1e75828b0708add96c8f58c5696ab281 to your computer and use it in GitHub Desktop.
Go Code coverge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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