Documentation ¶
Overview ¶
Package junit describes the test-infra definition of "junit", and provides utilities to parse it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Name string `xml:"name,attr"` Time float64 `xml:"time,attr"` ClassName string `xml:"classname,attr"` Failure *string `xml:"failure,omitempty"` Output *string `xml:"system-out,omitempty"` Error *string `xml:"system-err,omitempty"` Skipped *string `xml:"skipped,omitempty"` }
Result holds <testcase/> results
type Suite ¶
type Suite struct { XMLName xml.Name `xml:"testsuite"` Name string `xml:"name,attr"` Time float64 `xml:"time,attr"` // Seconds Failures int `xml:"failures,attr"` Tests int `xml:"tests,attr"` Results []Result `xml:"testcase"` }
Suite holds <testsuite/> results
type Suites ¶
type Suites struct { XMLName xml.Name `xml:"testsuites"` Suites []Suite `xml:"testsuite"` // Unwrapped indicates this Suites object was synthesized from a junit // file that did not have a wrapping <testsuites> element Unwrapped bool }
Suites holds a <testsuites/> list of Suite results
Click to show internal directories.
Click to hide internal directories.