GoogleTest JUnit
JUnit XML as written by GoogleTest (--gtest_output=xml).
Read by pyEDAA.Reports.Unittesting.JUnit.GoogleTestJUnit.Document - see GoogleTest JUnit.
Download
GoogleTest-JUnit.xsd (5.0 kiB)
Validate a report
xmllint --schema GoogleTest-JUnit.xsd --noout report.xml
Source
1<?xml version="1.0" encoding="utf-8" ?>
2<xsd:schema
3 version="0.1"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema">
5 <xsd:annotation>
6 <xsd:documentation xml:lang="en">Reversed engineered schema description for JUnit-like unit test summary files.</xsd:documentation>
7 </xsd:annotation>
8
9 <xsd:simpleType name="preservingstring">
10 <xsd:restriction base="xsd:string">
11 <xsd:whiteSpace value="preserve"/>
12 </xsd:restriction>
13 </xsd:simpleType>
14
15 <xsd:complexType name="literalblock">
16 <xsd:simpleContent>
17 <xsd:extension base="preservingstring">
18 <xsd:attribute name="type" type="xsd:string" />
19 <xsd:attribute name="message" type="xsd:string" />
20 </xsd:extension>
21 </xsd:simpleContent>
22 </xsd:complexType>
23
24 <xsd:simpleType name="testcaseStatus">
25 <xsd:restriction base="xsd:string">
26 <xsd:enumeration value="run"/>
27 </xsd:restriction>
28 </xsd:simpleType>
29
30 <xsd:simpleType name="testcaseResult">
31 <xsd:restriction base="xsd:string">
32 <xsd:enumeration value="completed"/>
33 </xsd:restriction>
34 </xsd:simpleType>
35
36 <xsd:complexType name="testcase">
37 <xsd:sequence minOccurs="0">
38 <xsd:choice minOccurs="0">
39 <xsd:element name="skipped" type="literalblock" minOccurs="0">
40 <xsd:annotation>
41 <xsd:documentation xml:lang="en"></xsd:documentation>
42 </xsd:annotation>
43 </xsd:element>
44 <xsd:element name="error" type="literalblock" minOccurs="0">
45 <xsd:annotation>
46 <xsd:documentation xml:lang="en"></xsd:documentation>
47 </xsd:annotation>
48 </xsd:element>
49 <xsd:element name="failure" type="literalblock" minOccurs="0">
50 <xsd:annotation>
51 <xsd:documentation xml:lang="en"></xsd:documentation>
52 </xsd:annotation>
53 </xsd:element>
54 </xsd:choice>
55 <xsd:element name="system-out" type="literalblock" minOccurs="0">
56 <xsd:annotation>
57 <xsd:documentation xml:lang="en"></xsd:documentation>
58 </xsd:annotation>
59 </xsd:element>
60 <xsd:element name="system-err" type="literalblock" minOccurs="0">
61 <xsd:annotation>
62 <xsd:documentation xml:lang="en"></xsd:documentation>
63 </xsd:annotation>
64 </xsd:element>
65 </xsd:sequence>
66 <xsd:attribute name="name" type="xsd:string" use="required" />
67 <xsd:attribute name="classname" type="xsd:string" use="required" />
68 <xsd:attribute name="time" type="xsd:float" use="required" />
69 <xsd:attribute name="timestamp" type="xsd:dateTime" use="required" />
70 <xsd:attribute name="file" type="xsd:string" use="required" />
71 <xsd:attribute name="line" type="xsd:nonNegativeInteger" use="required" />
72 <xsd:attribute name="status" type="testcaseStatus" use="required" />
73 <xsd:attribute name="result" type="testcaseResult" use="required" />
74 </xsd:complexType>
75
76 <xsd:complexType name="testsuite">
77 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
78 <xsd:element name="testcase" type="testcase" minOccurs="0" maxOccurs="unbounded">
79 <xsd:annotation>
80 <xsd:documentation xml:lang="en">Describes the result of an individual testcase.</xsd:documentation>
81 </xsd:annotation>
82 </xsd:element>
83 <xsd:element name="system-out" type="literalblock" minOccurs="0">
84 <xsd:annotation>
85 <xsd:documentation xml:lang="en"></xsd:documentation>
86 </xsd:annotation>
87 </xsd:element>
88 <xsd:element name="system-err" type="literalblock" minOccurs="0">
89 <xsd:annotation>
90 <xsd:documentation xml:lang="en"></xsd:documentation>
91 </xsd:annotation>
92 </xsd:element>
93 </xsd:sequence>
94 <xsd:attribute name="name" type="xsd:string" use="required" />
95 <xsd:attribute name="errors" type="xsd:nonNegativeInteger" use="required" />
96 <xsd:attribute name="failures" type="xsd:nonNegativeInteger" use="required" />
97 <xsd:attribute name="disabled" type="xsd:nonNegativeInteger" use="required" />
98 <xsd:attribute name="skipped" type="xsd:nonNegativeInteger" use="required" />
99 <xsd:attribute name="tests" type="xsd:nonNegativeInteger" use="required" />
100 <xsd:attribute name="time" type="xsd:float" use="required" />
101 <xsd:attribute name="timestamp" type="xsd:dateTime" use="required" />
102 </xsd:complexType>
103
104 <xsd:complexType name="testsuites">
105 <xsd:sequence>
106 <xsd:element name="testsuite" type="testsuite" minOccurs="0" maxOccurs="unbounded">
107 <xsd:annotation>
108 <xsd:documentation xml:lang="en">Describes the aggregated results of multiple testcase.</xsd:documentation>
109 </xsd:annotation>
110 </xsd:element>
111 </xsd:sequence>
112 <xsd:attribute name="name" type="xsd:string" use="required" />
113 <xsd:attribute name="errors" type="xsd:nonNegativeInteger" use="required" />
114 <xsd:attribute name="failures" type="xsd:nonNegativeInteger" use="required" />
115 <xsd:attribute name="disabled" type="xsd:nonNegativeInteger" use="required" />
116 <xsd:attribute name="tests" type="xsd:nonNegativeInteger" use="required" />
117 <xsd:attribute name="time" type="xsd:float" use="required" />
118 <xsd:attribute name="timestamp" type="xsd:dateTime" use="required" />
119 </xsd:complexType>
120
121 <xsd:element name="testsuites" type="testsuites">
122 <xsd:annotation>
123 <xsd:documentation xml:lang="en">Describes the overall result of all testcases in all testsuites.</xsd:documentation>
124 </xsd:annotation>
125 </xsd:element>
126</xsd:schema>