Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JUnitXMLParser ¶
type JUnitXMLParser struct {
XMLFile string
Parsed *TestSuite
Counters *JUnitCounter
Failures []string
Cases []*TestCase
}
func NewJUnitXMLParser ¶
func NewJUnitXMLParser(xmlFile string) (*JUnitXMLParser, error)
type TestCase ¶
type TestCase struct {
Name string `xml:"name,attr"`
Time string `xml:"time,attr"`
Failure string `xml:"failure"`
Skipped propSkipped `xml:"skipped"`
SystemOut string `xml:"system-out"`
Status TestStatus
}
type TestStatus ¶
type TestStatus string
Parse the XML data (JUnit created by openshift-tests)
const ( TestStatusPass TestStatus = "pass" TestStatusFail TestStatus = "fail" TestStatusSkipped TestStatus = "skipped" )
type TestSuite ¶
type TestSuite struct {
XMLName xml.Name `xml:"testsuite"`
Name string `xml:"name,attr"`
Tests int `xml:"tests,attr"`
Skipped int `xml:"skipped,attr"`
Failures int `xml:"failures,attr"`
Time string `xml:"time,attr"`
Property Property `xml:"property"`
Properties Property `xml:"properties,omitempty"`
TestCases []TestCase `xml:"testcase"`
}
Click to show internal directories.
Click to hide internal directories.