<?xml version="1.0" encoding="utf-8" ?>
<xs:schema
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="https://schemas.junit.org/open-test-reporting"
	elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			The JUnit Platform's extension of Open Test Reporting: metadata of a test or container, written into the
			'metadata' element of the core namespace. The JUnit Platform names the namespace's schema
			'https://schemas.junit.org/open-test-reporting/junit-1.9.xsd'; its source is
			junit-platform-reporting/src/main/resources/org/junit/platform/reporting/open/xml/junit.xsd in
			https://github.com/junit-team/junit-framework. This schema declares the same three elements.
		</xs:documentation>
	</xs:annotation>

	<xs:element name="uniqueId" type="xs:string">
		<xs:annotation>
			<xs:documentation xml:lang="en">
				The unique ID of the test or container, e.g. '[engine:junit-jupiter]/[class:my.pack.MyClassTest]'.
			</xs:documentation>
		</xs:annotation>
	</xs:element>

	<xs:element name="legacyReportingName" type="xs:string">
		<xs:annotation>
			<xs:documentation xml:lang="en">
				The name for reporting tools, which can't show a display name, e.g. a class or method name.
			</xs:documentation>
		</xs:annotation>
	</xs:element>

	<xs:element name="type">
		<xs:annotation>
			<xs:documentation xml:lang="en">
				The kind of the test descriptor: a test, a container of tests, or both.
			</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="TEST"/>
				<xs:enumeration value="CONTAINER"/>
				<xs:enumeration value="CONTAINER_AND_TEST"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
</xs:schema>
