@@ -15,6 +15,7 @@ type TestSuite struct {
1515 Name string `xml:"name,attr"`
1616 Tests int `xml:"tests,attr"`
1717 Failures int `xml:"failures,attr"`
18+ Errors int `xml:"errors,attr"`
1819 Skipped int `xml:"skipped,attr"`
1920 Time float64 `xml:"time,attr"`
2021 TestCases []TestCase `xml:"testcase"`
@@ -25,15 +26,21 @@ type TestCase struct {
2526 XMLName xml.Name `xml:"testcase"`
2627 // ConfigurationHash is used to distinguish the same test case runs,
2728 // performed with different build configurations (e.g., Debug vs. Release) or different devices/simulators
28- ConfigurationHash string `xml:"configuration-hash,attr"`
29- Name string `xml:"name,attr"`
30- ClassName string `xml:"classname,attr"`
31- Time float64 `xml:"time,attr"`
32- // TODO: Currently a JUnit report's TestCase.Error and TestCase.SystemErr is merged into TestCase.Failure.Value field,
33- // this way test execution errors are not distinguished from test failures.
34- Failure * Failure `xml:"failure,omitempty"`
35- Skipped * Skipped `xml:"skipped,omitempty"`
36- Properties * Properties `xml:"properties,omitempty"`
29+ ConfigurationHash string `xml:"configuration-hash,attr"`
30+ Name string `xml:"name,attr"`
31+ ClassName string `xml:"classname,attr"`
32+ Time float64 `xml:"time,attr"`
33+ Error * Error `xml:"error,omitempty"`
34+ Failure * Failure `xml:"failure,omitempty"`
35+ Skipped * Skipped `xml:"skipped,omitempty"`
36+ Properties * Properties `xml:"properties,omitempty"`
37+ SystemOut * SystemOut `xml:"system-out,omitempty"`
38+ SystemErr * SystemErr `xml:"system-err,omitempty"`
39+ }
40+
41+ type Error struct {
42+ XMLName xml.Name `xml:"error,omitempty"`
43+ Value string `xml:",chardata"`
3744}
3845
3946type Failure struct {
@@ -43,6 +50,7 @@ type Failure struct {
4350
4451type Skipped struct {
4552 XMLName xml.Name `xml:"skipped,omitempty"`
53+ Value string `xml:",chardata"`
4654}
4755
4856type Property struct {
@@ -55,3 +63,13 @@ type Properties struct {
5563 XMLName xml.Name `xml:"properties"`
5664 Property []Property `xml:"property"`
5765}
66+
67+ type SystemOut struct {
68+ XMLName xml.Name `xml:"system-out,omitempty"`
69+ Value string `xml:",chardata"`
70+ }
71+
72+ type SystemErr struct {
73+ XMLName xml.Name `xml:"system-err,omitempty"`
74+ Value string `xml:",chardata"`
75+ }
0 commit comments