Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableFormatters ¶
AvailableFormatters gives a map of all formatters registered with their name as key and description as value
func Format ¶
func Format(name, description string, f FormatterFunc)
Format registers a feature suite output formatter by given name, description and FormatterFunc constructor function, to initialize formatter with the output recorder.
Types ¶
type Formatter ¶
type Formatter interface { TestRunStarted() Feature(*messages.GherkinDocument, string, []byte) Pickle(*messages.Pickle) Defined(*messages.Pickle, *messages.PickleStep, *StepDefinition) Failed(*messages.Pickle, *messages.PickleStep, *StepDefinition, error) Passed(*messages.Pickle, *messages.PickleStep, *StepDefinition) Skipped(*messages.Pickle, *messages.PickleStep, *StepDefinition) Undefined(*messages.Pickle, *messages.PickleStep, *StepDefinition) Pending(*messages.Pickle, *messages.PickleStep, *StepDefinition) Summary() }
Formatter is an interface for feature runner output summary presentation.
New formatters may be created to represent suite results in different ways. These new formatters needs to be registered with a godog.Format function call
type FormatterFunc ¶
FormatterFunc builds a formatter with given suite name and io.Writer to record output
func FindFmt ¶
func FindFmt(name string) FormatterFunc
FindFmt searches available formatters registered and returns FormaterFunc matched by given format name or nil otherwise
type StepDefinition ¶
StepDefinition is a registered step definition contains a StepHandler and regexp which is used to match a step. Args which were matched by last executed step
This structure is passed to the formatter when step is matched and is either failed or successful