testspecs

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(reader io.Reader, filename string) (engine.Collection, error)

Types

type ConfigSpec

type ConfigSpec struct {
	WorkDir     string         `yaml:"workdir"`
	Env         []string       `yaml:"env"`
	Interpreter string         `yaml:"interpreter"`
	Timeout     *time.Duration `yaml:"timeout"`
}

func (*ConfigSpec) Resolve

func (c *ConfigSpec) Resolve(parent *ConfigSpec)

Resolve() applies parent-child value overriding and extension logic.

func (*ConfigSpec) RunConfig

func (c *ConfigSpec) RunConfig() (*engine.Config, error)

type TestSpec

type TestSpec struct {
	Name     string `yaml:"name"`
	Filename string

	Config   *ConfigSpec `yaml:"config"`
	Commands []string    `yaml:"commands"`
	Checks   []string    `yaml:"checks"`
	Children []*TestSpec `yaml:"tests"`
}

func (*TestSpec) Resolve

func (t *TestSpec) Resolve(parent *TestSpec)

Resolve() applies parent-child value overriding and extension logic.

func (*TestSpec) Tests

func (t *TestSpec) Tests() (tests engine.Collection, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL