Skip to content

Raise test quality bar: coverage gate and diagnostic assertions - #55

Merged
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
ubiquitous-funicular
Aug 3, 2026
Merged

Raise test quality bar: coverage gate and diagnostic assertions#55
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
ubiquitous-funicular

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Member

Summary

Brings the test suite closer to production-grade standards by raising the code coverage gate to match measured coverage and tightening several bare Should -Throw assertions so failures are diagnostic.

Changes

  • .github/PSModule.yml: raise Test.CodeCoverage.PercentTarget from 25 to 80.
  • tests/ConvertFrom-Yaml.Tests.ps1: add -ExpectedMessage patterns for duplicate-key, undefined-alias, and resource-limit error cases.
  • tests/ConvertTo-Yaml.Tests.ps1: add -ExpectedMessage patterns for depth, node, and scalar limit error cases.

Validation

  • Ran ConvertFrom-Yaml.Tests.ps1 and ConvertTo-Yaml.Tests.ps1: 109 passed, 0 failed.
  • Full suite previously measured 85.24% code coverage with 405 passed, 0 failed, 4 skipped (skipped tests are platform-specific filesystem cases).

Related

  • Quality review identified the 25% coverage target as below production grade.

The actual test coverage is 85%, so the 25% gate was far below production grade and allowed regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add expected-message patterns to duplicate-key, undefined-alias, and resource-limit tests so failures are more diagnostic and match the documented error classifications.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 3, 2026 03:12
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit e89aa08 into main Aug 3, 2026
66 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the ubiquitous-funicular branch August 3, 2026 03:12
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

✅ New release: PowerShell Gallery - Yaml 1.0.1

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

✅ New release: GitHub - Yaml 1.0.1

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