Skip to content
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

Better error message - test reporter fails on paths without prefix #451

Open
SimonBaeumer opened this issue Jan 5, 2021 · 1 comment
Open
Assignees

Comments

@SimonBaeumer
Copy link

SimonBaeumer commented Jan 5, 2021

Hey codeclimate Team,
first of all thank you for your free open source offering, it already helped me a lot!

I run into this issue while migrating from travis to circleci, which was easily resolved by providing --prefix github.com/commander/commander-cli:

$ test-reporter after-build -t gocov
ERRO[0000] failed to read file github.com/commander-cli/commander/cmd/commander/commander.go
open commander.go: no such file or directory
Error: open commander.go: no such file or directory

It was relatively hard to debug I would like to extend the error message with a suggestion to use the --prefix option.

Example:

open commander.go: no such file or directory
Error: open commander.go: no such file or directory
Consider using --prefix to trim file paths.

If it is a go specific problem the error message could also suggest the prefix input.

Let me know what you think. I could provide you this small PR if it is appreciated.

@SimonBaeumer SimonBaeumer changed the title Better error message - test reporter fails on pathes without prefix Better error message - test reporter fails on paths without prefix Jan 5, 2021
@TihomirIvanov
Copy link

Thank you for reporting this. I had exctly the same isssue and adding --prefix fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants