A simple flexible tool to generate a unified coverage file for all your Go code.
Continuous Integration with coveralls.io
Use with mattn/goveralls to send metrics to coveralls.io:
go get github.com/philwinder/gocoverage
go get github.com/mattn/goveralls
gocoverage
goveralls -coverprofile=profile.cov -service=circle-ci -repotoken=${COVERALLS_TOKEN}
Usage of gocoverage:
-dir string
Directory to start recursing for tests (default ".")
-ignore string
RegEx that ignores files and folders. Default ignores hidden folders and vendor folder. (default "\\/(vendor|\\.\\w+)")
-output string
Filename for the output coverage file. (default "profile.cov")