Documentation
¶
Index ¶
- func ParseJSONResult(baseResult *ReportElement) []byte
- func ParseJSONStatsResult(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
ParseJSONResult Print the result to the console
func ParseJSONStatsResult ¶ added in v1.2.8
func ParseJSONStatsResult(baseResult *ReportElement) []byte
ParseJSONResult Print the result to the console
func ParseJUnitResult ¶
func ParseJUnitResult(baseResult *ReportElement) []byte
ParseJUnitResult Print the result to the console
Types ¶
type JUnitReporter ¶
type JUnitReporter struct {
// contains filtered or unexported fields
}
type Report ¶
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
func (*Report) WriteToFile ¶ added in v0.90.0
WriteToFile write the report into the report file
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:"-"` Failure string `json:"failure,omitempty"` // 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 (*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.