Skip to content

chore(test): enable branch coverage in pyproject.toml and simplify te… #36

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

flitzpiepe93
Copy link
Contributor

Enable Branch Coverage and Simplify Test Configuration

✨ Summary

This MR enables branch coverage in the coverage.py configuration and simplifies the test execution setup.


✅ Changes

  • Added branch = true under [tool.coverage.run] in pyproject.toml to enable branch coverage by default
  • Moved common pytest arguments into [tool.pytest.ini_options] via addopts
  • Cleaned up GitHub Actions job by removing redundant CLI parameters (--cov-branch, etc.)

🔍 Why?

  • Makes branch coverage consistent across local runs, CI, and IDEs
  • Reduces duplication and simplifies the test job definition
  • Prepares the project for better integration with reporting tools (e.g. Codecov, Sonar)

🧪 How to test

Run the following command locally (or check the CI):

uv run pytest

@flitzpiepe93 flitzpiepe93 self-assigned this May 20, 2025
@flitzpiepe93 flitzpiepe93 added the chore Maintenance tasks like updates to docs, configs, workflows, or dependencies — no impact on core func label May 20, 2025
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@flitzpiepe93 flitzpiepe93 merged commit d7a7ba8 into main May 20, 2025
8 checks passed
@flitzpiepe93 flitzpiepe93 deleted the chore/configure-coverage-run branch May 20, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance tasks like updates to docs, configs, workflows, or dependencies — no impact on core func
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant