Skip to content

grcov gives an error to open some unknown file #1185

@ns-pjasani

Description

@ns-pjasani

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions