Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite interface {
GetTests() []runtime.TestCase
GetTestByTitle(title string) (runtime.TestCase, error)
GetGlobalConfig() runtime.TestConfig
}
Suite represents the current tests and configs
type YAMLConfig ¶
type YAMLConfig struct {
Tests map[string]YAMLTest `yaml:"tests"`
Config YAMLTestConfig `yaml:"config"`
}
YAMLConfig will be used for unmarshalling the yaml test suite
func (*YAMLConfig) UnmarshalYAML ¶
func (y *YAMLConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshals the yaml
type YAMLSuite ¶
type YAMLSuite struct {
TestCases []runtime.TestCase
Config runtime.TestConfig
}
YAMLSuite represents a test suite which was configured in yaml
func (YAMLSuite) GetGlobalConfig ¶
func (s YAMLSuite) GetGlobalConfig() runtime.TestConfig
func (YAMLSuite) GetTestByTitle ¶
GetTestByTitle returns the first test it finds for the given title
type YAMLTest ¶
type YAMLTest struct {
Title string `yaml:"-"`
Command string `yaml:"command"`
ExitCode int `yaml:"exit-code"`
Stdout interface{} `yaml:"stdout,omitempty"`
Stderr interface{} `yaml:"stderr,omitempty"`
Config YAMLTestConfig `yaml:"config,omitempty"`
}
YAMLTest represents a test in the yaml test suite
Click to show internal directories.
Click to hide internal directories.