Skip to content

[Enhancement]: Add test coverage reporting to CI #24

Description

@shauryagangrade

Problem

The current CI pipeline runs tests but does not provide coverage reports. This makes it difficult to track test coverage over time and identify areas that need more tests.

Proposed solution

Add test coverage reporting to the CI pipeline:

  • Use pytest-cov to generate coverage reports
  • Set up coverage thresholds (e.g., 80% minimum)
  • Publish coverage reports as GitHub Actions artifacts
  • Add coverage badge to README
  • Consider integrating with Codecov or Coveralls for historical tracking

Update the CI configuration to include:

- run: pip install pytest-cov
- run: pytest --cov=gcode --cov-report=xml --cov-report=html
- uses: actions/upload-artifact@v4
  with:
    name: coverage-report
    path: htmlcov/

Alternatives considered

  • Using a different coverage tool
  • Only tracking coverage locally
  • Ignoring coverage metrics

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions