Documentation ¶
Index ¶
- type NewTestCaseFinishedOptions
- type NewTestCasePreparedOptions
- type NewTestCaseStartedOptions
- type NewTestStepFinishedOptions
- type NewTestStepStartedOptions
- type PickleAccepted
- type PickleRejected
- type TestCaseFinished
- type TestCasePrepared
- type TestCasePreparedStep
- type TestCaseStarted
- type TestRunFinished
- type TestRunStarted
- type TestStepFinished
- type TestStepStarted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewTestCaseFinishedOptions ¶
type NewTestCaseFinishedOptions struct { Pickle *gherkin.Pickle Result *dto.TestResult URI string }
NewTestCaseFinishedOptions are the options for NewTestCaseFinished
type NewTestCasePreparedOptions ¶
type NewTestCasePreparedOptions struct { Pickle *gherkin.Pickle URI string BeforeTestCaseHookDefinitions []*dto.TestCaseHookDefinition AfterTestCaseHookDefinitions []*dto.TestCaseHookDefinition StepIndexToStepDefinitions [][]*dto.StepDefinition }
NewTestCasePreparedOptions are the options for NewTestCasePrepared
type NewTestCaseStartedOptions ¶
NewTestCaseStartedOptions are the options for NewTestCaseStarted
type NewTestStepFinishedOptions ¶
type NewTestStepFinishedOptions struct { Index int Pickle *gherkin.Pickle Result *dto.TestResult URI string }
NewTestStepFinishedOptions are the options for NewTestStepFinished
type NewTestStepStartedOptions ¶
NewTestStepStartedOptions are the options for NewTestStepStarted
type PickleAccepted ¶
type PickleAccepted struct {
// contains filtered or unexported fields
}
PickleAccepted is an event for when a pickle is accepted by the filters
func NewPickleAccepted ¶
func NewPickleAccepted(pickleEvent *gherkin.PickleEvent) *PickleAccepted
NewPickleAccepted creates a PickleAccepted
func (*PickleAccepted) MarshalJSON ¶
func (p *PickleAccepted) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type PickleRejected ¶
type PickleRejected struct {
// contains filtered or unexported fields
}
PickleRejected is an event for when a pickle is rejected by the filters
func NewPickleRejected ¶
func NewPickleRejected(pickleEvent *gherkin.PickleEvent) *PickleRejected
NewPickleRejected creates a PickleRejected
func (*PickleRejected) MarshalJSON ¶
func (p *PickleRejected) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestCaseFinished ¶
type TestCaseFinished struct { Result *dto.TestResult SourceLocation *dto.Location }
TestCaseFinished is an event for when a test case finishes running
func NewTestCaseFinished ¶
func NewTestCaseFinished(opts NewTestCaseFinishedOptions) *TestCaseFinished
NewTestCaseFinished creates a TestStepFinished
func (*TestCaseFinished) MarshalJSON ¶
func (t *TestCaseFinished) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestCasePrepared ¶
type TestCasePrepared struct { SourceLocation *dto.Location Steps []*TestCasePreparedStep }
TestCasePrepared is an event for when a test case has computed what steps and hooks will run
func NewTestCasePrepared ¶
func NewTestCasePrepared(opts NewTestCasePreparedOptions) *TestCasePrepared
NewTestCasePrepared creates a TestCasePrepared
func (*TestCasePrepared) MarshalJSON ¶
func (t *TestCasePrepared) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestCasePreparedStep ¶
type TestCasePreparedStep struct { SourceLocation *dto.Location `json:"sourceLocation"` ActionLocation *dto.Location `json:"actionLocation"` }
TestCasePreparedStep is the location information for a step / hook
type TestCaseStarted ¶
TestCaseStarted is an event for when a test case starts running
func NewTestCaseStarted ¶
func NewTestCaseStarted(opts NewTestCaseStartedOptions) *TestCaseStarted
NewTestCaseStarted creates a TestCaseStarted
func (*TestCaseStarted) MarshalJSON ¶
func (t *TestCaseStarted) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestRunFinished ¶
type TestRunFinished struct {
Result *dto.TestRunResult
}
TestRunFinished is an event for when the test run finishes
func NewTestRunFinished ¶
func NewTestRunFinished(result *dto.TestRunResult) *TestRunFinished
NewTestRunFinished creates a TestRunFinished
func (*TestRunFinished) MarshalJSON ¶
func (t *TestRunFinished) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestRunStarted ¶
type TestRunStarted struct{}
TestRunStarted is an event for when the test run starts
func NewTestRunStarted ¶
func NewTestRunStarted() *TestRunStarted
NewTestRunStarted creates a TestRunStarted
func (*TestRunStarted) MarshalJSON ¶
func (t *TestRunStarted) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestStepFinished ¶
type TestStepFinished struct { Index int Result *dto.TestResult TestCase *dto.TestCase }
TestStepFinished is an event for when a test step finishes running
func NewTestStepFinished ¶
func NewTestStepFinished(opts NewTestStepFinishedOptions) *TestStepFinished
NewTestStepFinished creates a TestStepFinished
func (*TestStepFinished) MarshalJSON ¶
func (t *TestStepFinished) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type
type TestStepStarted ¶
TestStepStarted is an event for when a test step starts running
func NewTestStepStarted ¶
func NewTestStepStarted(opts NewTestStepStartedOptions) *TestStepStarted
NewTestStepStarted creates a TestStepStarted
func (*TestStepStarted) MarshalJSON ¶
func (t *TestStepStarted) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshalling to add the event type