Documentation ¶
Index ¶
- type ProgressReporter
- func (reporter *ProgressReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
- func (reporter *ProgressReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
- func (reporter *ProgressReporter) SpecDidComplete(specSummary *types.SpecSummary)
- func (reporter *ProgressReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
- func (reporter *ProgressReporter) SpecSuiteWillBegin(cfg config.GinkgoConfigType, summary *types.SuiteSummary)
- func (reporter *ProgressReporter) SpecWillRun(specSummary *types.SpecSummary)
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"` 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 ¶
func NewProgressReporter(progressReportURL string) *ProgressReporter
NewProgressReporter returns a progress reporter which posts updates to the given URL.
func (*ProgressReporter) AfterSuiteDidRun ¶
func (reporter *ProgressReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
AfterSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.
func (*ProgressReporter) BeforeSuiteDidRun ¶
func (reporter *ProgressReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
BeforeSuiteDidRun is implemented as a noop to satisfy the reporter interface for ginkgo.
func (*ProgressReporter) SpecDidComplete ¶
func (reporter *ProgressReporter) SpecDidComplete(specSummary *types.SpecSummary)
SpecDidComplete is invoked by Ginkgo each time a spec is completed (including skipped specs).
func (*ProgressReporter) SpecSuiteDidEnd ¶
func (reporter *ProgressReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
SpecSuiteDidEnd is the last method invoked by Ginkgo after all the specs are run.
func (*ProgressReporter) SpecSuiteWillBegin ¶
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 ¶
func (reporter *ProgressReporter) SpecWillRun(specSummary *types.SpecSummary)
SpecWillRun is implemented as a noop to satisfy the reporter interface for ginkgo.