Documentation ¶
Index ¶
- func RunTestCasesInParallel(opts *runTestCasesOptions) (*dto.TestRunResult, error)
- func RunTestCasesSequentially(opts *runTestCasesOptions) (*dto.TestRunResult, error)
- type NewTestCaseRunnerOptions
- type PickleFilter
- type Runner
- type SupportCodeLibrary
- func (s *SupportCodeLibrary) GenerateExpressions(text string) []*dto.GeneratedExpression
- func (s *SupportCodeLibrary) GetMatchingAfterTestCaseHookDefinitions(tagNames []string) []*dto.TestCaseHookDefinition
- func (s *SupportCodeLibrary) GetMatchingBeforeTestCaseHookDefinitions(tagNames []string) []*dto.TestCaseHookDefinition
- func (s *SupportCodeLibrary) GetMatchingStepDefinitions(text string) ([]*dto.StepDefinition, []*dto.PatternMatch, error)
- type TestCaseRunner
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
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