Demos¶
Definitive XML Schema¶
Historically this was the first integration test suite of xsdata and is still being used to make sure things still work between minor code changes.
It’s based on the samples from the book Definitive XML Schema by Priscilla Walmsley that cover most of the basic XML Schema language traits
The test suite is using the auto generated models to parse the sample documents and serializes them back to JSON and XML documents.
Samples Source
Definitive XML Schema by Priscilla Walmsley (c) 2012 Prentice Hall PTR
W3C XML Schema Suite¶
xsdata is constantly tested and measured against the W3C XML Schema 1.1 test suite.
The suite is quite extensible and consist of more than 14k valid tests cases for both XML and JSON Binding.
Hint
Because of the size and time it takes to run the test runner is on it’s own repo.
At least until I can manage to reduce the total run time which is about 8 minutes without coverage.
Report¶
XML Results: 12 failed, 14575 passed, 88 skipped, 42 warnings
JSON Results: 120 failed, 14546 passed, 64 warnings
✨✨✨✨
Hint
The xmlschema is used to validate xml output.
The json mode performs roundtrip conversions and compares the initial and final outputs