Skip to content

Commit 91d16c3

Browse files
committed
Fix formatting of XML schema files
1 parent 6cb417a commit 91d16c3

File tree

2 files changed

+149
-108
lines changed

2 files changed

+149
-108
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!--~ Licensed to the Apache Software Foundation (ASF) under one~ or more contributor license agreements. See the NOTICE file~ distributed with this work for additional information~ regarding copyright ownership. The ASF licenses this file~ to you under the Apache License, Version 2.0 (the~ "License"); you may not use this file except in compliance~ with the License. You may obtain a copy of the License at~~ http://www.apache.org/licenses/LICENSE-2.0~~ Unless required by applicable law or agreed to in writing,~ software distributed under the License is distributed on an~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY~ KIND, either express or implied. See the License for the~ specific language governing permissions and limitations~ under the License.--><xsd:schema version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="failsafe-summary"> <xsd:complexType> <xsd:sequence> <xsd:element name="completed" type="xsd:int"/> <xsd:element name="errors" type="xsd:int"/> <xsd:element name="failures" type="xsd:int"/> <xsd:element name="skipped" type="xsd:int"/> <xsd:element name="failureMessage" type="xsd:string" nillable="true"/> </xsd:sequence> <xsd:attribute name="result" type="errorType" use="optional"/> <xsd:attribute name="timeout" type="xsd:boolean" use="required"/> </xsd:complexType> </xsd:element> <xsd:simpleType name="errorType"> <xsd:restriction base="xsd:string"> <xsd:enumeration id="FAILURE" value="255"/> <xsd:enumeration id="NO_TESTS" value="254"/> </xsd:restriction> </xsd:simpleType></xsd:schema>
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one
4+
~ or more contributor license agreements. See the NOTICE file
5+
~ distributed with this work for additional information
6+
~ regarding copyright ownership. The ASF licenses this file
7+
~ to you under the Apache License, Version 2.0 (the
8+
~ "License"); you may not use this file except in compliance
9+
~ with the License. You may obtain a copy of the License at
10+
~
11+
~ http://www.apache.org/licenses/LICENSE-2.0
12+
~
13+
~ Unless required by applicable law or agreed to in writing,
14+
~ software distributed under the License is distributed on an
15+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
~ KIND, either express or implied. See the License for the
17+
~ specific language governing permissions and limitations
18+
~ under the License.
19+
-->
20+
<xsd:schema version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
21+
<xsd:element name="failsafe-summary">
22+
<xsd:complexType>
23+
<xsd:sequence>
24+
<xsd:element name="completed" type="xsd:int"/>
25+
<xsd:element name="errors" type="xsd:int"/>
26+
<xsd:element name="failures" type="xsd:int"/>
27+
<xsd:element name="skipped" type="xsd:int"/>
28+
<xsd:element name="failureMessage" type="xsd:string" nillable="true"/>
29+
</xsd:sequence>
30+
<xsd:attribute name="result" type="errorType" use="optional"/>
31+
<xsd:attribute name="timeout" type="xsd:boolean" use="required"/>
32+
</xsd:complexType>
33+
</xsd:element>
34+
<xsd:simpleType name="errorType">
35+
<xsd:restriction base="xsd:string">
36+
<xsd:enumeration id="FAILURE" value="255"/>
37+
<xsd:enumeration id="NO_TESTS" value="254"/>
38+
</xsd:restriction>
39+
</xsd:simpleType>
40+
</xsd:schema>
41+

maven-surefire-plugin/src/site/resources/xsd/surefire-test-report.xsd

