Skip to content

Configure coverage to omit tests #244

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
Jul 18, 2025

Conversation

oesteban
Copy link
Collaborator

Summary

  • add a [tool.coverage] section in pyproject.toml so that test files are not
    included in coverage reports

Testing

  • pip install -e .[tests]
  • TEST_DATA_HOME=/tmp/testdata pytest -q (fails: FileNotFoundError for someones_bspline_coefficients.nii.gz)

https://chatgpt.com/codex/tasks/task_e_6879d623d50c83308df8c9faaad659fb

@oesteban oesteban merged commit 6b000c8 into master Jul 18, 2025
3 of 4 checks passed
@oesteban oesteban deleted the codex/exclude-tests-from-coverage-report branch July 18, 2025 05:14
Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.98%. Comparing base (33d4af8) to head (bedabae).
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #244      +/-   ##
==========================================
- Coverage   95.55%   94.98%   -0.58%     
==========================================
  Files          30       16      -14     
  Lines        3063     1833    -1230     
  Branches        0      236     +236     
==========================================
- Hits         2927     1741    -1186     
+ Misses        136       76      -60     
- Partials        0       16      +16     
Flag Coverage Δ
unittests 94.84% <ø> (-0.50%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant