Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for Schematron against instance files to the transpile test suite #30

Open
martindholmes opened this issue May 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@martindholmes
Copy link
Collaborator

We currently validate our generated RNG and test it against both valid and invalid instance files; and we validate our Schematron output. But we don't yet test our Schematron output against valid and invalid instance files. This should be part of the test process.

@martindholmes martindholmes added the bug Something isn't working label May 22, 2024
@martindholmes
Copy link
Collaborator Author

Summary of the approach we're going to take:

  1. @sydb will write an XSLT that takes the SVRL output from a validation operation and extracts from it only the error message text, and then sequences all the error messages alphabetically, providing a text file we can use for diffing against expected results.
  2. We will add Schematron valid and invalid structures to the existing valid and invalid test files so that we don't have to proliferate tests files, and particularly, we don't have to differentiate between files intended for rng test and files intended for Schematron tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants