Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrResult ¶
type ErrResult struct { Message string `yaml:"message" xml:"message,attr"` Type string `yaml:"type" xml:"type,attr"` }
ErrResult indicates failure
type LocalExecutor ¶
type LocalExecutor struct{}
LocalExecutor executes tests against the current, local environment
type Result ¶
type Result struct { XMLName xml.Name `xml:"testsuite"` Desc string `yaml:"desc" xml:"name,attr"` Skipped bool `yaml:"skipped,omitempty" xml:"skippped"` Error *ErrResult `yaml:"error,omitempty" xml:"error"` Failure *ErrResult `yaml:"failure,omitempty" xml:"failure"` *RunResult }
Result is the result of a test
type Results ¶
type Results struct { XMLName xml.Name `xml:"testsuites"` Result []*Result `yaml:"results" xml:"testsuite"` }
Results is a collection of test results
type RunResult ¶
type RunResult struct { Stdout []byte `yaml:"stdout,omitempty" xml:"system-out,omitempty"` Stderr []byte `yaml:"stderr,omitempty" xml:"system-err,omitempty"` StatusCode int64 `yaml:"statusCode" xml:"-"` }
RunResult is the direct output produced by a test container
type Spec ¶
type Spec struct { Desc string `yaml:"desc"` Skip bool `yaml:"skip,omitempty"` User string `yaml:"user,omitempty"` Command []string `yaml:"command,flow"` Entrypoint []string `yaml:"entrypoint,omitempty,flow"` Env []string `yaml:"env,omitempty"` Assertions []string `yaml:"assert"` }
Spec specifies a command execution test against a Docker image
Click to show internal directories.
Click to hide internal directories.