+108-107
Original file line numberDiff line numberDiff line change
@@ -18,115 +18,116 @@
1818
~ under the License.
1919
-->
2020
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0.2">
21-
<xs:element name="testsuite">
22-
<xs:complexType>
21+
<xs:element name="testsuite">
22+
<xs:complexType>
23+
<xs:sequence>
24+
<xs:element name="properties" minOccurs="0">
25+
<xs:complexType>
2326
<xs:sequence>
24-
<xs:element name="properties" minOccurs="0">
25-
<xs:complexType>
26-
<xs:sequence>
27-
<xs:element name="property" minOccurs="0" maxOccurs="unbounded">
28-
<xs:complexType>
29-
<xs:attribute name="name" type="xs:string" use="required"/>
30-
<xs:attribute name="value" type="xs:string" use="required"/>
31-
</xs:complexType>
32-
</xs:element>
33-
</xs:sequence>
34-
</xs:complexType>
35-
</xs:element>
36-
<xs:element name="testcase" minOccurs="0" maxOccurs="unbounded">
37-
<xs:complexType>
38-
<xs:sequence>
39-
<xs:element name="failure" nillable="true" minOccurs="0" maxOccurs="unbounded">
40-
<xs:complexType>
41-
<xs:simpleContent>
42-
<xs:extension base="xs:string">
43-
<xs:attribute name="message" type="xs:string"/>
44-
<xs:attribute name="type" type="xs:string"/>
45-
</xs:extension>
46-
</xs:simpleContent>
47-
</xs:complexType>
48-
</xs:element>
49-
<xs:element name="rerunFailure" minOccurs="0" maxOccurs="unbounded">
50-
<xs:complexType>
51-
<xs:sequence>
52-
<xs:element name="stackTrace" type="xs:string"/>
53-
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
54-
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
55-
</xs:sequence>
56-
<xs:attribute name="message" type="xs:string"/>
57-
<xs:attribute name="type" type="xs:string"/>
58-
</xs:complexType>
59-
</xs:element>
60-
<xs:element name="flakyFailure" minOccurs="0" maxOccurs="unbounded">
61-
<xs:complexType>
62-
<xs:sequence>
63-
<xs:element name="stackTrace" type="xs:string"/>
64-
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
65-
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
66-
</xs:sequence>
67-
<xs:attribute name="message" type="xs:string"/>
68-
<xs:attribute name="type" type="xs:string"/>
69-
</xs:complexType>
70-
</xs:element>
71-
<xs:element name="skipped" nillable="true" minOccurs="0" maxOccurs="1">
72-
<xs:complexType>
73-
<xs:simpleContent>
74-
<xs:extension base="xs:string">
75-
<xs:attribute name="message" type="xs:string"/>
76-
</xs:extension>
77-
</xs:simpleContent>
78-
</xs:complexType>
79-
</xs:element>
80-
<xs:element name="error" nillable="true" minOccurs="0" maxOccurs="1">
81-
<xs:complexType>
82-
<xs:simpleContent>
83-
<xs:extension base="xs:string">
84-
<xs:attribute name="message" type="xs:string"/>
85-
<xs:attribute name="type" type="xs:string"/>
86-
</xs:extension>
87-
</xs:simpleContent>
88-
</xs:complexType>
89-
</xs:element>
90-
<xs:element name="rerunError" minOccurs="0" maxOccurs="unbounded">
91-
<xs:complexType>
92-
<xs:sequence>
93-
<xs:element name="stackTrace" type="xs:string"/>
94-
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
95-
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
96-
</xs:sequence>
97-
<xs:attribute name="message" type="xs:string"/>
98-
<xs:attribute name="type" type="xs:string"/>
99-
</xs:complexType>
100-
</xs:element>
101-
<xs:element name="flakyError" minOccurs="0" maxOccurs="unbounded">
102-
<xs:complexType>
103-
<xs:sequence>
104-
<xs:element name="stackTrace" type="xs:string"/>
105-
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
106-
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
107-
</xs:sequence>
108-
<xs:attribute name="message" type="xs:string"/>
109-
<xs:attribute name="type" type="xs:string"/>
110-
</xs:complexType>
111-
</xs:element>
112-
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
113-
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
114-
</xs:sequence>
115-
<xs:attribute name="name" type="xs:string" use="required"/>
116-
<xs:attribute name="classname" type="xs:string"/>
117-
<xs:attribute name="group" type="xs:string"/>
118-
<xs:attribute name="time" type="xs:float" use="required"/>
119-
</xs:complexType>
120-
</xs:element>
27+
<xs:element name="property" minOccurs="0" maxOccurs="unbounded">
28+
<xs:complexType>
29+
<xs:attribute name="name" type="xs:string" use="required"/>
30+
<xs:attribute name="value" type="xs:string" use="required"/>
31+
</xs:complexType>
32+
</xs:element>
33+
</xs:sequence>
34+
</xs:complexType>
35+
</xs:element>
36+
<xs:element name="testcase" minOccurs="0" maxOccurs="unbounded">
37+
<xs:complexType>
38+
<xs:sequence>
39+
<xs:element name="failure" nillable="true" minOccurs="0" maxOccurs="unbounded">
40+
<xs:complexType>
41+
<xs:simpleContent>
42+
<xs:extension base="xs:string">
43+
<xs:attribute name="message" type="xs:string"/>
44+
<xs:attribute name="type" type="xs:string"/>
45+
</xs:extension>
46+
</xs:simpleContent>
47+
</xs:complexType>
48+
</xs:element>
49+
<xs:element name="rerunFailure" minOccurs="0" maxOccurs="unbounded">
50+
<xs:complexType>
51+
<xs:sequence>
52+
<xs:element name="stackTrace" type="xs:string"/>
53+
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
54+
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
55+
</xs:sequence>
56+
<xs:attribute name="message" type="xs:string"/>
57+
<xs:attribute name="type" type="xs:string"/>
58+
</xs:complexType>
59+
</xs:element>
60+
<xs:element name="flakyFailure" minOccurs="0" maxOccurs="unbounded">
61+
<xs:complexType>
62+
<xs:sequence>
63+
<xs:element name="stackTrace" type="xs:string"/>
64+
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
65+
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
66+
</xs:sequence>
67+
<xs:attribute name="message" type="xs:string"/>
68+
<xs:attribute name="type" type="xs:string"/>
69+
</xs:complexType>
70+
</xs:element>
71+
<xs:element name="skipped" nillable="true" minOccurs="0" maxOccurs="1">
72+
<xs:complexType>
73+
<xs:simpleContent>
74+
<xs:extension base="xs:string">
75+
<xs:attribute name="message" type="xs:string"/>
76+
</xs:extension>
77+
</xs:simpleContent>
78+
</xs:complexType>
79+
</xs:element>
80+
<xs:element name="error" nillable="true" minOccurs="0" maxOccurs="1">
81+
<xs:complexType>
82+
<xs:simpleContent>
83+
<xs:extension base="xs:string">
84+
<xs:attribute name="message" type="xs:string"/>
85+
<xs:attribute name="type" type="xs:string"/>
86+
</xs:extension>
87+
</xs:simpleContent>
88+
</xs:complexType>
89+
</xs:element>
90+
<xs:element name="rerunError" minOccurs="0" maxOccurs="unbounded">
91+
<xs:complexType>
92+
<xs:sequence>
93+
<xs:element name="stackTrace" type="xs:string"/>
94+
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
95+
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
96+
</xs:sequence>
97+
<xs:attribute name="message" type="xs:string"/>
98+
<xs:attribute name="type" type="xs:string"/>
99+
</xs:complexType>
100+
</xs:element>
101+
<xs:element name="flakyError" minOccurs="0" maxOccurs="unbounded">
102+
<xs:complexType>
103+
<xs:sequence>
104+
<xs:element name="stackTrace" type="xs:string"/>
105+
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
106+
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
107+
</xs:sequence>
108+
<xs:attribute name="message" type="xs:string"/>
109+
<xs:attribute name="type" type="xs:string"/>
110+
</xs:complexType>
111+
</xs:element>
112+
<xs:element name="system-out" type="xs:string" minOccurs="0"/>
113+
<xs:element name="system-err" type="xs:string" minOccurs="0"/>
121114
</xs:sequence>
122-
<xs:attribute name="version" type="xs:string"/>
123115
<xs:attribute name="name" type="xs:string" use="required"/>
124-
<xs:attribute name="time" type="xs:float"/>
125-
<xs:attribute name="tests" type="xs:string" use="required"/>
126-
<xs:attribute name="errors" type="xs:string" use="required"/>
127-
<xs:attribute name="skipped" type="xs:string" use="required"/>
128-
<xs:attribute name="failures" type="xs:string" use="required"/>
116+
<xs:attribute name="classname" type="xs:string"/>
129117
<xs:attribute name="group" type="xs:string"/>
130-
</xs:complexType>
131-
</xs:element>
118+
<xs:attribute name="time" type="xs:float" use="required"/>
119+
</xs:complexType>
120+
</xs:element>
121+
</xs:sequence>
122+
<xs:attribute name="version" type="xs:string"/>
123+
<xs:attribute name="name" type="xs:string" use="required"/>
124+
<xs:attribute name="time" type="xs:float"/>
125+
<xs:attribute name="tests" type="xs:string" use="required"/>
126+
<xs:attribute name="errors" type="xs:string" use="required"/>
127+
<xs:attribute name="skipped" type="xs:string" use="required"/>
128+
<xs:attribute name="failures" type="xs:string" use="required"/>
129+
<xs:attribute name="group" type="xs:string"/>
130+
</xs:complexType>
131+
</xs:element>
132132
</xs:schema>
133+

0 commit comments

Comments
 (0)