Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReport ¶
func GenerateReport(res *SuiteResult, reportDir, themePath string, searchIndex bool)
func GenerateReports ¶
func GenerateReports(res *SuiteResult, reportsDir, themePath string, searchIndex bool) error
GenerateReports generates HTML report in the given report dir location
func SetRowFailures ¶
func SetRowFailures(failures []*hookFailure, spec *spec)
Types ¶
type SearchIndex ¶
type SearchIndex struct { Tags map[string][]string `json:"Tags"` Specs map[string][]string `json:"Specs"` }
func NewSearchIndex ¶
func NewSearchIndex() *SearchIndex
func (*SearchIndex) AddRawItem ¶
func (i *SearchIndex) AddRawItem(r *gauge_messages.ProtoItem)
func (*SearchIndex) AddRawSpec ¶
func (i *SearchIndex) AddRawSpec(r *gauge_messages.ProtoSpec)
func (*SearchIndex) Write ¶
func (i *SearchIndex) Write(dir string) error
type SuiteResult ¶
type SuiteResult struct { ProjectName string `json:"ProjectName"` Timestamp string `json:"Timestamp"` SuccessRate float32 `json:"SuccessRate"` Environment string `json:"Environment"` Tags string `json:"Tags"` ExecutionTime int64 `json:"ExecutionTime"` ExecutionStatus status `json:"ExecutionStatus"` SpecResults []*spec `json:"SpecResults"` BeforeSuiteHookFailure *hookFailure `json:"BeforeSuiteHookFailure"` AfterSuiteHookFailure *hookFailure `json:"AfterSuiteHookFailure"` PassedSpecsCount int `json:"PassedSpecsCount"` FailedSpecsCount int `json:"FailedSpecsCount"` SkippedSpecsCount int `json:"SkippedSpecsCount"` PassedScenarioCount int `json:"PassedScenarioCount"` FailedScenarioCount int `json:"FailedScenarioCount"` SkippedScenarioCount int `json:"SkippedScenarioCount"` BasePath string `json:"BasePath"` PreHookMessages []string `json:"PreHookMessages"` PostHookMessages []string `json:"PostHookMessages"` PreHookScreenshots []string `json:"PreHookScreenshots"` PostHookScreenshots []string `json:"PostHookScreenshots"` }
SuiteResult holds the aggregated execution information for a run
func ToSuiteResult ¶
func ToSuiteResult(pRoot string, psr *gm.ProtoSuiteResult) *SuiteResult
ToSuiteResult Converts the ProtoSuiteResult to SuiteResult type.
Click to show internal directories.
Click to hide internal directories.