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

Fix branch coverage rate comparison when used with --branch without actual branches #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcegeek
Copy link

When --branch option is set but there are no branches coverage.xml will contain 0 branches (branches-valid="0" and branches-covered="0") but have branch-rate="1". Fixes #23

…ut there are no branches

When `--branch` option is set but there are no branches `coverage.xml` will contain 0 branches
but have branch-rate="1". Fixes smarie#23
@marcegeek marcegeek changed the title Fix branch coverage rate comparison when used with --branch without actual branches Fix branch coverage rate comparison when used with --branch without actual branches. Fixes #23 Aug 18, 2024
@marcegeek marcegeek changed the title Fix branch coverage rate comparison when used with --branch without actual branches. Fixes #23 Fix branch coverage rate comparison when used with --branch without actual branches Aug 18, 2024
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.

ValueError: Computed branch rate (0) is different from the one in the file (1.0)
1 participant