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

Move to pytest-cov #1545

Merged
merged 7 commits into from
Jun 28, 2024
Merged

Move to pytest-cov #1545

merged 7 commits into from
Jun 28, 2024

Conversation

mstimberg
Copy link
Member

We previously used the separate coverage.py utility, which seems not to handle our somewhat convoluted pytest setup 100% correctly – I did not look into it in much detail, but our coverage on coveralls clearly showed code as not covered that was covered by tests (I double-checked by raising an Exception in the "uncovered" code). Using pytest-cov seems to be the better solution, and while there were a few issues with multiprocessing (since we also run our tests in parallel), it now seems to run smoothly. Without adding a single test, our test coverage jumps from 82% to 92% 😆

@mstimberg mstimberg merged commit 3f88158 into master Jun 28, 2024
62 checks passed
@mstimberg mstimberg deleted the pytest-cov branch June 28, 2024 10:07
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.

1 participant