Replace Coverlet with dotnet-coverage for code coverage collection - #1
Merged
Conversation
…me/ReportGenerator Co-authored-by: scott-wi <7329487+scott-wi@users.noreply.github.com>
Co-authored-by: scott-wi <7329487+scott-wi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix errors in latest GitHub Action run
Fix CI: Replace Linux-only code coverage action with Windows-compatible alternative
Feb 6, 2026
…tion Co-authored-by: scott-wi <7329487+scott-wi@users.noreply.github.com>
Co-authored-by: scott-wi <7329487+scott-wi@users.noreply.github.com>
Copilot
AI
changed the title
Fix CI: Replace Linux-only code coverage action with Windows-compatible alternative
Replace Coverlet with dotnet-coverage for code coverage collection
Feb 6, 2026
scott-wi
approved these changes
Feb 6, 2026
scott-wi
marked this pull request as ready for review
February 6, 2026 19:00
SummarySummary
CoverageClearHostedEndpoint.Tests - 96.6%
ClearHostedService.Tests - 100%
ClearMeasure.HostedEndpoint - 94.4%
ClearMeasure.HostedService - 81.3%
NServiceBus.Core - 20.4%
NServiceBus.Persistence.Sql - 5.6%
Serilog.Extensions.Logging - 3.7%
|
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.
Code coverage collection was failing due to path/format issues with Coverlet (XPlat Code Coverage). Switched to Microsoft's native
dotnet-coveragetool with automatic merging.Changes
build.ps1
--collect:"XPlat Code Coverage"with--collect "Code Coverage".coveragefiles during test executiondotnet-coverage merge --output coverage.cobertura.xml --output-format coberturaTestResults/Coverage/coverage.cobertura.xmlinstead of multiple scattered filesWorkflow
**/coverage.cobertura.xmlto explicitCoverage/coverage.cobertura.xmlDocumentation
Example
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.