Documentation ¶
Index ¶
- func CreateOutputFolder(folder string)
- func ExtractResults(events []*GoTestEvent, issuePattern string, testcasePattern string) map[string]*AllureResult
- func PrintResults(outputFlag string, results map[string]*AllureResult)
- type AllureResult
- type Attachment
- type GoTestEvent
- type Label
- type Link
- type Parameter
- type StatusDetail
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractResults ¶
func ExtractResults(events []*GoTestEvent, issuePattern string, testcasePattern string) map[string]*AllureResult
ExtractResults ...
func PrintResults ¶
func PrintResults(outputFlag string, results map[string]*AllureResult)
PrintResults ...
Types ¶
type AllureResult ¶
type AllureResult struct { Name string `json:"name"` Status string `json:"status"` StatusDetails StatusDetail `json:"statusDetails"` Steps []Step `json:"steps"` Start int64 `json:"start"` Stop int64 `json:"stop"` UUID uuid.UUID `json:"uuid"` HistoryID uuid.UUID `json:"historyId"` FullName string `json:"fullName"` Labels []Label `json:"labels"` Description string `json:"description"` Links []Link `json:"links"` }
AllureResult ...
type Attachment ¶
type Attachment struct { Name string `json:"name"` Source string `json:"source"` Type string `json:"type"` Data string `json:"-"` }
Attachment ...
type GoTestEvent ¶
type GoTestEvent struct { Time time.Time `json:"Time"` Action string `json:"Action"` Package string `json:"Package"` Test string `json:"Test"` Elapsed float64 `json:"Elapsed"` Output string `json:"Output"` }
GoTestEvent - line in json-report.txt file
func ParseJsonsToGoTestEvents ¶
func ParseJsonsToGoTestEvents(file io.Reader) []*GoTestEvent
ParseJsonsToGoTestEvents ...
func TrimGoTestEvents ¶
func TrimGoTestEvents(events []*GoTestEvent) []*GoTestEvent
TrimGoTestEvents ...
type StatusDetail ¶
StatusDetail ...
Click to show internal directories.
Click to hide internal directories.