You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the lack of implementation consistency in software that generates JUnit XML files, this library needs to take a somewhat looser approach to ingestion. As a consequence, many different possible JUnit formats can easily be ingested.
87
+
88
+
A single top level `testsuite` tag, containing multiple `testcase` instances.
89
+
90
+
```xml
91
+
<testsuite>
92
+
<testcasename="Test case 1" />
93
+
<testcasename="Test case 2" />
94
+
</testsuite>
95
+
```
96
+
97
+
A single top level `testsuites` tag, containing multiple `testsuite` instances.
98
+
99
+
```xml
100
+
<testsuites>
101
+
<testsuite>
102
+
<testcasename="Test case 1" />
103
+
<testcasename="Test case 2" />
104
+
</testsuite>
105
+
</testsuites>
106
+
```
107
+
108
+
(Despite not technically being valid XML) Multiple top level `testsuite` tags, containing multiple `testcase` instances.
109
+
110
+
```xml
111
+
<testsuite>
112
+
<testcasename="Test case 1" />
113
+
<testcasename="Test case 2" />
114
+
</testsuite>
115
+
<testsuite>
116
+
<testcasename="Test case 3" />
117
+
<testcasename="Test case 4" />
118
+
</testsuite>
119
+
```
120
+
121
+
In all cases, omitting (or even duplicated) the XML declaration tag is allowed.
122
+
123
+
```xml
124
+
<?xml version="1.0" encoding="UTF-8"?>
125
+
```
126
+
18
127
## License
19
128
20
129
This library is distributed under the [MIT License](https://opensource.org/licenses/MIT), see [LICENSE.txt](https://github.com/joshdk/go-junit/blob/master/LICENSE.txt) for more information.
0 commit comments