Documentation
¶
Overview ¶
Package invoke provides gear supporting to facilitate running Plax tests in different environments (and configurations).
Also see cmd/plaxrun.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invocation ¶
type Invocation struct {
Bindings map[string]interface{}
SuiteName string
Filename string
// Dir will be added to ctx.IncludeDirs to resolve YAML (and
// perhaps other) includes.
Dir string
IncludeDirs []string
Env map[string]string
Seed int64
Priority int
Labels string
Tests []string
LogLevel string
Verbose bool
List bool
// ComplainOnAnyError will cause Exec() to return an error if
// any test case fails or is broken.
//
// The default (false) can make sense when the caller's
// perspective is that test failures are actually normal.
ComplainOnAnyError bool
// Retry will override a test's retry policy (if any).
Retry string
// React will set dsl.Ctx.Redact to enable log redactions.
Redact bool
// contains filtered or unexported fields
}
Invocation struct for execution of a suite of tests
func (*Invocation) Exec ¶
Exec executes the Invocation.
When ComplainOnAnyError is true, then the last test problem (if any) is returned by this method. Otherwise, only a non-test error (if any) is returned.
This method calls Run(t) for each test t in the Invocation.
Click to show internal directories.
Click to hide internal directories.