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

no_run seemingly not respected in workspace crates #1424

Open
maxcountryman opened this issue Nov 12, 2023 · 1 comment
Open

no_run seemingly not respected in workspace crates #1424

maxcountryman opened this issue Nov 12, 2023 · 1 comment
Assignees

Comments

@maxcountryman
Copy link

Hi there, I seem to be running into an issue which I suspect is related to #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
Copy link
Owner

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

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

2 participants