Skip to content

Add verified per-rule Schematron failure fixtures - #5

Merged
TheYoxy merged 1 commit into
developfrom
test/schematron-failure-cases
Oct 9, 2026
Merged

TheYoxy merged 1 commit into
developfrom
test/schematron-failure-cases

Conversation

@TheYoxy

@TheYoxy TheYoxy commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds src/schematron/schematron-failure.int.spec.ts that decodes each fixture and asserts the Schematron service reports the expected rule ID
  • Adds per-rule failure XML fixtures under test/files/schematron/ covering CEN-EN16931, PEPPOL, DE, DK, GR, IT, NL, NO, and SE rules
  • Adds test/files/schematron/README.md documenting the fixture set
  • Test-only change, no production code touched

Testing

  • pnpm exec vp test run src/schematron/schematron-failure.int.spec.ts: Not run
  • Full suite pnpm test: Not run

Add 174 XML fixtures named after the rule they trigger, sourced from the OpenPEPPOL peppol-bis-invoice-3 and CEN eInvoicing-EN16931 per-rule unit tests. Each fixture is a full document the decoder accepts and that the Schematron service reports the matching rule for. Add a data-driven failure spec plus a README documenting provenance and the rules that cannot be represented as decodable XML.
@TheYoxy
TheYoxy merged commit 6aab8af into develop Oct 9, 2026
2 checks passed
@TheYoxy
TheYoxy deleted the test/schematron-failure-cases branch October 9, 2026 16:03
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.3.2-beta.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

1 participant