Documentation ¶
Index ¶
- func GenerateReportLog()
- func GenerateReportXMLFile() (int, int, map[string][]Testcase, map[string][]Testcase)
- func GetExecutedTestCases(testsuite *Testsuite) ([]Testcase, []Testcase, []Testcase)
- func ListFiles(dir string, subfix string) []string
- type ErrorMessage
- type FailureMessage
- type Properties
- type Property
- type ReportLog
- type ReportLogs
- type TCResult
- type TCStatus
- type Testcase
- type Testsuite
- type Testsuites
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReportLog ¶
func GenerateReportLog()
func GenerateReportXMLFile ¶
func GetExecutedTestCases ¶
Types ¶
type ErrorMessage ¶
type FailureMessage ¶
type Properties ¶
type ReportLogs ¶
type TCResult ¶
func PrintTestCase ¶
type Testcase ¶
type Testcase struct { XMLName xml.Name `xml:"testcase"` Name string `xml:"name,attr"` Classname string `xml:"classname,attr"` Status string `xml:"status,attr"` Time string `xml:"time,attr"` FM *FailureMessage `xml:"failure"` EM *ErrorMessage `xml:"error"` }
type Testsuite ¶
type Testsuite struct { XMLName xml.Name `xml:"testsuite"` Name string `xml:"name,attr"` Package string `xml:"package,attr"` Tests int `xml:"tests,attr"` Disabled int `xml:"disabled,attr"` Skipped int `xml:"skipped,attr"` Errors int `xml:"errors,attr"` Failures int `xml:"failures,attr"` Time float64 `xml:"time,attr"` Timestamp string `xml:"timestamp,attr"` Properties Properties `xml:"properties"` TCs []Testcase `xml:"testcase"` }
type Testsuites ¶
type Testsuites struct { XMLName xml.Name `xml:"testsuites"` Tests int `xml:"tests,attr"` Disabled int `xml:"disabled,attr"` Errors int `xml:"errors,attr"` Failures int `xml:"failures,attr"` Time float64 `xml:"time,attr"` TS []*Testsuite `xml:"testsuite"` }
func ParseJunitXML ¶
func ParseJunitXML(fileName string) (*Testsuites, error)
Click to show internal directories.
Click to hide internal directories.