Documentation
¶
Index ¶
- Constants
- func ConvertTestReport(xmlReport TestReport, job types.JobReference) (types.TestReport, []types.TestSuite, []types.TestCase)
- func ParseTextAttachments(s string) []string
- type Error
- type Failure
- type Property
- type Skipped
- type SystemErr
- type SystemOut
- type TestCase
- type TestReport
- type TestSuite
Constants ¶
View Source
const ( AttachmentRegex = `\[\[ATTACHMENT\|(?<path>[^\[\]\|]+?)\]\]` PropertyRegex = `\[\[PROPERTY\|(?<name>[^\[\]\|=]+)=(?<value>[^\[\]\|=]+)\]\]` )
Variables ¶
This section is empty.
Functions ¶
func ConvertTestReport ¶
func ConvertTestReport(xmlReport TestReport, job types.JobReference) (types.TestReport, []types.TestSuite, []types.TestCase)
func ParseTextAttachments ¶
Types ¶
type Error ¶
type Failure ¶
type Property ¶
type Property struct { // XMLName xml.Name `xml:"property"` Name string `xml:"name,attr"` Value string `xml:"value,attr"` Text string `xml:",chardata"` }
func ParseTextProperties ¶
type Skipped ¶
type Skipped struct { // XMLName xml.Name `xml:"skipped"` Message string `xml:"message,attr"` }
type SystemErr ¶
type SystemErr struct { // XMLName xml.Name `xml:"system-err"` Text string `xml:",chardata"` }
type SystemOut ¶
type SystemOut struct { // XMLName xml.Name `xml:"system-out"` Text string `xml:",chardata"` }
type TestCase ¶
type TestCase struct { // XMLName xml.Name `xml:"testcase"` Name string `xml:"name,attr"` Classname string `xml:"classname,attr"` Tests int64 `xml:"tests,attr"` Time float64 `xml:"time,attr"` File string `xml:"file,attr"` Line int64 `xml:"line,attr"` Failure *Failure `xml:"failure"` Error *Error `xml:"error"` Skipped *Skipped `xml:"skipped"` Properties []Property `xml:"properties>property"` SystemOut *SystemOut `xml:"system-out"` SystemErr *SystemErr `xml:"system-err"` }
type TestReport ¶
type TestReport struct { XMLName xml.Name `xml:"testsuites"` Tests int64 `xml:"tests,attr"` Failures int64 `xml:"failures,attr"` Errors int64 `xml:"errors,attr"` Skipped int64 `xml:"skipped,attr"` Time float64 `xml:"time,attr"` Timestamp string `xml:"timestamp,attr"` TestSuites []TestSuite `xml:"testsuite"` }
type TestSuite ¶
type TestSuite struct { // XMLName xml.Name `xml:"testsuite"` Name string `xml:"name,attr"` Tests int64 `xml:"tests,attr"` Failures int64 `xml:"failures,attr"` Errors int64 `xml:"errors,attr"` Skipped int64 `xml:"skipped,attr"` Time float64 `xml:"time,attr"` Timestamp string `xml:"timestamp,attr"` File string `xml:"file,attr"` Properties []Property `xml:"properties>property"` SystemOut SystemOut `xml:"system-out"` SystemErr SystemErr `xml:"system-err"` TestCases []TestCase `xml:"testcase"` }
Click to show internal directories.
Click to hide internal directories.