Add code coverage collection and Codecov badge#39
Merged
Conversation
Co-authored-by: dex3r <3155725+dex3r@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test code coverage and display badge in Readme.md
Add code coverage collection and Codecov badge
Mar 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automated code coverage collection to the existing .NET CI pipeline and surfaces repository coverage status via a Codecov badge in the README, addressing the lack of coverage reporting in CI.
Changes:
- Update CI to run
dotnet testwithXPlat Code Coveragecollection and store results under./coverage. - Upload collected coverage artifacts to Codecov using
codecov/codecov-action@v5. - Add a Codecov badge to
README.mdpointing at themainbranch report.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Collects coverage during tests and uploads results to Codecov. |
README.md |
Adds Codecov badge for visibility of coverage status on main. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dex3r
approved these changes
Mar 1, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI pipeline had no code coverage instrumentation or reporting. This adds coverage collection and surfaces results via a Codecov badge in the README.
Changes
--collect:"XPlat Code Coverage" --results-directory ./coveragetodotnet test, then uploads results withcodecov/codecov-action@v5mainbranch coverage reportBoth test projects already referenced
coverlet.collector, so no.csprojchanges were needed.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.