Documentation ¶
Overview ¶
Package analyzers represents ways to analyze healthiness and flakiness of tests
Package analyzers represents ways to analyze healthiness and flakiness of tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAnalyzer ¶
type BaseAnalyzer struct { }
BaseAnalyzer implements functions that calculate flakiness as a ratio of failed tests to total tests
func (*BaseAnalyzer) GetFlakiness ¶
func (na *BaseAnalyzer) GetFlakiness(gridMetrics []*common.GridMetrics, minRuns int, startDate int, endDate int, tab string) *summarypb.HealthinessInfo
GetFlakiness returns a HealthinessInfo message with data to display flakiness as a ratio of failed tests to total tests
type FlipAnalyzer ¶
type FlipAnalyzer struct {
RelevantStatus map[string][]StatusCategory
}
FlipAnalyzer implements functions that calculate flakiness as a ratio of failed tests to total tests
func (*FlipAnalyzer) GetFlakiness ¶
func (ea *FlipAnalyzer) GetFlakiness(gridMetrics []*common.GridMetrics, minRuns int, startDate int, endDate int, tab string) *summarypb.HealthinessInfo
GetFlakiness returns a HealthinessInfo message
type IntString ¶
type IntString struct {
// contains filtered or unexported fields
}
IntString is for sorting, primarily intended for map[string]int as implemented below
type StatusCategory ¶
type StatusCategory int32
StatusCategory is a simiplified status that allows only "Pass", "Fail", and "Flaky"
const ( StatusPass StatusCategory = iota StatusFail StatusFlaky )
StatusPass, StatusFail, and StatusFlaky are the status categories this analyzer works with.