-
-
Notifications
You must be signed in to change notification settings - Fork 181
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 way to run coverage for tests in an example #424
Comments
I'll have a look some point this week hopefully and see if I can figure it out, hopefully it's just a case of calling cargo wrong in src/cargo.rs |
Yep! Lines 143 to 170 in 504acb1
This is doing To be clear, I'm not certain if the behavior of Side note: I think, based on that code, that tarpaulin isn't running inline unit tests. IIUC, |
I've done a fix for this and tested it on sorbus, it's on the develop branch if you want to use it before the next release. But if not I hope to solve some of the doc test coverage issues this week and then do a new release this weekend or next week 👍 |
Using cargo-tarpaulin 0.12.3,
--run-types Examples
seems to be running the binaries produced bycargo build --examples
(and in my case, failing to collect coverage for them some unknown reason). Instead, I want to run the test executable for the examples, produced bycargo test --examples
.Or more specifically, I want all tests run by
cargo test --all-targets
to run, and the examples' tests do not seem to be included in--run-types Tests
.The text was updated successfully, but these errors were encountered: