Documentation ¶
Overview ¶
Package discovery attempts to discover test configs from well known directories.
Index ¶
Constants ¶
View Source
const ( SetupDir = "setup" // known setup directory FixtureDir = "fixtures" // known fixtures directory ExamplesDir = "examples" // known fixtures directory )
View Source
const (
DefaultTestConfigFilename = "test.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func FindTestConfigs ¶
FindTestConfigs attempts to auto discover configs to test and is expected to be executed from a directory containing explicit integration tests. Order of discovery is all explicit tests, followed by all fixtures that do not have explicit tests, followed by all examples that do not have fixtures nor explicit tests.
func GetConfigDirFromTestDir ¶
GetConfigDirFromTestDir attempts to autodiscover config for a given explicit test based on dirpath for the test.
Types ¶
type BlueprintTestConfig ¶
type BlueprintTestConfig struct { yaml.ResourceMeta `json:",inline" yaml:",inline"` Spec struct { Skip bool `json:"skip" yaml:"skip"` } `json:"spec" yaml:"spec"` Path string }
func GetTestConfig ¶
func GetTestConfig(path string) (BlueprintTestConfig, error)
GetTestConfig returns BlueprintTestConfig if found
Click to show internal directories.
Click to hide internal directories.