.. _SCHEMAS/OpenTestReporting: Open Test Reporting 0.2.0 ######################### The XML schemas of `Open Test Reporting `__: one per namespace, for the elements shared by both formats (core), the event-based and the hierarchical format, and the Java and Git extensions. :file:`OpenTestReporting-0.2.0.xsd` imports all of them and the JUnit Platform's extension, so it validates a file written by the JUnit Platform. Read by :class:`pyEDAA.Reports.Unittesting.OpenTestReporting.Events.Document` and :class:`pyEDAA.Reports.Unittesting.OpenTestReporting.Hierarchy.Document` - see :ref:`UNITTEST/FileFormats/OTR`. The schemas of the core namespace, both formats, and the Java and Git extensions are unmodified copies of Open Test Reporting's schemas in :file:`schema/src/main/resources/org/opentest4j/reporting/schema` (release `r0.2.7 `__), licensed under the `Apache License 2.0 `__. :file:`JUnit.xsd` declares the three elements of the JUnit Platform's namespace ``https://schemas.junit.org/open-test-reporting``, as the JUnit Platform's :file:`junit.xsd` does. .. grid:: 2 .. grid-item:: :columns: 6 .. admonition:: Download * :download:`OpenTestReporting-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/OpenTestReporting-0.2.0.xsd>` * :download:`core-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/core-0.2.0.xsd>` * :download:`events-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/events-0.2.0.xsd>` * :download:`hierarchy-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/hierarchy-0.2.0.xsd>` * :download:`java-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/java-0.2.0.xsd>` * :download:`git-0.2.0.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/git-0.2.0.xsd>` * :download:`JUnit.xsd <../../pyEDAA/Reports/Resources/OpenTestReporting/JUnit.xsd>` .. grid-item:: :columns: 6 .. admonition:: Validate a report All schema files in one directory: .. code-block:: bash xmllint --schema OpenTestReporting-0.2.0.xsd --noout open-test-report.xml .. _SCHEMAS/OpenTestReporting/Source: Source ****** OpenTestReporting-0.2.0.xsd =========================== .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/OpenTestReporting-0.2.0.xsd :language: xml :linenos: core-0.2.0.xsd ============== .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/core-0.2.0.xsd :language: xml :linenos: events-0.2.0.xsd ================ .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/events-0.2.0.xsd :language: xml :linenos: hierarchy-0.2.0.xsd =================== .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/hierarchy-0.2.0.xsd :language: xml :linenos: java-0.2.0.xsd ============== .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/java-0.2.0.xsd :language: xml :linenos: git-0.2.0.xsd ============= .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/git-0.2.0.xsd :language: xml :linenos: JUnit.xsd ========= .. literalinclude:: ../../pyEDAA/Reports/Resources/OpenTestReporting/JUnit.xsd :language: xml :linenos: