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
As you can see here codecov - imap sort.rs, llvm-cov includes the test lines in the total coverage percentage.
This will increase the total percentage since the test lines are counted as covered. Other implementations like cargo-tarpaulin with llvm coverage excludes those test. Do you think those test lines should be skipped or kept?
This implementation could have other disadvantages than llvm-cov, but the coverage should be more representative of the real code. Here and example with the above codecov coverage
The text was updated successfully, but these errors were encountered:
I'd prefer for this to be fixed in cargo-llvm-cov rather than switching the coverage driver outright. I think the underlying issue here is taiki-e/cargo-llvm-cov#123, though I don't see an easy path to resolving it. I'm curious how tarpaulin avoids counting unit test code 🤔
cc @taiki-e@xd009642 in case the two of you might exchange ideas on this.
I'd prefer for this to be fixed in cargo-llvm-cov rather than switching the coverage driver outright. I think the underlying issue here is taiki-e/cargo-llvm-cov#123, though I don't see an easy path to resolving it.
Closing the issue here then. Thanks for the feedback
As you can see here codecov - imap sort.rs, llvm-cov includes the test lines in the total coverage percentage.
This will increase the total percentage since the test lines are counted as covered. Other implementations like cargo-tarpaulin with llvm coverage excludes those test. Do you think those test lines should be skipped or kept?
An alternative could be the following:
This implementation could have other disadvantages than llvm-cov, but the coverage should be more representative of the real code. Here and example with the above codecov coverage
The text was updated successfully, but these errors were encountered: