Repository navigation
Fix Specs coverage in CI builds and raise VerificationGlue to 0.5.0-preview.1 - #140
Merged
Merged
Conversation
…review.1 coverlet.console does not read the CoverletSourceRootsMapping file, so the /_/ source paths of a ContinuousIntegrationBuild left it no local sources and it skipped every module. The coverage build now keeps real source paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
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.
What changed
scripts/test-verificationglue.shbuilds the VerificationGlue.Tests projects with-p:DeterministicSourcePaths=falsewhen it runs them under coverlet.console. The DependencyModules.Specs report now has real figures in CI. Before, its module table was empty and Total was 0%.VerificationGlueVersioninDirectory.Build.propsis now 0.5.0-preview.1. That brings Microsoft.Testing.Platform 3.0.0-preview.26566.9. Nothing else needed changing.Why
CI sets
ContinuousIntegrationBuild=true, which writes/_/...source paths into the PDBs. coverlet.console finds no local source for any module and skips them all. The VSTest suites avoid this because coverlet.collector's build targets write aCoverletSourceRootsMapping_<assembly>file. coverlet.console 6.0.2 and 10.1.1 both ignore that file, even with the collector's targets imported into the Specs project. I tried that and it still reported 0%. coverlet.MTP 10.1.1 and Microsoft.Testing.Extensions.CodeCoverage 18.12.0 both depend on Microsoft.Testing.Platform 2.x, and the Specs app runs MTP 3.0 preview, so I did not use either.The property also rebuilds the referenced
srcprojects without deterministic paths. Later CI steps do not reuse those outputs, becauseverify-packages.shpacks without--no-build.This unblocks #137 and #138, whose moved tests counted as 0% in CI. In CI run 45927930614 for #137, merged coverage was 68.4%.
How it was tested
Every run below set
GITHUB_ACTIONS=true, so the builds were CI builds.dotnet csharpier check .,scripts/coverage.sh,scripts/test-xunit.sh 4andscripts/verify-packages.shall pass. The Specs project runs 124 tests. Its report covers DependencyModules.Runtime at 45.5%, the code its RuntimeTests exercise. The other modules are at 0%, because main's Specs tests do not reach them.test-verificationglue.shlaid over it, from a detached checkout of the fetched ref. Its branch was not changed. The Specs project runs 889 tests, and its report covers SourceGenerator at 90.4% and Runtime at 92.4%. The merged figure stays at 92.7% (8920 of 9615 lines), so moving tests into the Specs project no longer lowers it.That run used VerificationGlue 0.3.0-preview.1, PR #137's version. I did not run #137 or #138 on 0.5.0-preview.1, and I did not change either branch.
🤖 Generated with Claude Code
Opened by Agent Driver for step
stp-vgdm-coverage-fixof Tasktsk-verificationglue.