Documentation
¶
Index ¶
- Variables
- type Feature
- func (f Feature) FindBackground(astScenarioID string) *messages.Background
- func (f Feature) FindExample(exampleAstID string) (*messages.Examples, *messages.TableRow)
- func (f Feature) FindRule(astScenarioID string) *messages.Rule
- func (f Feature) FindScenario(astScenarioID string) *messages.Scenario
- func (f Feature) FindStep(astStepID string) *messages.Step
- type PickleAttachment
- type PickleResult
- type PickleStepResult
- type StepDefinition
- type StepResultStatus
- type TestRunStarted
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnmatchedStepArgumentNumber = errors.New("func expected more arguments than given") ErrCannotConvert = errors.New("cannot convert argument") ErrUnsupportedParameterType = errors.New("func has unsupported parameter type") )
matchable errors
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct { *messages.GherkinDocument Pickles []*messages.Pickle Content []byte }
Feature is an internal object to group together the parsed gherkin document, the pickles and the raw content.
func (Feature) FindBackground ¶
func (f Feature) FindBackground(astScenarioID string) *messages.Background
FindBackground ...
func (Feature) FindExample ¶
FindExample ...
func (Feature) FindRule ¶ added in v0.12.6
FindRule returns the rule to which the given scenario belongs
func (Feature) FindScenario ¶
FindScenario returns the scenario in the feature or in a rule in the feature
type PickleAttachment ¶ added in v0.15.0
PickleAttachment ...
type PickleResult ¶
PickleResult ...
type PickleStepResult ¶
type PickleStepResult struct { Status StepResultStatus FinishedAt time.Time Err error PickleID string PickleStepID string Def *StepDefinition Attachments []PickleAttachment }
PickleStepResult ...
func NewStepResult ¶
func NewStepResult( status StepResultStatus, pickleID, pickleStepID string, match *StepDefinition, attachments []PickleAttachment, err error, ) PickleStepResult
NewStepResult ...
type StepDefinition ¶
type StepDefinition struct { formatters.StepDefinition Args []interface{} HandlerValue reflect.Value // multistep related Nested bool Undefined []string }
StepDefinition ...
func (*StepDefinition) GetInternalStepDefinition ¶
func (sd *StepDefinition) GetInternalStepDefinition() *formatters.StepDefinition
GetInternalStepDefinition ...
type StepResultStatus ¶
type StepResultStatus int
StepResultStatus ...
const ( // Passed ... Passed StepResultStatus = iota // Failed ... Failed // Skipped ... Skipped // Undefined ... Undefined // Pending ... Pending // Ambiguous ... Ambiguous )
Click to show internal directories.
Click to hide internal directories.