test

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewlineReporter

type NewlineReporter struct{}

Print a newline after the default Reporter due to issue https://github.com/jstemmer/go-junit-report/issues/31

func (NewlineReporter) AfterSuiteDidRun

func (NewlineReporter) AfterSuiteDidRun(setupSummary *SetupSummary)

func (NewlineReporter) BeforeSuiteDidRun

func (NewlineReporter) BeforeSuiteDidRun(setupSummary *SetupSummary)

func (NewlineReporter) SpecDidComplete

func (NewlineReporter) SpecDidComplete(specSummary *SpecSummary)

func (NewlineReporter) SpecSuiteDidEnd

func (NewlineReporter) SpecSuiteDidEnd(summary *SuiteSummary)

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

func (NewlineReporter) SpecSuiteWillBegin

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

func (NewlineReporter) SpecWillRun

func (NewlineReporter) SpecWillRun(specSummary *SpecSummary)

type TestEnvironment

type TestEnvironment struct {
	StopServer     chan struct{}
	ServerOuput    *io.PipeWriter
	ApiserverPort  int
	BearerToken    string
	EtcdClientPort int
	EtcdPeerPort   int
	EtcdPath       string
	EtcdCmd        *exec.Cmd
	Done           bool
}

func NewTestEnvironment

func NewTestEnvironment() *TestEnvironment

func (*TestEnvironment) Start

Start starts a local Kubernetes server and updates te.ApiserverPort with the port it is listening on

func (*TestEnvironment) Stop

func (te *TestEnvironment) Stop()

Stop stops a running server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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