Documentation ¶
Overview ¶
Package xunit contains types and functions for manipulating xunit files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFailureReport ¶
func CreateFailureReport(jirix *jiri.X, testName, pkgName, testCaseName, failureMessage, failureOutput string) error
CreateFailureReport creates an xUnit report for the given failure.
func CreateReport ¶
CreateReport generates an xUnit report using the given test suites.
func ReportPath ¶
ReportPath returns the path to the xUnit file.
TODO(jsimsa): Once all Jenkins shell test scripts are ported to Go, change the filename to xunit_report_<testName>.xml.
Types ¶
type TestSuite ¶
type TestSuite struct { Name string `xml:"name,attr"` Cases []TestCase `xml:"testcase"` Errors int `xml:"errors,attr"` Failures int `xml:"failures,attr"` Skip int `xml:"skip,attr"` Tests int `xml:"tests,attr"` }
type TestSuites ¶
Click to show internal directories.
Click to hide internal directories.