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

grcov gives an error to open some unknown file #1185

Open
ns-pjasani opened this issue Jun 21, 2024 · 0 comments
Open

grcov gives an error to open some unknown file #1185

ns-pjasani opened this issue Jun 21, 2024 · 0 comments

Comments

@ns-pjasani
Copy link

ns-pjasani commented Jun 21, 2024

I am trying to generate test coverage report using grcov in rust.

When I execute
~/.cargo/bin/grcov . --binary-path target/debug -s . -t html --branch --filter covered -o target/debug/coverage,

It gives an error as below:
A panic occurred at /path/.cargo/registry/src/index.crates.io-6f17d22bba15001f/grcov-0.8.19/src/producer.rs:174: Failed to open '/path/./some-file/db/user_defined'

Though ./some-file/db/user_defined file is not present in my project.

In my other rust project, it is working fine. Only in this project, I am getting this error.

I am using grcov-v0.8.19 and rust nightly-2024-02-20.

Could anyone please help me with the solution ?

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

1 participant