Skip to content

fix(ci): measure only footycollect for coverage (80%) + add tests - #226

Merged
sunr4y merged 2 commits into
mainfrom
fix/ci-coverage
Feb 19, 2026
Merged

fix(ci): measure only footycollect for coverage (80%) + add tests#226
sunr4y merged 2 commits into
mainfrom
fix/ci-coverage

Conversation

@sunr4y

@sunr4y sunr4y commented Feb 19, 2026

Copy link
Copy Markdown
Owner

Summary

CI coverage was reporting 74% because it measured the whole project (including config/). We now measure only footycollect/, matching local runs and pyproject.toml, so the report is ~80%. This PR also adds tests that were in the stash.

Changes

  • CI: Use --cov=footycollect in the pytest step so coverage is limited to footycollect/ (same as local and include = ["footycollect/**"]). Stops counting untested config/ (asgi, checks, settings, wsgi, etc.) in the total.
  • Tests: New/updated tests for coverage:
    • footycollect/collection/tests/test_factories.py
    • footycollect/collection/tests/test_management_commands.py
    • footycollect/collection/tests/test_size_service.py
    • footycollect/core/tests/test_models.py

sunr4y added 2 commits February 19, 2026 17:50
- CI was using --cov without package, so config/ was included and report showed 74%
- Use --cov=footycollect to match local and pyproject.toml (footycollect only)
- Add tests: factories, management_commands, size_service, core models
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Feb 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sunr4y
sunr4y marked this pull request as ready for review February 19, 2026 18:20
@sunr4y
sunr4y merged commit 80fe218 into main Feb 19, 2026
4 checks passed
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