Ignore a crate from the output #1181
-
I have a workspace with multiple crates and I want one of them to not be included in the coverage calculations. I tried doing something |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
-
I tried running
Which worked but did not ignore I then tried removing the workspace
which doesn't work since
did not work either. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
So moving to the glob crate there's one caveat (which is mildly irritating me but makes sense), the path separators need to match with the glob expression and path checked against. I have a branch with this in EDIT: Scratch that it seems to work with both separators... Wonder why my test failed then 🤔 |
Beta Was this translation helpful? Give feedback.
-
This is now fixed in the |
Beta Was this translation helpful? Give feedback.
You can use
--exclude
to exclude a package, similar to cargo test in a workspace.--exclude-files cratename/*
is probably a solution as well using --exclude-files but the crates tests will still run if it's in a workspace so code it calls in another workspace crate will be in the stats