framework

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitGauge

func EmitGauge(testName string, metricName string, value float64) error

func IncrementCounter

func IncrementCounter(testName string, metricName string) error

func VzCurrentGinkgoTestDescription

func VzCurrentGinkgoTestDescription() ginkgo.SpecReport

VzCurrentGinkgoTestDescription - wrapper function for ginkgo CurrentGinkgoTestDescription

Types

type TestFramework

type TestFramework struct {
	Pkg     string
	Metrics *zap.SugaredLogger
	Logs    *zap.SugaredLogger
}

func NewTestFramework

func NewTestFramework(pkg string) *TestFramework

func (*TestFramework) AfterAll

func (t *TestFramework) AfterAll(args ...interface{}) bool

AfterAll - wrapper function for Ginkgo AfterAll

func (*TestFramework) AfterEach

func (t *TestFramework) AfterEach(args ...interface{}) bool

AfterEach wraps Ginkgo AfterEach to emit a metric

func (*TestFramework) AfterSuiteFunc

func (t *TestFramework) AfterSuiteFunc(body func()) func()

AfterSuiteFunc wrap a function to be called with ginkgo.AfterSuiteFunc. ginkgo.AfterSuiteFunc hard codes the call stack location, which requires calling it from the package level.

func (*TestFramework) BeforeAll

func (t *TestFramework) BeforeAll(args ...interface{}) bool

BeforeAll - wrapper function for Ginkgo BeforeAll

func (*TestFramework) BeforeEach

func (t *TestFramework) BeforeEach(args ...interface{}) bool

BeforeEach wraps Ginkgo BeforeEach to emit a metric

func (*TestFramework) BeforeSuiteFunc

func (t *TestFramework) BeforeSuiteFunc(body func()) func()

BeforeSuiteFunc wrap a function to be called with ginkgo.BeforeSuiteFunc. ginkgo.BeforeSuiteFunc // hard codes the call stack location, which requires calling it from the package level.

func (*TestFramework) Context

func (t *TestFramework) Context(text string, args ...interface{}) bool

Context - wrapper function for Ginkgo Context

func (*TestFramework) Describe

func (t *TestFramework) Describe(text string, args ...interface{}) bool

Describe wraps Ginkgo Describe to emit a metric

func (*TestFramework) DescribeTable

func (t *TestFramework) DescribeTable(text string, args ...interface{}) bool

DescribeTable - wrapper function for Ginkgo DescribeTable

func (*TestFramework) Entry

func (t *TestFramework) Entry(description interface{}, args ...interface{}) ginkgo.TableEntry

Entry - wrapper function for Ginkgo Entry

func (*TestFramework) Fail

func (t *TestFramework) Fail(message string, callerSkip ...int)

Fail - wrapper function for Ginkgo Fail

func (*TestFramework) It

func (t *TestFramework) It(text string, args ...interface{}) bool

It wraps Ginkgo It to emit a metric

func (*TestFramework) ItMinimumVersion

func (t *TestFramework) ItMinimumVersion(text string, version string, kubeconfigPath string, args ...interface{}) bool

func (*TestFramework) JustAfterEach

func (t *TestFramework) JustAfterEach(args ...interface{}) bool

JustAfterEach - wrapper function for Ginkgo JustAfterEach

func (*TestFramework) JustBeforeEach

func (t *TestFramework) JustBeforeEach(args ...interface{}) bool

JustBeforeEach - wrapper function for Ginkgo JustBeforeEach

func (*TestFramework) MakeGinkgoArgs

func (t *TestFramework) MakeGinkgoArgs(args ...interface{}) []interface{}

func (*TestFramework) RegisterFailHandler

func (t *TestFramework) RegisterFailHandler()

func (*TestFramework) SynchronizedAfterSuite

func (t *TestFramework) SynchronizedAfterSuite(allProcessBody func(), process1Body func()) bool

SynchronizedAfterSuite - wrapper function for Ginkgo SynchronizedAfterSuite

func (*TestFramework) SynchronizedBeforeSuite

func (t *TestFramework) SynchronizedBeforeSuite(process1Body func() []byte, allProcessBody func([]byte)) bool

SynchronizedBeforeSuite - wrapper function for Ginkgo SynchronizedBeforeSuite

func (*TestFramework) When

func (t *TestFramework) When(text string, args ...interface{}) bool

When - wrapper function for Ginkgo When

func (*TestFramework) WhenMeetsConditionFunc

func (t *TestFramework) WhenMeetsConditionFunc(condition string, conditionFunc func() (bool, error)) func(string, ...interface{}) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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