Skip to content

test(scripts): add coverage for check-release-claims.sh - #3187

Open
Hoang130203 wants to merge 1 commit into
Osmantic:mainfrom
Hoang130203:test/check-release-claims-coverage
Open

test(scripts): add coverage for check-release-claims.sh#3187
Hoang130203 wants to merge 1 commit into
Osmantic:mainfrom
Hoang130203:test/check-release-claims-coverage

Conversation

@Hoang130203

Copy link
Copy Markdown

Summary

  • scripts/check-release-claims.sh cross-checks manifest.json's OS support flags against docs/SUPPORT-MATRIX.md and docs/PLATFORM-TRUTH-TABLE.md wording claims, but had no test — unlike check-compatibility.sh and check-version-consistency.py, which now have coverage.
  • Adds tests/test-check-release-claims.sh, following the sandboxed-script-copy pattern used by tests/test-check-compatibility.sh.
  • Covers: real repo state passing end-to-end, missing manifest/docs, each of the 4 manifest support-flag checks failing individually, each of the 3 doc-wording checks failing individually, and a fully consistent pass.

Test plan

  • bash -n tests/test-check-release-claims.sh passes
  • Verified all 9 cases locally against a jq-compatible shim implementing the exact jq -r '<path>' <file> queries this script uses (no jq binary available in this sandbox) — 9/9 passed
  • Requires jq (same requirement as check-release-claims.sh itself)
check-release-claims.sh cross-checks manifest.json's OS support flags
against docs/SUPPORT-MATRIX.md and docs/PLATFORM-TRUTH-TABLE.md
wording, but had no test. Covers the real repo passing end-to-end,
missing manifest/docs, each manifest support-flag violation, each
missing doc claim, and a fully consistent pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant