Documentation
¶
Index ¶
- type CaseBuilder
- func (b *CaseBuilder) AllowSkip() *CaseBuilder
- func (b *CaseBuilder) Cluster() *cluster.TestCaseBuilder
- func (b *CaseBuilder) Do() bool
- func (b *CaseBuilder) DoFunc(f TestSpecFunc) bool
- func (b *CaseBuilder) DoNotSkip() *CaseBuilder
- func (b *CaseBuilder) DoWithContext(ctx context.Context) bool
- func (b *CaseBuilder) P0() *CaseBuilder
- func (b *CaseBuilder) P1() *CaseBuilder
- func (b *CaseBuilder) P2() *CaseBuilder
- func (b *CaseBuilder) P3() *CaseBuilder
- func (b *CaseBuilder) WithCondition(funcs ...Condition) *CaseBuilder
- func (b *CaseBuilder) WithFunc(tc TestSpecFunc) *CaseBuilder
- func (b *CaseBuilder) WithLabels(labels ...interface{}) *CaseBuilder
- func (b *CaseBuilder) WithPriority(prior TestCasePriority) *CaseBuilder
- type Framework
- func (f *Framework) Config(configures ...Configure) *Framework
- func (f *Framework) Extensions(extensions ...SharedExtension) *Framework
- func (f *Framework) MRun(m *testing.M)
- func (f *Framework) Run(t *testing.T)
- func (f *Framework) SynchronizedAfterSuite(destroyFunc func()) *Framework
- func (f *Framework) SynchronizedBeforeSuite(initFunc func()) *Framework
- func (f *Framework) WithContext(ctx context.Context) *Framework
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseBuilder ¶
type CaseBuilder struct {
TestCaseBuilder
}
CaseBuilder builder for TestCases
func (*CaseBuilder) AllowSkip ¶
func (b *CaseBuilder) AllowSkip() *CaseBuilder
AllowSkip set the test case to skip when condition check failed
func (*CaseBuilder) Cluster ¶
func (b *CaseBuilder) Cluster() *cluster.TestCaseBuilder
Cluster convert to cluster test case builder
func (*CaseBuilder) DoFunc ¶
func (b *CaseBuilder) DoFunc(f TestSpecFunc) bool
DoFunc build and return the test case, just like the Do function
func (*CaseBuilder) DoNotSkip ¶
func (b *CaseBuilder) DoNotSkip() *CaseBuilder
DoNotSkip set the test case to not skip when condition check failed
func (*CaseBuilder) DoWithContext ¶
func (b *CaseBuilder) DoWithContext(ctx context.Context) bool
DoWithContext run a test case with special context The context can be used for construct case layouts
func (*CaseBuilder) WithCondition ¶
func (b *CaseBuilder) WithCondition(funcs ...Condition) *CaseBuilder
WithCondition sets conditions
func (*CaseBuilder) WithFunc ¶
func (b *CaseBuilder) WithFunc(tc TestSpecFunc) *CaseBuilder
WithFunc replaces the function with another given function
func (*CaseBuilder) WithLabels ¶
func (b *CaseBuilder) WithLabels(labels ...interface{}) *CaseBuilder
WithLabels sets labels
func (*CaseBuilder) WithPriority ¶
func (b *CaseBuilder) WithPriority(prior TestCasePriority) *CaseBuilder
WithPriority sets priorities
type Framework ¶
type Framework struct {
Name string
TestContext
// contains filtered or unexported fields
}
Framework base framework for running automated test cases
func (*Framework) Config ¶
Config register configuration mutators which executed before case running
func (*Framework) Extensions ¶
Run start tests
func (*Framework) SynchronizedAfterSuite ¶
SynchronizedAfterSuite destroys the whole environment
func (*Framework) SynchronizedBeforeSuite ¶
SynchronizedBeforeSuite basic before suite initialization