Documentation ¶
Index ¶
- func FromData(data []byte) types.MachineOption
- func FromFile(f string) types.MachineOption
- func Generate(c *Config) error
- func Run(f string, opts ...Option) error
- type AssertionBlock
- type Config
- type ExpectBlock
- type Failer
- type OpBlock
- type Option
- func WithFlakeAttempts(w int) Option
- func WithJSONReport(d string) Option
- func WithJUnitReport(d string) Option
- func WithLabelFilter(d string) Option
- func WithMachineOptions(d ...types.MachineOption) Option
- func WithSlowSpecThreshold(s string) Option
- func WithTimeout(s string) Option
- func WithWorkers(w int) Option
- type Options
- type Syncfailer
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromData ¶
func FromData(data []byte) types.MachineOption
FromFile populates a machineconfig from a peg config file.
func FromFile ¶
func FromFile(f string) types.MachineOption
FromFile populates a machineconfig from a peg config file.
Types ¶
type AssertionBlock ¶
type AssertionBlock struct { Describe string `yaml:"describe,omitempty"` Command string `yaml:"command,omitempty"` Expect ExpectBlock `yaml:"expect,omitempty"` PreOps []OpBlock `yaml:"preOps,omitempty"` PostOps []OpBlock `yaml:"postOps,omitempty"` OnHost bool `yaml:"onHost,omitempty"` }
func (AssertionBlock) Show ¶
func (a AssertionBlock) Show(logger logging.StandardLogger)
type Config ¶
type Config struct { Machine *types.MachineConfig `yaml:"machine,omitempty"` Clean bool Tests []Test `yaml:"specs,omitempty"` }
type ExpectBlock ¶
type ExpectBlock struct { ContainSubstring string `yaml:"containString,omitempty"` Equal string `yaml:"equal,omitempty"` Or []ExpectBlock `yaml:"or,omitempty"` And []ExpectBlock `yaml:"and,omitempty"` ToFail bool `yaml:"toFail,omitempty"` Not bool `yaml:"not,omitempty"` }
func (ExpectBlock) Show ¶
func (exp ExpectBlock) Show(logger logging.StandardLogger)
type OpBlock ¶
type OpBlock struct { EventuallyConnect int `yaml:"eventuallyConnects,omitempty"` SendFile map[string]string `yaml:"sendFile,omitempty"` ReceiveFile map[string]string `yaml:"receiveFile,omitempty"` }
func (OpBlock) Show ¶
func (op OpBlock) Show(logger logging.StandardLogger)
type Option ¶
func WithFlakeAttempts ¶
func WithJSONReport ¶
func WithJUnitReport ¶
func WithLabelFilter ¶
func WithMachineOptions ¶
func WithMachineOptions(d ...types.MachineOption) Option
func WithSlowSpecThreshold ¶
func WithTimeout ¶
func WithWorkers ¶
type Syncfailer ¶
func NewSyncedFailer ¶
func NewSyncedFailer() *Syncfailer
SyncedFailer returns a thread-safe failer that collects a failure and makes it accessible for later inspection.
func (*Syncfailer) Fail ¶
func (f *Syncfailer) Fail()
func (*Syncfailer) Failed ¶
func (f *Syncfailer) Failed() bool
Click to show internal directories.
Click to hide internal directories.