reporters

package
v1.25.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

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 prints it to stdout and also posts it to the configured endpoint if set.

func (*ProgressReporter) SetEndMsg added in v1.25.0

func (reporter *ProgressReporter) SetEndMsg()

func (*ProgressReporter) SetStartMsg added in v1.25.0

func (reporter *ProgressReporter) SetStartMsg()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL