Documentation ¶
Index ¶
- func EmitGauge(testName string, metricName string, value float64) error
- func IncrementCounter(testName string, metricName string) error
- func VzCurrentGinkgoTestDescription() ginkgo.SpecReport
- type TestFramework
- func (t *TestFramework) AfterAll(args ...interface{}) bool
- func (t *TestFramework) AfterEach(args ...interface{}) bool
- func (t *TestFramework) AfterSuiteFunc(body func()) func()
- func (t *TestFramework) BeforeAll(args ...interface{}) bool
- func (t *TestFramework) BeforeEach(args ...interface{}) bool
- func (t *TestFramework) BeforeSuiteFunc(body func()) func()
- func (t *TestFramework) Context(text string, args ...interface{}) bool
- func (t *TestFramework) Describe(text string, args ...interface{}) bool
- func (t *TestFramework) DescribeTable(text string, args ...interface{}) bool
- func (t *TestFramework) Entry(description interface{}, args ...interface{}) ginkgo.TableEntry
- func (t *TestFramework) Fail(message string, callerSkip ...int)
- func (t *TestFramework) It(text string, args ...interface{}) bool
- func (t *TestFramework) ItMinimumVersion(text string, version string, kubeconfigPath string, args ...interface{}) bool
- func (t *TestFramework) JustAfterEach(args ...interface{}) bool
- func (t *TestFramework) JustBeforeEach(args ...interface{}) bool
- func (t *TestFramework) MakeGinkgoArgs(args ...interface{}) []interface{}
- func (t *TestFramework) RegisterFailHandler()
- func (t *TestFramework) SynchronizedAfterSuite(allProcessBody func(), process1Body func()) bool
- func (t *TestFramework) SynchronizedBeforeSuite(process1Body func() []byte, allProcessBody func([]byte)) bool
- func (t *TestFramework) When(text string, args ...interface{}) bool
- func (t *TestFramework) WhenMeetsConditionFunc(condition string, conditionFunc func() (bool, error)) func(string, ...interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncrementCounter ¶
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