Skip to content

Add test coverage reporting (pytest-cov)#5

Merged
faizollah merged 2 commits into
mainfrom
2-test-coverage
Jun 29, 2026
Merged

Add test coverage reporting (pytest-cov)#5
faizollah merged 2 commits into
mainfrom
2-test-coverage

Conversation

@faizollah

@faizollah faizollah commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #2

Builds on the unit + integration test suite already in main by adding coverage measurement, as suggested in the issue (pytest-cov).

Changes

  • Add pytest-cov to the dev optional-dependencies extra
  • Configure coverage source (flwrcrate) in pyproject.toml
  • CI now runs pytest --cov=flwrcrate --cov-report=term-missing --cov-fail-under=85
  • README Development section documents how to run coverage

Notes

The existing suite (40 unit + integration tests) was merged to main earlier without a closing reference, so this PR is what formally resolves #2.

- pytest-cov in the dev extra; coverage source config in pyproject
- CI runs pytest with --cov and a --cov-fail-under=85 gate (currently ~92%)
- README Development section documents coverage usage
@faizollah faizollah merged commit 0ade3b3 into main Jun 29, 2026
6 checks passed
@faizollah faizollah deleted the 2-test-coverage branch June 29, 2026 14:00
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.

Add unit tests

1 participant