Documentation ¶
Overview ¶
Ginkgomon provides ginkgo test helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Command *exec.Cmd // process to be executed Name string // prefixes all output lines AnsiColorCode string // colors the output StartCheck string // text to match to indicate sucessful start. StartCheckTimeout time.Duration // how long to wait to see StartCheck Cleanup func() // invoked once the process exits }
Config defines a ginkgomon Runner.
type Runner ¶
type Runner struct { Command *exec.Cmd Name string AnsiColorCode string StartCheck string StartCheckTimeout time.Duration Cleanup func() // contains filtered or unexported fields }
The ginkgomon 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.
Click to show internal directories.
Click to hide internal directories.