kubernetesk8s.io/kubernetes/test/e2e/reporters Index | Files

package reporters

import "k8s.io/kubernetes/test/e2e/reporters"

Index

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

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

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

func (reporter *ProgressReporter) SetEndMsg()

func (*ProgressReporter) SetStartMsg

func (reporter *ProgressReporter) SetStartMsg()

Source Files

progress.go

Version
v1.26.6
Published
Jun 14, 2023
Platform
js/wasm
Imports
10 packages
Last checked
16 minutes ago

Tools for package owners.