Skip to content

fix: treat optional JSON Schema test suite cases as real tests (#913)#915

Merged
DannyvdSluijs merged 5 commits into
mainfrom
feature/fix-optional-test-skipping
Jun 5, 2026
Merged

fix: treat optional JSON Schema test suite cases as real tests (#913)#915
DannyvdSluijs merged 5 commits into
mainfrom
feature/fix-optional-test-skipping

Conversation

@DannyvdSluijs

@DannyvdSluijs DannyvdSluijs commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Previously, any optional test that threw an exception or produced the wrong validation result was silently skipped via markTestSkipped, making regressions in optional test coverage invisible in CI.

Remove the two dynamic markTestSkipped blocks so optional tests are treated identically to required tests. The 76 currently-failing optional tests are added explicitly to the $skip allowlist with comments explaining why each group is not yet supported (bignum, float-overflow, ecmascript-regex, cross-draft, idn-email, idn-hostname, iri, iri-reference, regex format, relative-json-pointer).

Related Issue

Fixes #913

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code follows the code style of this project
  • I have added tests that prove my fix is effective or that my feature works
  • All new and existing tests pass
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional Notes

None

@DannyvdSluijs DannyvdSluijs force-pushed the feature/fix-optional-test-skipping branch from 89101d1 to 2791cb2 Compare June 3, 2026 20:08
DannyvdSluijs and others added 3 commits June 4, 2026 20:38
Previously, any optional test that threw an exception or produced the
wrong validation result was silently skipped via markTestSkipped, making
regressions in optional test coverage invisible in CI.

Remove the two dynamic markTestSkipped blocks so optional tests are
treated identically to required tests. The 76 currently-failing optional
tests are added explicitly to the $skip allowlist with comments
explaining why each group is not yet supported (bignum, float-overflow,
ecmascript-regex, cross-draft, idn-email, idn-hostname, iri,
iri-reference, regex format, relative-json-pointer).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DannyvdSluijs DannyvdSluijs force-pushed the feature/fix-optional-test-skipping branch from 89e8de7 to 3e7c291 Compare June 4, 2026 19:00
@DannyvdSluijs DannyvdSluijs force-pushed the feature/fix-optional-test-skipping branch from 3e7c291 to 13459c6 Compare June 4, 2026 19:11
@DannyvdSluijs DannyvdSluijs self-assigned this Jun 5, 2026
@DannyvdSluijs DannyvdSluijs merged commit eeef76b into main Jun 5, 2026
18 checks passed
@DannyvdSluijs DannyvdSluijs deleted the feature/fix-optional-test-skipping branch June 5, 2026 14:03
github-actions Bot added a commit that referenced this pull request Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The optional test cases from the Json schema test suite are allowed to be skipped allowing for unnoticed regression.

1 participant