Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventCmdStart = event.Name("CmdStart") EventCmdEnd = event.Name("CmdEnd") EventCmdStdout = event.Name("CmdStdout") EventCmdStderr = event.Name("CmdStderr") )
event names for this plugin.
Variables ¶
View Source
var Events = []event.Name{ EventCmdStart, EventCmdEnd, EventCmdStdout, EventCmdStderr, }
Events defines the events that a TestStep is allow to emit
View Source
var Name = "Cmd"
Name is the name used to look this plugin up.
Functions ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd is used to run arbitrary commands as test steps.
func (*Cmd) Run ¶
func (ts *Cmd) Run( ctx xcontext.Context, ch test.TestStepChannels, ev testevent.Emitter, stepsVars test.StepsVariables, params test.TestStepParameters, resumeState json.RawMessage, ) (json.RawMessage, error)
Run executes the cmd step.
func (*Cmd) ValidateParameters ¶
ValidateParameters validates the parameters associated to the TestStep
Click to show internal directories.
Click to hide internal directories.