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 __init__.py files for pytest-cov discovery #1013

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

arhall0
Copy link
Collaborator

@arhall0 arhall0 commented Feb 20, 2025

Noticed when looking at #977 that some files are not being discovered by pytest-cov giving an artificially high line coverage. Adding __init__.py files to all the module folders forces pytest-cov to check files for coverage.

If there is some reason not to add these or if I missed locations that pytest-cov should check let me know.

@arhall0 arhall0 self-assigned this Feb 20, 2025
@arhall0 arhall0 force-pushed the add-inits-for-pytest-cov branch from c5eae61 to 1cc29ad Compare February 21, 2025 16:48
Copy link
Collaborator

@pagrubel pagrubel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this. We need to have the additional coverage measurement so we can be aware of what is not being tested and improve our testing.

@pagrubel pagrubel merged commit c196223 into develop Mar 5, 2025
@pagrubel pagrubel deleted the add-inits-for-pytest-cov branch March 5, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants