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

pytest: measure branch coverage #2276

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

Conversation

adamjstewart
Copy link
Collaborator

By default, coverage only reports which lines were executed during unit testing. By enabling branch coverage, we can also see whether if-statements are tested for both True and False conditions.

Reference: https://coverage.readthedocs.io/en/latest/branch.html

This is a WIP until we get 100% coverage. If anyone would be interested in contributing to this, it would be a great first issue.

@adamjstewart adamjstewart added the good first issue A good issue for a new contributor to work on label Sep 4, 2024
@adamjstewart adamjstewart added this to the 0.6.1 milestone Sep 4, 2024
@github-actions github-actions bot added the dependencies Packaging and dependencies label Sep 4, 2024
@Reslan-Tinawi
Copy link

I'd like to work on this.

@adamjstewart
Copy link
Collaborator Author

Feel free to push to this branch or open a separate PR.

@adamjstewart adamjstewart modified the milestones: 0.6.1, 0.6.2 Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Packaging and dependencies good first issue A good issue for a new contributor to work on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants