Raise test quality bar: coverage gate and diagnostic assertions (#55)
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: raiseTest.CodeCoverage.PercentTargetfrom25to80.tests/ConvertFrom-Yaml.Tests.ps1: add-ExpectedMessagepatterns for duplicate-key, undefined-alias, and resource-limit error cases.tests/ConvertTo-Yaml.Tests.ps1: add-ExpectedMessagepatterns for depth, node, and scalar limit error cases.
Validation
- Ran
ConvertFrom-Yaml.Tests.ps1andConvertTo-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.