Help us shape the future of Go! Take the 2026 Go Developer Survey

runner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter is a custom test reporter which handles results from multiple test suites

func NewReporter

func NewReporter() *Reporter

NewReporter allocates a new reporter

func (*Reporter) AfterSuiteDidRun

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

AfterSuiteDidRun informs that after suite did run

func (*Reporter) AllSuitesSucceed

func (reporter *Reporter) AllSuitesSucceed() bool

AllSuitesSucceed returns whether tests within all suites passed

func (*Reporter) BeforeSuiteDidRun

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

BeforeSuiteDidRun informs that before suite did run

func (*Reporter) Prepare

func (reporter *Reporter) Prepare(description string)

Prepare prepares a next test suite to run and zeroes its results

func (*Reporter) Report

func (reporter *Reporter) Report()

Report prints the final report

func (*Reporter) SpecDidComplete

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

SpecDidComplete informs that spec did complete

func (*Reporter) SpecSuiteDidEnd

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

SpecSuiteDidEnd informs that spec suite sis end

func (*Reporter) SpecSuiteWillBegin

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

SpecSuiteWillBegin informs that suite will begin

func (*Reporter) SpecWillRun

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

SpecWillRun informs that spec will run

type TestRunner

type TestRunner struct {
	// contains filtered or unexported fields
}

TestRunner is a test runner for go extensions

func NewTestRunner

func NewTestRunner(fileNames []string, printAllLogs bool, testFilter string, workers int) *TestRunner

NewTestRunner allocates a new TestRunner

func (*TestRunner) Run

func (testRunner *TestRunner) Run() error

Run runs go test runner

Jump to

Keyboard shortcuts

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