Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Notifiers map[string]gojson.RawMessage Suites []*SuiteConfig // contains filtered or unexported fields }
func NewConfigFromFile ¶
func (*Config) GenNotifier ¶
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
func NewSuiteFromFile ¶
func NewSuiteFromFile(path string, options ...SuiteOption) (*Suite, error)
func NewSuiteFromReader ¶
func NewSuiteFromReader(r io.Reader, options ...SuiteOption) (*Suite, error)
type SuiteConfig ¶
type SuiteConfig struct { Path string `json:"path,omitempty"` // only used in base config. Name string `json:"name,omitempty"` // identifier for this test suite RunEvery json.Duration `json:"runEvery,omitempty"` // scheduling every duration. RunCron string `json:"runCron,omitempty"` // cron string. RetryCount int `json:"retryCount,omitempty"` RetryWait json.Duration `json:"retryWait,omitempty"` Timeout json.Duration `json:"timeout,omitempty"` FailFast bool `json:"failFast,omitempty"` // stop after first test failure. Type string `json:"type,omitempty"` // type of the test suite, can be HTTP, GRPC... Suite gojson.RawMessage `json:"suite,omitempty"` // description of the test suite, depends on Type. // contains filtered or unexported fields }
type SuiteOption ¶
type SuiteOption func(c *SuiteConfig)
SuiteOption is a function that sets some option on the suite.
func FailFast ¶
func FailFast(ff bool) SuiteOption
func Filter ¶
func Filter(filter string) SuiteOption
func Timeout ¶
func Timeout(timeout time.Duration) SuiteOption
Click to show internal directories.
Click to hide internal directories.