Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressReporter ¶
type ProgressReporter struct { LastMsg string `json:"msg"` TestsCompleted int `json:"completed"` TestsSkipped int `json:"skipped"` TestsFailed int `json:"failed"` Failures []string `json:"failures,omitempty"` // contains filtered or unexported fields }
ProgressReporter is a ginkgo reporter which tracks the total number of tests to be run/passed/failed/skipped. As new tests are completed it updates the values and prints them to stdout and optionally, sends the updates to the configured URL. TODO: Number of test specs is not available now, we can add it back when this is fixed in the Ginkgo V2. pls see: https://github.com/kubernetes/kubernetes/issues/109744
func NewProgressReporter ¶
func NewProgressReporter(progressReportURL string) *ProgressReporter
NewProgressReporter returns a progress reporter which posts updates to the given URL.
func (*ProgressReporter) ProcessSpecReport ¶ added in v1.25.0
func (reporter *ProgressReporter) ProcessSpecReport(report ginkgo.SpecReport)
ProcessSpecReport summarizes the report state and sends the state to the configured endpoint if set.
func (*ProgressReporter) SendUpdates ¶ added in v1.25.0
func (reporter *ProgressReporter) SendUpdates()
SendUpdates serializes the current progress and posts it to the configured endpoint if set. It does not print to stdout because that interferes with progress reporting by Ginko and (when Ginkgo does output redirection) doesn't actually appear on the screen anyway.
func (*ProgressReporter) SetEndMsg ¶ added in v1.25.0
func (reporter *ProgressReporter) SetEndMsg()
func (*ProgressReporter) SetStartMsg ¶ added in v1.25.0
func (reporter *ProgressReporter) SetStartMsg()