runner

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestCasesInParallel added in v0.0.3

func RunTestCasesInParallel(opts *runTestCasesOptions) (*dto.TestRunResult, error)

RunTestCasesInParallel runs the given tests cases in parallel

func RunTestCasesSequentially added in v0.0.3

func RunTestCasesSequentially(opts *runTestCasesOptions) (*dto.TestRunResult, error)

RunTestCasesSequentially runs the given tests cases sequentially

Types

type NewTestCaseRunnerOptions

type NewTestCaseRunnerOptions struct {
	BaseDirectory               string
	ID                          string
	Pickle                      *gherkin.Pickle
	URI                         string
	SendCommand                 func(*dto.Command)
	SendCommandAndAwaitResponse func(*dto.Command) *dto.Command
	SupportCodeLibrary          *SupportCodeLibrary
	IsSkipped                   bool
}

NewTestCaseRunnerOptions are the options for NewTestCaseRunner

type PickleFilter

type PickleFilter struct {
	// contains filtered or unexported fields
}

PickleFilter filters pickles

func NewPickleFilter

func NewPickleFilter(config *dto.FeaturesFilterConfig) (*PickleFilter, error)

NewPickleFilter returns a PickleFilter

func (*PickleFilter) Matches

func (p *PickleFilter) Matches(pickleEvent *gherkin.PickleEvent) bool

Matches returns whether the pickle matches the filters

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner executes a run of cucumber

func NewRunner

func NewRunner() *Runner

NewRunner creates a runner

func (*Runner) GetCommandChannels

func (r *Runner) GetCommandChannels() (chan *dto.Command, chan *dto.Command)

GetCommandChannels returns the command channels

type SupportCodeLibrary

type SupportCodeLibrary struct {
	// contains filtered or unexported fields
}

SupportCodeLibrary represents the support code for the test run

func NewSupportCodeLibrary

func NewSupportCodeLibrary(config *dto.SupportCodeConfig) (*SupportCodeLibrary, error)

NewSupportCodeLibrary returns a SupportCodeLibrary for the given config

func (*SupportCodeLibrary) GenerateExpressions

func (s *SupportCodeLibrary) GenerateExpressions(text string) []*dto.GeneratedExpression

GenerateExpressions returns the generated expressions for an undefined step

func (*SupportCodeLibrary) GetMatchingAfterTestCaseHookDefinitions

func (s *SupportCodeLibrary) GetMatchingAfterTestCaseHookDefinitions(tagNames []string) []*dto.TestCaseHookDefinition

GetMatchingAfterTestCaseHookDefinitions returns the TestCaseHookDefinition that match the given tag names

func (*SupportCodeLibrary) GetMatchingBeforeTestCaseHookDefinitions

func (s *SupportCodeLibrary) GetMatchingBeforeTestCaseHookDefinitions(tagNames []string) []*dto.TestCaseHookDefinition

GetMatchingBeforeTestCaseHookDefinitions returns the TestCaseHookDefinition that match the given tag names

func (*SupportCodeLibrary) GetMatchingStepDefinitions

func (s *SupportCodeLibrary) GetMatchingStepDefinitions(text string) ([]*dto.StepDefinition, []*dto.PatternMatch, error)

GetMatchingStepDefinitions returns the StepDefinitions that match the given text

the pattern matches are only returned if a single step definition matches

type TestCaseRunner

type TestCaseRunner struct {
	// contains filtered or unexported fields
}

TestCaseRunner runs a test case

func NewTestCaseRunner

func NewTestCaseRunner(opts *NewTestCaseRunnerOptions) (*TestCaseRunner, error)

NewTestCaseRunner returns a TestCaseRunner

func (*TestCaseRunner) Run

func (t *TestCaseRunner) Run() *dto.TestResult

Run runs a test case

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL