Documentation ¶
Index ¶
- func BaseFormatterFunc(suite string, out io.Writer) formatters.Formatter
- func CucumberFormatterFunc(suite string, out io.Writer) formatters.Formatter
- func DefinitionID(sd *models.StepDefinition) string
- func EventsFormatterFunc(suite string, out io.Writer) formatters.Formatter
- func JUnitFormatterFunc(suite string, out io.Writer) formatters.Formatter
- func PrettyFormatterFunc(suite string, out io.Writer) formatters.Formatter
- func ProgressFormatterFunc(suite string, out io.Writer) formatters.Formatter
- type Base
- func (f *Base) Defined(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
- func (f *Base) Failed(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition, error)
- func (f *Base) Feature(*messages.GherkinDocument, string, []byte)
- func (f *Base) Passed(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
- func (f *Base) Pending(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
- func (f *Base) Pickle(*messages.Pickle)
- func (f *Base) SetStorage(st *storage.Storage)
- func (f *Base) Skipped(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
- func (f *Base) Snippets() string
- func (f *Base) Summary()
- func (f *Base) TestRunStarted()
- func (f *Base) Undefined(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
- type Cuke
- type CukeFeatureJSON
- type Events
- func (f *Events) Defined(pickle *messages.Pickle, pickleStep *messages.PickleStep, ...)
- func (f *Events) Failed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Events) Feature(ft *messages.GherkinDocument, p string, c []byte)
- func (f *Events) Passed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Events) Pending(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Events) Pickle(pickle *messages.Pickle)
- func (f *Events) Skipped(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Events) Summary()
- func (f *Events) TestRunStarted()
- func (f *Events) Undefined(pickle *messages.Pickle, step *messages.PickleStep, ...)
- type JUnit
- type JunitPackageSuite
- type MultiFormatter
- type Pretty
- func (f *Pretty) Failed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Pretty) Feature(gd *messages.GherkinDocument, p string, c []byte)
- func (f *Pretty) Passed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Pretty) Pending(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Pretty) Pickle(pickle *messages.Pickle)
- func (f *Pretty) Skipped(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Pretty) Summary()
- func (f *Pretty) TestRunStarted()
- func (f *Pretty) Undefined(pickle *messages.Pickle, step *messages.PickleStep, ...)
- type Progress
- func (f *Progress) Failed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Progress) Passed(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Progress) Pending(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Progress) Skipped(pickle *messages.Pickle, step *messages.PickleStep, ...)
- func (f *Progress) Summary()
- func (f *Progress) Undefined(pickle *messages.Pickle, step *messages.PickleStep, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseFormatterFunc ¶
func BaseFormatterFunc(suite string, out io.Writer) formatters.Formatter
BaseFormatterFunc implements the FormatterFunc for the base formatter.
func CucumberFormatterFunc ¶
func CucumberFormatterFunc(suite string, out io.Writer) formatters.Formatter
CucumberFormatterFunc implements the FormatterFunc for the cucumber formatter
func EventsFormatterFunc ¶
func EventsFormatterFunc(suite string, out io.Writer) formatters.Formatter
EventsFormatterFunc implements the FormatterFunc for the events formatter
func JUnitFormatterFunc ¶
func JUnitFormatterFunc(suite string, out io.Writer) formatters.Formatter
JUnitFormatterFunc implements the FormatterFunc for the junit formatter
func PrettyFormatterFunc ¶
func PrettyFormatterFunc(suite string, out io.Writer) formatters.Formatter
PrettyFormatterFunc implements the FormatterFunc for the pretty formatter
func ProgressFormatterFunc ¶
func ProgressFormatterFunc(suite string, out io.Writer) formatters.Formatter
ProgressFormatterFunc implements the FormatterFunc for the progress formatter.
Types ¶
type Base ¶
type Base struct { Storage *storage.Storage Lock *sync.Mutex // contains filtered or unexported fields }
Base is a base formatter.
func (*Base) Defined ¶
func (f *Base) Defined(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
Defined receives step definition.
func (*Base) Failed ¶
func (f *Base) Failed(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition, error)
Failed captures failed step.
func (*Base) Passed ¶
func (f *Base) Passed(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
Passed captures passed step.
func (*Base) Pending ¶
func (f *Base) Pending(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
Pending captures pending step.
func (*Base) SetStorage ¶
SetStorage assigns gherkin data storage.
func (*Base) Skipped ¶
func (f *Base) Skipped(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
Skipped captures skipped step.
func (*Base) TestRunStarted ¶
func (f *Base) TestRunStarted()
TestRunStarted is triggered on test start.
func (*Base) Undefined ¶
func (f *Base) Undefined(*messages.Pickle, *messages.PickleStep, *formatters.StepDefinition)
Undefined captures undefined step.
type CukeFeatureJSON ¶
type CukeFeatureJSON struct { URI string `json:"uri"` ID string `json:"id"` Keyword string `json:"keyword"` Name string `json:"name"` Description string `json:"description"` Line int `json:"line"` Comments []cukeComment `json:"comments,omitempty"` Tags []cukeTag `json:"tags,omitempty"` Elements []cukeElement `json:"elements,omitempty"` }
CukeFeatureJSON ...
type Events ¶
type Events struct {
*Base
}
Events - Events formatter
func (*Events) Defined ¶
func (f *Events) Defined(pickle *messages.Pickle, pickleStep *messages.PickleStep, def *formatters.StepDefinition)
Defined receives step definition.
func (*Events) Failed ¶
func (f *Events) Failed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition, err error)
Failed captures failed step.
func (*Events) Passed ¶
func (f *Events) Passed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Passed captures passed step.
func (*Events) Pending ¶
func (f *Events) Pending(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Pending captures pending step.
func (*Events) Skipped ¶
func (f *Events) Skipped(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Skipped captures skipped step.
func (*Events) Summary ¶
func (f *Events) Summary()
Summary pushes summary information to JSON stream.
func (*Events) TestRunStarted ¶
func (f *Events) TestRunStarted()
TestRunStarted is triggered on test start.
func (*Events) Undefined ¶
func (f *Events) Undefined(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Undefined captures undefined step.
type JunitPackageSuite ¶
type JunitPackageSuite struct { XMLName xml.Name `xml:"testsuites"` Name string `xml:"name,attr"` Tests int `xml:"tests,attr"` Skipped int `xml:"skipped,attr"` Failures int `xml:"failures,attr"` Errors int `xml:"errors,attr"` Time string `xml:"time,attr"` TestSuites []*junitTestSuite }
JunitPackageSuite ...
type MultiFormatter ¶
type MultiFormatter struct {
// contains filtered or unexported fields
}
MultiFormatter passes test progress to multiple formatters.
func (*MultiFormatter) Add ¶
func (m *MultiFormatter) Add(name string, out io.Writer)
Add adds formatter with output writer.
func (*MultiFormatter) FormatterFunc ¶
func (m *MultiFormatter) FormatterFunc(suite string, out io.Writer) formatters.Formatter
FormatterFunc implements the FormatterFunc for the multi formatter.
type Pretty ¶
type Pretty struct { *Base // contains filtered or unexported fields }
Pretty is a formatter for readable output.
func (*Pretty) Failed ¶
func (f *Pretty) Failed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition, err error)
Failed captures failed step.
func (*Pretty) Passed ¶
func (f *Pretty) Passed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Passed captures passed step.
func (*Pretty) Pending ¶
func (f *Pretty) Pending(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Pending captures pending step.
func (*Pretty) Pickle ¶
func (f *Pretty) Pickle(pickle *messages.Pickle)
Pickle takes a gherkin node for formatting.
func (*Pretty) Skipped ¶
func (f *Pretty) Skipped(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Skipped captures skipped step.
func (*Pretty) TestRunStarted ¶
func (f *Pretty) TestRunStarted()
TestRunStarted is triggered on test start.
func (*Pretty) Undefined ¶
func (f *Pretty) Undefined(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Undefined captures undefined step.
type Progress ¶
Progress is a minimalistic formatter.
func NewProgress ¶
NewProgress creates a new progress formatter.
func (*Progress) Failed ¶
func (f *Progress) Failed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition, err error)
Failed captures failed step.
func (*Progress) Passed ¶
func (f *Progress) Passed(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Passed captures passed step.
func (*Progress) Pending ¶
func (f *Progress) Pending(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Pending captures pending step.
func (*Progress) Skipped ¶
func (f *Progress) Skipped(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Skipped captures skipped step.
func (*Progress) Undefined ¶
func (f *Progress) Undefined(pickle *messages.Pickle, step *messages.PickleStep, match *formatters.StepDefinition)
Undefined captures undefined step.