PureYAML/scripts/check-yaml-test-suite.sh
Mihaela Mihaljevic 13a3859e21 test(conformance): track YAML test suite gaps
Vendor the 206 official YAML test suite cases (yaml/yaml-test-suite, data branch, commit 6ad3d2c) that PureYAML does not yet handle correctly, under Tests/Fixtures/yaml-test-suite/, with a manifest recording each gap's category and current behavior.

Add an opt-in conformance sweep (scripts/check-yaml-test-suite.sh, gated behind PUREYAML_RUN_YAML_TEST_SUITE=1) that reproduces every recorded gap, so a future fix must update the manifest. Document the measured result (196/402 passing) and the ordered plan for closing the gaps in docs/YAML_TEST_SUITE_CONFORMANCE.md.

No parser behavior changed.
2026-06-23 19:34:18 +02:00

10 lines
408 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Runs the opt-in conformance sweep over the vendored YAML test suite gaps.
# Each case in Tests/Fixtures/yaml-test-suite-gaps.yaml is a documented gap:
# the sweep verifies PureYAML's current behavior still matches the recorded
# `current` status, so any fix is forced to update the manifest.
PUREYAML_RUN_YAML_TEST_SUITE=1 swift test --filter YAMLTestSuiteGapsTests