Documentation
¶
Index ¶
- func GetCommand() *cobra.Command
- func Main()
- func Register(name string, suite TestingSuite)
- func Run() error
- func RunTests(t *testing.T, suite TestingSuite, config *Config)
- type AfterTest
- type BeforeTest
- type Config
- type Coordinator
- type SetupTest
- type SetupTestSuite
- type Suite
- type TearDownTest
- type TearDownTestSuite
- type TestingSuite
- type Worker
- type WorkerTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, suite TestingSuite)
Register registers a test suite Deprecated: Use registry.RegisterTestSuite instead
Types ¶
type AfterTest ¶
type AfterTest interface {
AfterTest(testName string)
}
AfterTest is an interface for executing code after every test
type BeforeTest ¶
type BeforeTest interface {
BeforeTest(testName string)
}
BeforeTest is an interface for executing code before every test
type Config ¶
type Config struct {
ID string
Image string
ImagePullPolicy corev1.PullPolicy
Suites []string
Tests []string
Env map[string]string
Timeout time.Duration
Iterations int
Verbose bool
}
Config is a test configuration
func GetConfigFromEnv ¶
func GetConfigFromEnv() *Config
GetConfigFromEnv returns the test configuration from the environment
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
Coordinator coordinates workers for suites of tests
type SetupTest ¶
type SetupTest interface {
SetupTest()
}
SetupTest is an interface for setting up individual tests
type SetupTestSuite ¶
type SetupTestSuite interface {
SetupTestSuite()
}
SetupTestSuite is an interface for setting up a suite of tests
type TearDownTest ¶
type TearDownTest interface {
TearDownTest()
}
TearDownTest is an interface for tearing down individual tests
type TearDownTestSuite ¶
type TearDownTestSuite interface {
TearDownTestSuite()
}
TearDownTestSuite is an interface for tearing down a suite of tests
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker runs a test job
type WorkerTask ¶
type WorkerTask struct {
// contains filtered or unexported fields
}
WorkerTask manages a single test job for a test worker