Skip to content

ci: add test coverage reporting - #183

Merged
beaufour merged 1 commit into
masterfrom
ci/add-coverage
Oct 27, 2026
Merged

beaufour merged 1 commit into
masterfrom
ci/add-coverage

Conversation

@beaufour

Copy link
Copy Markdown
Collaborator

Summary

Coverage was never measured: no pytest-cov dependency, no coverage config, no CI reporting. This PR wires it up:

  • Add pytest-cov dev dependency (uv.lock updated)
  • [tool.coverage.run] / [tool.coverage.report] in pyproject.toml (branch coverage, show_missing)
  • CI test job runs pytest --cov=flickr_api --cov-report=term-missing

Measured locally: 291 tests pass, 80% branch coverage, with notable gaps in api.py (0%), tools.py (0%), cache.py (40%), auth.py (65%), upload.py (63%).

Test Plan

  • uv run pytest --cov=flickr_api passes locally
  • CI green on all matrix versions

Automated prep by Hermes maintainer.

- Add pytest-cov as a dev dependency (with uv.lock update)
- Configure [tool.coverage.run]/[tool.coverage.report] in pyproject.toml
  (branch coverage, show_missing)
- CI test job now reports per-file coverage with missing lines

Local run: 291 tests pass, 80% branch coverage.
@beaufour
beaufour merged commit a466863 into master Oct 27, 2026
5 checks passed
@beaufour
beaufour deleted the ci/add-coverage branch October 27, 2026 12:43
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