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 ¶ added in v0.10.0
type CaseBuilder struct {
TestCaseBuilder
}
CaseBuilder builder for TestCases
func (*CaseBuilder) AllowSkip ¶ added in v0.10.0
func (b *CaseBuilder) AllowSkip() *CaseBuilder
AllowSkip set the test case to skip when condition check failed
func (*CaseBuilder) Cluster ¶ added in v0.10.0
func (b *CaseBuilder) Cluster() *cluster.TestCaseBuilder
Cluster convert to cluster test case builder
func (*CaseBuilder) Do ¶ added in v0.10.0
func (b *CaseBuilder) Do() bool
Do build and return the test case
func (*CaseBuilder) DoFunc ¶ added in v0.10.0
func (b *CaseBuilder) DoFunc(f TestSpecFunc) bool
DoFunc build and return the test case, just like the Do function
func (*CaseBuilder) DoNotSkip ¶ added in v0.10.0
func (b *CaseBuilder) DoNotSkip() *CaseBuilder
DoNotSkip set the test case to not skip when condition check failed
func (*CaseBuilder) DoWithContext ¶ added in v0.11.0
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 ¶ added in v0.10.0
func (b *CaseBuilder) WithCondition(funcs ...Condition) *CaseBuilder
WithCondition sets conditions
func (*CaseBuilder) WithFunc ¶ added in v0.10.0
func (b *CaseBuilder) WithFunc(tc TestSpecFunc) *CaseBuilder
WithFunc replaces the function with another given function
func (*CaseBuilder) WithLabels ¶ added in v0.10.0
func (b *CaseBuilder) WithLabels(labels ...interface{}) *CaseBuilder
WithLabels sets labels
func (*CaseBuilder) WithPriority ¶ added in v0.10.0
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 ¶ added in v0.10.0
Run start tests
func (*Framework) SynchronizedAfterSuite ¶
SynchronizedAfterSuite destroys the whole environment
func (*Framework) SynchronizedBeforeSuite ¶
SynchronizedBeforeSuite basic before suite initialization
Directories ¶
Path | Synopsis |
---|---|
Package conformance is a framework for conformance test
|
Package conformance is a framework for conformance test |