Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JUnitError ¶
JUnitSkipped represents the error element of JUnit XML format.
type JUnitFailure ¶
JUnitFailure represents the failure element of JUnit XML format.
type JUnitSkipped ¶
JUnitSkipped represents the skipped element of JUnit XML format.
type JUnitTestCase ¶
type JUnitTestCase struct {
XMLName xml.Name `xml:"testcase"`
Package string `xml:"package,attr"`
ClassName string `xml:"classname,attr"`
Time string `xml:"time,attr"`
Failure *JUnitFailure `xml:"failure"`
Skipped *JUnitSkipped `xml:"skipped"`
Error *JUnitError `xml:"error"`
}
JUnitTestCase represents the testcase element of JUnit XML format.
type JUnitTestReport ¶
type JUnitTestReport struct {
XMLName xml.Name `xml:"testsuites"`
TestSuites []*JUnitTestSuite `xml:"testsuite"`
}
JUnitReport represents the JUnit XML format.
type JUnitTestSuite ¶
type JUnitTestSuite struct {
XMLName xml.Name `xml:"testsuite"`
Name string `xml:"name,attr"`
Package string `xml:"package,attr"`
ID string `xml:"id,attr"`
Tests int `xml:"tests,attr"`
Skipped int `xml:"skipped,attr"`
Failures int `xml:"failures,attr"`
Errors int `xml:"errors,attr"`
TestCases []*JUnitTestCase `xml:"testcase"`
}
JUnitTestSuite represents the testsuite element of JUnit XML format.
func DecodeJUnitReport ¶
func DecodeJUnitReport(reader io.Reader) ([]*JUnitTestSuite, error)
DecodeJUnitReport decodes the test results from reader.
Click to show internal directories.
Click to hide internal directories.