-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code coverage is not working with Go 1.11 Modules #378
Comments
@estahn thank you for writing! I'll add this to our backlog. We don't have an ETA yet on an update but we will be updating this issue as soon as we have some news. |
it is deactivated anyway, i.e. we don't see the results, however it also seems to be problematic around go 1.11 modules, see: codeclimate/test-reporter#378
Any updates on this? |
@estahn 👋 looking back on this issue. I think using the I would suggest using @codersbrew can you consider also trying something like the suggestion above? Apologies on the late response! Thank you for writing. |
Will try it out, thanks! |
The |
Nevermind, prefix works! Trailing slash is vital. |
@efueger Is this fixed? Seems there's only a workaround so far, not an actual fix. |
Ah! Sorry about that @Naatan. Reopening 👌 |
at Go Modules:
file: .travis.yml |
env:
global:
- CODECLIMATE=https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- GO111MODULE=on
after_script:
- export EXIT_CODE=$TRAVIS_TEST_RESULT
- export PREFIX=$(basename $(go list -m))
- ./cc-test-reporter after-build -t gocov -p $PREFIX |
CI: CircleCI |
Golang 1.11 supports to place the src directory into a non-$GOPATH directory, e.g.
~/project
in CircleCI.The generated
c.out
files will look something like that:Now,
cc-test-reporter
reads the file with the following error message:I would guess
cc-test-reporter
should look up the module ingo.mod
and adjust the path forc.out
accordingly.The text was updated successfully, but these errors were encountered: