kubernetes: k8s.io/kubernetes/test/e2e/reporters Index | Files

package reporters

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

Index

Package Files

progress.go testDetails.go

type DetailsReporter Uses

type DetailsReporter struct {
    Writer io.Writer
}

DetailsReporter is a ginkgo reporter which dumps information regarding the tests which is difficult to get via an AST app. This allows us to leverage the existing ginkgo logic to walk the tests and such while then following up with an custom app which leverages AST to generate conformance documentation.

func NewDetailsReporterFile Uses

func NewDetailsReporterFile(filename string) *DetailsReporter

NewDetailsReporterFile returns a reporter which will create the file given and dump the specs to it as they complete.

func NewDetailsReporterWithWriter Uses

func NewDetailsReporterWithWriter(w io.Writer) *DetailsReporter

NewDetailsReporterWithWriter returns a reporter which will write the SpecSummary objects as tests complete to the given writer.

func (*DetailsReporter) AfterSuiteDidRun Uses

func (reporter *DetailsReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

AfterSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*DetailsReporter) BeforeSuiteDidRun Uses

func (reporter *DetailsReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

BeforeSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*DetailsReporter) SpecDidComplete Uses

func (reporter *DetailsReporter) SpecDidComplete(specSummary *types.SpecSummary)

SpecDidComplete is invoked by Ginkgo each time a spec is completed (including skipped specs).

func (*DetailsReporter) SpecSuiteDidEnd Uses

func (reporter *DetailsReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

SpecSuiteDidEnd is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*DetailsReporter) SpecSuiteWillBegin Uses

func (reporter *DetailsReporter) SpecSuiteWillBegin(cfg config.GinkgoConfigType, summary *types.SuiteSummary)

SpecSuiteWillBegin is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*DetailsReporter) SpecWillRun Uses

func (reporter *DetailsReporter) SpecWillRun(specSummary *types.SpecSummary)

SpecWillRun is implemented as a noop to satisfy the reporter interface for ginkgo.

type ProgressReporter Uses

type ProgressReporter struct {
    LastMsg string `json:"msg"`

    TestsTotal     int `json:"total"`
    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.

func NewProgressReporter Uses

func NewProgressReporter(progressReportURL string) *ProgressReporter

NewProgressReporter returns a progress reporter which posts updates to the given URL.

func (*ProgressReporter) AfterSuiteDidRun Uses

func (reporter *ProgressReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

AfterSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*ProgressReporter) BeforeSuiteDidRun Uses

func (reporter *ProgressReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

BeforeSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.

func (*ProgressReporter) SpecDidComplete Uses

func (reporter *ProgressReporter) SpecDidComplete(specSummary *types.SpecSummary)

SpecDidComplete is invoked by Ginkgo each time a spec is completed (including skipped specs).

func (*ProgressReporter) SpecSuiteDidEnd Uses

func (reporter *ProgressReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

SpecSuiteDidEnd is the last method invoked by Ginkgo after all the specs are run.

func (*ProgressReporter) SpecSuiteWillBegin Uses

func (reporter *ProgressReporter) SpecSuiteWillBegin(cfg config.GinkgoConfigType, summary *types.SuiteSummary)

SpecSuiteWillBegin is invoked by ginkgo when the suite is about to start and is the first point in which we can antipate the number of tests which will be run.

func (*ProgressReporter) SpecWillRun Uses

func (reporter *ProgressReporter) SpecWillRun(specSummary *types.SpecSummary)

SpecWillRun is implemented as a noop to satisfy the reporter interface for ginkgo.

Package reporters imports 13 packages (graph) and is imported by 14 packages. Updated 2020-06-01. Refresh now. Tools for package owners.