Skip to content

chore(build-pr): mirror the pr.yaml test-assembly coverage gate - #380

Merged
Chris-Wolfgang merged 2 commits into
mainfrom
chore/build-pr-test-coverage-gate
Sep 27, 2026
Merged

Chris-Wolfgang merged 2 commits into
mainfrom
chore/build-pr-test-coverage-gate

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

scripts/build-pr.ps1 is the local mirror of pr.yaml. This ports repo-template's coverage step so local runs match CI:

  • a new -TestCoverageThreshold parameter (default 100) for assemblies from projects under tests/;
  • the Summary.txt parser is anchored on ^(\S+) instead of ^\s*(\S+), so indented class rows are no longer gated as projects;
  • it now fails (not skips) when Summary.txt is missing or zero modules match.

This is independent of the protected pr.yaml/release.yaml PR; the two change different files.

Verification

  • pwsh ./scripts/build-pr.ps1 -SkipSecurity on this branch: exit 0, Step 3: Coverage Report (src 90%, tests 100%), Wolfgang.TryPattern - 100%, Wolfgang.TryPattern.Tests.Unit - 100%, Coverage gate passed, All checks passed.
  • The PowerShell parser reports no errors.

Refs #310

🤖 Generated with Claude Code

Chris-Wolfgang and others added 2 commits September 26, 2026 19:25
-TestCoverageThreshold (default 100) for assemblies from projects under
tests/, and anchor the Summary.txt parser on `^(\S+)` so indented class
rows are no longer gated as projects. Also fail (not skip) when
Summary.txt is missing or zero modules match. Ported from repo-template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Chris-Wolfgang
Chris-Wolfgang merged commit 6859060 into main Sep 27, 2026
18 checks passed
@Chris-Wolfgang
Chris-Wolfgang deleted the chore/build-pr-test-coverage-gate branch September 27, 2026 00:39
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.

1 participant