Documentation ¶
Overview ¶
Package junitxml provides helpers around creating junit XML data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct { Classname string `xml:"classname,attr"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` Time float64 `xml:"time,attr"` Skipped *junitSkipped `xml:"skipped,omitempty"` Failure *junitFailure `xml:"failure,omitempty"` SystemOut string `xml:"system-out,omitempty"` // contains filtered or unexported fields }
TestCase is a junitxml TestCase.
func NewTestCase ¶
NewTestCase creates a new TestCase.
func (*TestCase) FilterTestCase ¶
FilterTestCase markes a TestCase as skipped if the name matches does not match the regex.
func (*TestCase) WriteFailure ¶
WriteFailure marks a TestCase as failed with the provided message.
func (*TestCase) WriteSkipped ¶
WriteSkipped marks a TestCase as skipped with the provided message.
type TestSuite ¶
type TestSuite struct { XMLName xml.Name `xml:"testsuite"` Name string `xml:"name,attr"` Tests int `xml:"tests,attr"` Failures int `xml:"failures,attr"` Errors int `xml:"errors,attr"` Disabled int `xml:"disabled,attr"` Skipped int `xml:"skipped,attr"` Time float64 `xml:"time,attr"` TestCase []*TestCase `xml:"testcase"` // contains filtered or unexported fields }
TestSuite is a junitxml TestSuite.
Click to show internal directories.
Click to hide internal directories.