Skip to content

ci: Add CodeCov integration for code coveerage reporting - #21

Merged
steingran merged 1 commit into
mainfrom
codecov-changes
Nov 9, 2025
Merged

ci: Add CodeCov integration for code coveerage reporting#21
steingran merged 1 commit into
mainfrom
codecov-changes

Conversation

@steingran

@steingran steingran commented Nov 9, 2025

Copy link
Copy Markdown
Owner

Description

Add CodeCov integration for code coveerage reporting

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🧪 Test improvements
  • ⚡ Performance improvement
  • ♻️ Code refactoring
  • 🔧 Maintenance/chore

Related Issue

Changes Made

  • Add code coverage collection to build-and-test workflow
  • Add code coverage collection to publish-nuget workflow
  • Upload coverage reports to CodeCov in both workflows
  • Create codecov.yml to configure coverage targets and exclusions
  • Add CodeCov badge to README.md

Coverage is collected using coverlet's XPlat Code Coverage and uploaded to CodeCov for tracking and PR comments. Test and sample projects are excluded from coverage calculations.

Testing

  • Unit tests pass locally
  • Integration tests pass locally
  • Added new tests for new functionality
  • All existing tests still pass

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Labels

Additional Notes

@steingran steingran added the maintenance Repository maintenance label Nov 9, 2025
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 9, 2025
@steingran
steingran requested a review from Copilot November 9, 2025 21:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Codecov integration to enable code coverage tracking and reporting for the MultiLock project. The changes include a Codecov configuration file, a coverage badge in the README, and updates to CI/CD workflows to collect and upload coverage data.

Key Changes

  • Added Codecov configuration with coverage thresholds and ignore patterns for test/sample files
  • Integrated XPlat Code Coverage collection in both build-and-test and publish-nuget workflows
  • Added Codecov badge to README for visibility of coverage status

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
codecov.yml New Codecov configuration defining coverage requirements, status checks, and paths to ignore
README.md Added Codecov badge to display coverage status on the main branch
.github/workflows/build-and-test.yml Updated to collect code coverage and upload results to Codecov
.github/workflows/publish-nuget.yml Updated to collect code coverage and upload results to Codecov

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread codecov.yml Outdated
Comment thread .github/workflows/build-and-test.yml Outdated
Comment thread .github/workflows/publish-nuget.yml Outdated
Comment thread .github/workflows/build-and-test.yml Outdated
Comment thread .github/workflows/publish-nuget.yml
Comment thread .github/workflows/build-and-test.yml
Comment thread .github/workflows/publish-nuget.yml
- Add code coverage collection to build-and-test workflow
- Add code coverage collection to publish-nuget workflow
- Upload coverage reports to CodeCov in both workflows
- Create codecov.yml to configure coverage targets and exclusions
- Add CodeCov badge to README.md

Coverage is collected using coverlet's XPlat Code Coverage and
uploaded to CodeCov for tracking and PR comments. Test and sample
projects are excluded from coverage calculations.
@steingran
steingran merged commit 866ac67 into main Nov 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation maintenance Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants