Skip to content
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

Add --fail-uncovered-{lines,regions,functions} options #173

Merged
merged 1 commit into from
May 30, 2022
Merged

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented May 29, 2022

        --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

@taiki-e
Copy link
Owner Author

taiki-e commented May 29, 2022

cc @michaelvlach

@taiki-e taiki-e force-pushed the count-uncovered branch 2 times, most recently from 94587e8 to f76d063 Compare May 29, 2022 11:29
@taiki-e
Copy link
Owner Author

taiki-e commented May 30, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented May 30, 2022

Build succeeded:

@bors bors bot merged commit a8ee597 into main May 30, 2022
@bors bors bot deleted the count-uncovered branch May 30, 2022 01:07
@taiki-e
Copy link
Owner Author

taiki-e commented May 30, 2022

Published in 0.4.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more options to fail on insufficient coverage
2 participants