Documentation ¶
Index ¶
Constants ¶
const ( // SUCCESS result of automated test SUCCESS int = 0 // FAILURE result of automated test FAILURE int = 1 // ERROR result of automated test ERROR int = 2 // SKIPPED result of automated test SKIPPED int = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct { ReportFileName, ClassName, MethodName string // Test method Result int // Test result }
TestCase represents on automated test case incl. ReportFileName (the automated test result report file), ClassName (Test class), MethodName (Test method/procedure/function), Result (Test result)
type TestReport ¶
TestReport interface implements the parse method which parses test reports
type TestSuite ¶
type TestSuite struct { Name string // Name of Testsuite TestCase []*TestCase // Array of Testcases }
TestSuite is a collection of TestCase
type XUError ¶
type XUError struct { Message string `xml:"message,attr"` Type string `xml:"type,attr"` Text string `xml:",chardata"` }
XUError xunit error struct
type XUFailure ¶
type XUFailure struct { Message string `xml:"message,attr"` Type string `xml:"type,attr"` Text string `xml:",chardata"` }
XUFailure xunit failure struct
type XUProperties ¶
type XUProperties struct {
Property []*XUProperty `xml:"property,omitempty"`
}
XUProperties xunit properties struct
type XUProperty ¶
XUProperty xunit property struct
type XUSkipped ¶
type XUSkipped struct {
Message string `xml:"message,attr,omitempty"`
}
XUSkipped xunit skipped struct
type XUSystemErr ¶
type XUSystemErr struct {
Text string `xml:",chardata" json:",omitempty"`
}
XUSystemErr xunit system err structure
type XUSystemOut ¶
type XUSystemOut struct {
Text string `xml:",chardata" json:",omitempty"`
}
XUSystemOut xunit system out structure
type XUTestReport ¶
type XUTestReport struct { }
XUTestReport xunit test report structure
func (*XUTestReport) Parse ¶
func (xutr *XUTestReport) Parse(reportRootPath string) []TestSuite
Parse a xunit XML test result report
type XUTestcase ¶
type XUTestcase struct { Classname string `xml:"classname,attr,omitempty"` Group string `xml:"group,attr,omitempty"` Name string `xml:"name,attr"` Time string `xml:"time,attr,omitempty"` File string `xml:"file,attr,omitempty"` // Python specific Line string `xml:"line,attr,omitempty"` // Python specific Error *XUError `xml:"error,omitempty"` Skipped *XUSkipped `xml:"skipped,omitempty"` Failure *XUFailure `xml:"failure,omitempty"` ReRunFailure *XUFailure `xml:"rerunFailure,omitempty"` SystemOut *XUSystemOut `xml:"system-out,omitempty"` SystemErr *XUSystemErr `xml:"system-err,omitempty"` }
XUTestcase xunit test case structure
type XUTestsuite ¶
type XUTestsuite struct { Errors string `xml:"errors,attr"` Failures string `xml:"failures,attr"` Name string `xml:"name,attr"` Skipped string `xml:"skipped,attr,omitempty"` Group string `xml:"group,attr,omitempty"` // omit empty to support Python Skips string `xml:"skips,attr,omitempty"` // Python specific Tests string `xml:"tests,attr"` Time string `xml:"time,attr,omitempty"` Properties *XUProperties `xml:"properties,omitempty"` Testcase []*XUTestcase `xml:"testcase,omitempty"` XmlnsXsi string `xml:"xmlns xsi,attr,omitempty"` XsiSpaceSchemaLocation string `xml:"http://www.w3.org/2001/XMLSchema-instance schemaLocation,attr,omitempty"` }
XUTestsuite xunit test suite structure
type XUTestsuites ¶
type XUTestsuites struct {
Testsuite []*XUTestsuite `xml:"testsuite,omitempty"`
}
XUTestsuites xunit test suites structure