Skip to content

ci: match cobertura output of CodeCoverage 18.9 in coverage merge - #5

Merged
monsieurleberre merged 1 commit into
mainfrom
ci/coverage-glob-codecoverage-18-9
Jul 17, 2026
Merged

ci: match cobertura output of CodeCoverage 18.9 in coverage merge#5
monsieurleberre merged 1 commit into
mainfrom
ci/coverage-glob-codecoverage-18-9

Conversation

@monsieurleberre

Copy link
Copy Markdown
Contributor

What

Widens the coverage-merge glob to also match TestResults/**/*.cobertura.xml at the repo root, and drops the now-inaccurate "under tests/" wording from the zero-files error message.

Why

Microsoft.Testing.Extensions.CodeCoverage 18.9.0 changed where a relative --coverage-output lands: 18.8.0 wrote <project>/bin/Release/net*/TestResults/, 18.9.0 anchors it to the platform results directory at the working directory root (TestResults/). Once the dependency bump arrives with the next promotion, the current glob matches zero files on a fresh CI clone and the merge step fails.

The union keeps both layouts working: main today (18.8.0) matches the old path, and the post-promotion tree (18.9.0) matches the new one — nullglob already tolerates whichever side is empty. Verified by running dotnet test --configuration Release against the bumped dependency set: exactly three cobertura files, all at repo-root TestResults/.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Peaceful.Extensions.Hosting 100% 95% 24
Peaceful.Extensions.Telemetry 96% 95% 22
Peaceful.Extensions.Logging 99% 97% 33
Summary 99% (291 / 295) 96% (71 / 74) 79

@monsieurleberre
monsieurleberre merged commit 9097cd7 into main Jul 17, 2026
1 check passed
@monsieurleberre
monsieurleberre deleted the ci/coverage-glob-codecoverage-18-9 branch July 17, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants