chore: add coverage reporting to pytest#17
Merged
DefinitelyADev merged 2 commits intomasterfrom Sep 21, 2025
Merged
Conversation
c37f301 to
b290877
Compare
b290877 to
8fce3af
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds code coverage reporting capabilities to the project by integrating pytest-cov and updating the CI workflow to generate and upload coverage reports.
- Adds pytest-cov dependency for coverage measurement during test execution
- Updates test runner to generate XML coverage reports with branch coverage
- Modifies CI workflow to upload coverage reports for Python 3.12 instead of 3.11
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| requirements-dev.txt | Adds pytest-cov dependency for coverage reporting |
| run_tests.py | Adds coverage arguments to pytest command for XML report generation |
| .github/workflows/ci.yml | Updates Python version for coverage upload and adds Codecov token |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
4b04fcd to
0919340
Compare
Add `pytest-cov` to `requirements-dev.txt` and enable coverage reporting in `run_tests.py` by including `--cov` and `--cov- report=xml` options. This provides insight into code coverage, helping to identify areas lacking test coverage.
0919340 to
b968681
Compare
Add details for version 1.2.2 including new GitHub Actions labeler config and coverage reporting to pytest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
pytest-covtorequirements-dev.txtand enable coverage reporting inrun_tests.pyby including--covand--cov- report=xmloptions. This provides insight into code coverage, helping to identify areas lacking test coverage.This pull request enhances the project's test coverage reporting by integrating the
pytest-covplugin and updating the CI workflow to upload coverage reports only for Python 3.12. The main changes focus on generating and uploading code coverage data as part of the testing process.Test coverage integration:
pytest-covtorequirements-dev.txtto enable coverage measurement during test runs.run_tests.pyto include coverage arguments (--covand--cov-report=xml) when running tests, generating a coverage report in XML format.CI workflow update:
.github/workflows/ci.ymlto upload coverage to Codecov only for Python 3.12 (instead of 3.11), aligning coverage uploads with the latest supported Python version.