printer

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package printer contains setup for a friendlier Ginkgo printer that's easier to parse by test automation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProwReporter added in v0.6.2

func NewProwReporter(suiteName string) ginkgo.Reporter

NewProwReporter returns a prowReporter that will write out junit if running in Prow and do nothing otherwise. WARNING: It seems this does not always properly fail the test runs when there are failures, see https://github.com/onsi/ginkgo/issues/706 When using this you must make sure to grep for failures in your junit xmls and fail the run if there are any.

Types

type NewlineReporter

type NewlineReporter struct{}

NewlineReporter is Reporter that Prints a newline after the default Reporter output so that the results are correctly parsed by test automation. See issue https://github.com/jstemmer/go-junit-report/issues/31

func (NewlineReporter) AfterSuiteDidRun

func (NewlineReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)

AfterSuiteDidRun implements ginkgo.Reporter.

func (NewlineReporter) BeforeSuiteDidRun

func (NewlineReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)

BeforeSuiteDidRun implements ginkgo.Reporter.

func (NewlineReporter) SpecDidComplete

func (NewlineReporter) SpecDidComplete(specSummary *types.SpecSummary)

SpecDidComplete implements ginkgo.Reporter.

func (NewlineReporter) SpecSuiteDidEnd

func (NewlineReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)

SpecSuiteDidEnd Prints a newline between "35 Passed | 0 Failed | 0 Pending | 0 Skipped" and "--- PASS:".

func (NewlineReporter) SpecSuiteWillBegin

func (NewlineReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)

SpecSuiteWillBegin implements ginkgo.Reporter.

func (NewlineReporter) SpecWillRun

func (NewlineReporter) SpecWillRun(specSummary *types.SpecSummary)

SpecWillRun implements ginkgo.Reporter.

Jump to

Keyboard shortcuts

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