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

Testing and repairs including JSON Schema generation enhancements #119

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

wendellpiez
Copy link
Collaborator

This PR, when ready, will contain:

  • XSpecs unit testing XML converter generator XSLT
  • XSpec and XProc testing for schema generation and other processes
  • InspectorXSLT developments
  • Refactoring submodules

And other improvements.

Apologies for the size of this PR!

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you squashed any non-relevant commits and commit messages? [instructions]
  • Do all automated CI/CD checks pass?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you included examples of how to use your new feature(s)?
  • Have you updated all website and readme documentation affected by the changes you made? Changes to the website can be made in the website/content directory of your branch.

* XSpec tests and minor XSLT improvements

Co-authored-by: Wendell Piez <wendell.piez@nist.gov>
Copy link

github-actions bot commented Jun 7, 2024

XSpec Test Results

  5 files  +  3   93 suites  +53   0s ⏱️ ±0s
232 tests +127  215 ✅ +125  17 💤 +2  0 ❌ ±0 
243 runs  +129  225 ✅ +126  18 💤 +3  0 ❌ ±0 

Results for commit 4e31191. ± Comparison against base commit 04a4a4c.

♻️ This comment has been updated with latest results.

Refactoring submodules; XProc-based testing; XSpec testing of JSON Schema generation; improvements to JSON Schema generation - addressing #105 also #2007.
Integrating branches
Co-authored-by: A.J. Stein <alexander.stein@nist.gov>
@wendellpiez
Copy link
Collaborator Author

#117 is addressed in the file src/converter-gen/Makefile.

In bash, invoke the XSpecs under testing in this folder with make spec-tests or less directly by make test.

It is also invoked under CI/CD, as shown in results.

Planned next is cleanup, build-out and documentation of all testing. Making this easier for devs can be on this punchlist.

@galtm
Copy link
Collaborator

galtm commented Jun 10, 2024

I drilled down into the XSpec Test Results (https://github.com/usnistgov/metaschema-xslt/pull/119/checks?check_run_id=25960758809) by clicking Raw output under There are 229 tests, see "Raw output" for the full list of tests. I wanted to see if the tests ran that #87 (comment) says didn't run in that earlier PR. I searched the raw results for a few of the x:expect labels and they were there. 👍

(The raw results appear to alphabetize the labels, btw.)

@wendellpiez
Copy link
Collaborator Author

Excellent, thanks @galtm. Before this branch is merged, more tests will be placed under the make logic, is the current plan....

wendellpiez and others added 2 commits June 11, 2024 12:24
Includes updates to unit testing, Inspector XSLT, JSON Schema (#105) and others

Co-authored-by: A.J. Stein <alexander.stein@nist.gov>
Mostly testing support -
* Adding Makefile in compose phase to run XSpec - presently showing errors!
* Extending and reorganizing testing, including removing temporary artifacts from git
* Adding subpipeline mistakenly omitted from the last PR
* New Makefile for testing/tinydata
* Mending XSpecs testing Metaschema composition (regression protection); also a new tinydata sample.
* Update src/testing/tinydata/tiny-data/terms-of-art.xml (AJ Stein)
Co-authored-by: A.J. Stein <alexander.stein@nist.gov>

---------

Co-authored-by: A.J. Stein <alexander.stein@nist.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants