-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Branch coverage #8
Comments
173: Add --fail-uncovered-{lines,regions,functions} options r=taiki-e a=taiki-e ``` --fail-uncovered-lines <MAX> Exit with a status of 1 if the uncovered lines are greater than MAX --fail-uncovered-regions <MAX> Exit with a status of 1 if the uncovered regions are greater than MAX --fail-uncovered-functions <MAX> Exit with a status of 1 if the uncovered functions are greater than MAX ``` There is no `--fail-uncovered-branches` option because branch coverage is not supported yet by rustc (#8). Closes #170 174: Add --ignore-run-fail option r=taiki-e a=taiki-e ``` --ignore-run-fail Run all tests regardless of failure and generate report If tests failed but report generation succeeded, exit with a status of 0. ``` Closes #169 Co-authored-by: Taiki Endo <te316e89@gmail.com>
The output can be made nicer with the following workaround. cargo llvm-cov --html && sed -i "s_<td[^>]*>[^t]*</td></tr>_</tr>_g" target/llvm-cov/html/index.html |
Branch coverage support has landed in nightly: rust-lang/rust#79649 (comment). |
0.6.8 (#356) added unstable |
Seems to also work on |
It is nightly-2024-03-16. (The commit date ("c67326b06 2024-03-15" in this case) is one day before the rustup toolchain version: rust-lang/rust#51533) |
UPDATE: 0.6.8 (#356) added unstable
--branch
flag to enable branch coverage. (requires nightly-2024-03-16+.)LLVM supports branch coverage (https://reviews.llvm.org/D84467),
-Zinstrument-coverage
does not support it yet.See rust-lang/rust#79649 for more.
The text was updated successfully, but these errors were encountered: