Skip to content

Add code coverage reporting and badge #17

@gauthierpiarrette

Description

@gauthierpiarrette

Problem
No test coverage measurement exists. Contributors can't see which code paths are untested, and there's no coverage badge in the README to signal project quality.

Proposed solution

  • Add pytest-cov to dev dependencies
  • Add --cov=src/mcpplay --cov-report=xml to the CI test step
  • Upload to Codecov or Coveralls (free for OSS)
  • Add coverage badge to README
  • Set a minimum threshold (e.g., 80%) that fails CI if coverage drops

Alternatives considered
Coverage without a badge. The badge in the README is what signals quality to potential users and contributors at first glance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttestingTests and test infrastructure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions