anansi-project / comicinfo

ComicInfo.xml's new home
https://anansi-project.github.io/docs/category/comicinfo
MIT License
136 stars 8 forks source link

Add pass-fail validation testing for documents #30

Open h3xx opened 2 years ago

h3xx commented 2 years ago

Put XML files here that should either pass or fail validation against the XSD schema.

For files that should validate against every version of the schema, use the all directory.

Otherwise use <version> as the directory name.

E.g. tests/v2.1/invalid/foo.xml.

gotson commented 2 years ago

You made changes in the schemas in this PR, which shouldn't be impacted.

h3xx commented 2 years ago

You made changes in the schemas in this PR, which shouldn't be impacted.

You're right, but that was because I initially made this PR to add CI testing for a schema change I wanted to make.

The change I wanted to make was included intentionally because it fixed a document validation issue, but I took it out per your request. I'll add the test into my other PR (#29).

h3xx commented 2 years ago

If you don't think this is flexible enough, I could add support for an annotation in the XML doc's comment like @exclude v3.*. Or @group v2.1 to include testing against v2.1.