xd009642 / tarpaulin

A code coverage tool for Rust projects
https://crates.io/crates/cargo-tarpaulin
Apache License 2.0
2.5k stars 180 forks source link

`no_run` seemingly not respected in workspace crates #1424

Open maxcountryman opened 11 months ago

maxcountryman commented 11 months ago

Hi there, I seem to be running into an issue which I suspect is related to https://github.com/xd009642/tarpaulin/issues/848.

In short, crates within a workspace which have defined doctests marked as rust,no_run or simply no_run are being executed by tarpaulin.

I'm invoking tarpaulin like this: $ cargo tarpaulin --workspace --run-types Doctests -olcov --all-features.

It's also worth pointing out that $ cargo test --workspace --all-features --doc works as expected (in other words, respect no_run.

xd009642 commented 8 months ago

Yeah the heuristics for the doc test exe name means that linking tests to their lines in the source code is a bit tricky. If you have a project you can link to I can have a look when I have some time