Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: -coverprofile with relative path uses wrong file name #22430
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title from
Wrong path in go test -coverprofile?
cmd/go: -coverprofile with relative path uses wrong file name
Oct 25, 2017
I tried this, however the cover tool seems to prefix the coverage data with things like the CWD or
If you look at the last line
I see this too, here's my workaround (running inside my repo directory):