Skip to content

Exclude tag does not work properly on packages with both main.rs and lib.rs #339

Open
@GunnarMorrigan

Description

@GunnarMorrigan

Performing cargo llvm-cov test on a workspace with excluded packages does not properly exclude packages with both main.rs and lib.rs.

The command:
The html output of cargo llvm-cov test --workspace --exclude example_a --html will include example_a regardless.
Here example_a is a package containing both a main.rs and a lib.rs.

If I rename lib.rs in example_a I get the following error:

error: C:\...\example_a\src\lib.rs: no such file or directory
warning: The file 'C:\...\example_a\src\lib.rs' isn't covered.

This indicates that the exclude is not properly applied or I am using it wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: related to a bug.O-windowsOperating system: WindowsS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions