Documentation ¶
Index ¶
- func RunTestCasesInParallel(opts *runTestCasesOptions) (bool, error)
- func RunTestCasesSequentially(opts *runTestCasesOptions) (bool, error)
- type NewTestCaseRunnerOptions
- type PickleFilter
- type Runner
- type SupportCodeLibrary
- func (s *SupportCodeLibrary) GenerateExpressions(text string) []*messages.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, []*messages.PatternMatch, error)
- type TestCaseRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestCasesInParallel ¶ added in v0.0.3
RunTestCasesInParallel runs the given tests cases in parallel
func RunTestCasesSequentially ¶ added in v0.0.3
RunTestCasesSequentially runs the given tests cases sequentially
Types ¶
type NewTestCaseRunnerOptions ¶
type NewTestCaseRunnerOptions struct { BaseDirectory string Pickle *messages.Pickle SendCommand func(*messages.Envelope) SendCommandAndAwaitResponse func(*messages.Envelope) *messages.Envelope 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 *messages.SourcesFilterConfig) (*PickleFilter, error)
NewPickleFilter returns a PickleFilter
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 *messages.SupportCodeConfig) (*SupportCodeLibrary, error)
NewSupportCodeLibrary returns a SupportCodeLibrary for the given config
func (*SupportCodeLibrary) GenerateExpressions ¶
func (s *SupportCodeLibrary) GenerateExpressions(text string) []*messages.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, []*messages.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() *messages.TestResult
Run runs a test case