You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @nothingmuch I may need a bit more information; I would have thought that go test would not have worked either as how would it know where it's dependant packages are?
maybe an example of directory structure of where the project and it's dependencies are cloned would clear things up for me.
Also do you use go get to retrieve the dependant packages?
Possible Blocking Issue
I'll use github.com/go-playground/validator as an example:
So when coverage is created the resulting lines within the file actually contains a path to the go file + line number info etc... and when using a service such as coveralls to monitor your test coverage it adds the repo as github.com/go-playground/validator and expects the path(s) within the coverage to match like so:
and since they will not match, it will report 0% test coverage.
I originally had this problem using semaphore CI as they clone the repo outside of the $GOPATH and add a symlink to it under the $GOPATH, however they cd'd into the cloned path and not the symlinked one and therefore the paths didn't match and that's why overall want the project argument; so it can look under the matching path.
I'm sorry I misremembered, and I thought for our homebrew solution this works with relative paths. Turns out we're fixing up the checkout directory to be a valid go workspace layout.
Our CI system checks out git repositories with no consideration for go workspace layouts.
go test
still works inside the checkout directory, but it's impossible to use overalls to run it without shuffling things aroundThe text was updated successfully, but these errors were encountered: