Skip to content

feat: add pytest-cov and configure test coverage tooling - #62

Merged
tmgbedu merged 1 commit into
mainfrom
feat/test-coverage-setup
May 24, 2026
Merged

feat: add pytest-cov and configure test coverage tooling#62
tmgbedu merged 1 commit into
mainfrom
feat/test-coverage-setup

Conversation

@tmgbedu

@tmgbedu tmgbedu commented May 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add pytest-cov>=6.0.0 to dev dependencies for coverage tracking
  • Configure [tool.coverage.run/report/html] in pyproject.toml with fail_under = 40 threshold
  • Add norecursedirs to exclude masoniteorm.backup from test collection (was causing 45 collection errors)
  • Document all coverage commands in CLAUDE.md under a new Test Coverage section

Baseline

  • 50.55% total coverage on first run
  • 320 tests passing, 7 skipped
  • HTML report generated at htmlcov/index.html

Test plan

  • Run uv run pytest --cov --cov-report=term-missing and confirm coverage table prints
  • Run uv run pytest --cov --cov-report=html and confirm htmlcov/index.html is generated
  • Run uv run pytest --ignore=tests/masoniteorm/postgres --cov to confirm Postgres tests are safely skipped
  • Confirm suite fails if coverage drops below 40%

🤖 Generated with Claude Code

- Add pytest-cov>=6.0.0 to dev dependencies
- Configure [tool.coverage.run] to track src/fastapi_startkit/
- Configure [tool.coverage.report] with fail_under=40 and missing-line output
- Configure [tool.coverage.html] to output to htmlcov/
- Add norecursedirs to exclude masoniteorm.backup from test collection
- Document coverage commands in CLAUDE.md

Baseline coverage: 50.55% (320 tests passing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tmgbedu
tmgbedu merged commit 0cf60fd into main May 24, 2026
3 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