Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string // prefixes all output lines StartCheck string // text to match to indicate sucessful start. StartCheckTimeout time.Duration // how long to wait to see StartCheck Command *exec.Cmd // process to be executed Cleanup func() // invoked once the process exits }
Config defines a ginkgomon Runner.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process represents a process
func Background ¶
Background start the runner in background
type Runner ¶
type Runner struct { Name string StartCheck string StartCheckTimeout time.Duration Command *exec.Cmd Cleanup func() // contains filtered or unexported fields }
Runner invokes a new process using gomega's gexec package.
If a start check is defined, the runner will wait until it sees the start check before declaring ready.
Runner implements gexec.Exiter and gbytes.BufferProvider, so you can test exit codes and process output using the appropriate gomega matchers: http://onsi.github.io/gomega/#gexec-testing-external-processes
func New ¶
New creates a ginkgomon Runner from a config object. Runners must be created with New to properly initialize their internal state.
func (*Runner) Err ¶
Err returns the Buffer associated with the stderr stream. For use with the Say matcher.