Documentation
¶
Index ¶
- func ParseJSONResult(baseResult *ReportElement) []byte
- func ParseJUnitResult(baseResult *ReportElement) []byte
- type JUnitReporter
- type Report
- type ReportElement
- func (r ReportElement) GetLog() []string
- func (r *ReportElement) Leave(result bool)
- func (r *ReportElement) NewChild(name string) (newElem *ReportElement)
- func (r *ReportElement) SaveToReportLog(v string)
- func (r *ReportElement) SaveToReportLogF(v string, args ...interface{})
- func (r *ReportElement) SetName(name string)
- type ReportElements
- type XMLRoot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSONResult ¶
func ParseJSONResult(baseResult *ReportElement) []byte
Print the result to the console
func ParseJUnitResult ¶
func ParseJUnitResult(baseResult *ReportElement) []byte
Print the result to the console
Types ¶
type JUnitReporter ¶
type JUnitReporter struct {
// contains filtered or unexported fields
}
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (Report) GetTestResult ¶
func (r Report) GetTestResult(parsingFunction func(baseResult *ReportElement) []byte) []byte
GetTestResult Parses the test report with the given function from the report root on
func (Report) Root ¶
func (r Report) Root() *ReportElement
type ReportElement ¶
type ReportElement struct {
Failures int `json:"failures"`
TestCount int `json:"test_count,omitempty"`
ExecutionTime time.Duration `json:"execution_time_ns"`
StartTime time.Time `json:"-"`
Name string `json:"name,omitempty"`
LogStorage []string `json:"log,omitempty"`
SubTests ReportElements `json:"sub_tests,omitempty"`
Parent *ReportElement `json:"-"`
NoLogTime bool `json:"-"`
// contains filtered or unexported fields
}
func (ReportElement) GetLog ¶
func (r ReportElement) GetLog() []string
func (*ReportElement) Leave ¶
func (r *ReportElement) Leave(result bool)
func (*ReportElement) NewChild ¶
func (r *ReportElement) NewChild(name string) (newElem *ReportElement)
NewChild create new report element and return its reference
func (*ReportElement) SaveToReportLog ¶
func (r *ReportElement) SaveToReportLog(v string)
func (r *ReportElement) SetTestCount(counter int) {
r.m.Lock()
defer r.m.Unlock()
r.TestCount = counter
}
func (*ReportElement) SaveToReportLogF ¶
func (r *ReportElement) SaveToReportLogF(v string, args ...interface{})
func (*ReportElement) SetName ¶
func (r *ReportElement) SetName(name string)
type ReportElements ¶
type ReportElements []*ReportElement
func (ReportElements) Flat ¶
func (re ReportElements) Flat() ReportElements
Click to show internal directories.
Click to hide internal directories.