-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bug: full file paths in coverage output (windows) #24
Comments
Hi @phanirithvij and thanks for the report. It appears that the issue is indeed exists on Windows (which I honestly never tested, so thanks for that), because on my mac everything works as expected: I'll look into it when I have access to a Windows instance, or if you'd like to help you could try figuring out the reason, and maybe even submitting a fix😼 |
@phanirithvij, hi again! I just tried running File names in the list are relative to the current folder (the same folder that contains the For some reason, this piece of code doesn't remove package name prefix from the coverage reports on your system: gocovsh/internal/model/model.go Lines 315 to 318 in a79d558
I need your help in figuring out the root cause, because I can't reproduce the issue. |
I was a bit busy so I didn't respond I apologise. |
Enabled them on my fork, windows fails with the same errors. |
Describe the bug
It doesn't work on windows
To Reproduce
Steps to reproduce the behavior:
go install github.com/orlangure/gocovsh@latest
cd Some/Directory
git clone https://github.com/tsoding/snitch
cd snitch
go test -v -cover -coverprofile coverage.out
gocovsh --profile coverage.out
Expected behavior
File paths are relative in the cover.out file eg.
github.com/tsoding/snitch/logcmd.go:26.33,28.4 1 0
.I don't think this issue is package-specific (snitch).
Screenshots
Files
After Opening a file
Desktop (please complete the following information):
Additional context
Not sure if this is windows specific but I'm on windows.
The text was updated successfully, but these errors were encountered: