You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is either worth documenting this as a recommended way of running individual tests or add an explicit option for this.
Currently cargo-llvm-cov looks highly tuned for CI workflow while I think local development flow is also valuable, which you want to run one or a couple of tests at once, not the entire test suite.
The text was updated successfully, but these errors were encountered:
I would accept a PR to improve docs. (It would be better to add it before or after the section on VSCode.)
It would not be so easy to add a dedicated command for this purpose. In fact, I don't think Cargo had it either.
That said, if someone has a concrete idea I can consider accepting it.
There is a workaround
Currently cargo-llvm-cov looks highly tuned for CI workflow
To be fair, we need the same thing when using cargo, right? it sounds a bit unfair to claim that this is "highly tuned for CI" for a tool that just doesn't support what cargo itself doesn't support as well.
(I guess it would also be possible to do the equivalent by adjusting the rust-analyzer's cargo test command settings.)
To be fair, we need the same thing when using cargo, right? it sounds a bit unfair to claim that this is "highly tuned for CI" for a tool that just doesn't support what cargo itself doesn't support as well.
Well for cargo purpose -- part that goes to rustc does the trick. With cargo-llvm-cov it's a bit less obvious and also it prints the large table with 0% coverage for all the tests except one that ran. if we could skip them that would be nice, but it's more of QoL feature which doesn't actually break anything, just annoys a little bit.
There is a workaround currently to run individual tests and get coverage for them:
I think it is either worth documenting this as a recommended way of running individual tests or add an explicit option for this.
Currently
cargo-llvm-cov
looks highly tuned for CI workflow while I think local development flow is also valuable, which you want to run one or a couple of tests at once, not the entire test suite.The text was updated successfully, but these errors were encountered: