Skip to content

No test-coverage measurement in CI #249

Description

@yakew7

187 tests currently run in CI and pre-push, but nothing measures what fraction of faircode/ they actually exercise. There's no pytest-cov (or equivalent), and no coverage badge on README.

Propose:

  • Add pytest-cov to the test/dev install (requirements.txt's dev extra, or wherever pytest itself is documented as installed - see make setup)
  • Wire --cov=faircode --cov-report=term-missing into make test (or a separate make coverage target, to keep make test's output exactly as-is for anyone relying on it)
  • Optionally, a coverage badge on README once a baseline number exists

Should be informational, not a CI gate - no PR should fail because coverage dropped by some arbitrary threshold. The point is visibility into which branches of faircode/metrics.py, strategies.py, etc. the existing 187 tests actually reach, not a new merge requirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions