event

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRegistry

func InitRegistry()

InitRegistry is used for console reporting, execution API and rerun of specs

func Notify

func Notify(e ExecutionEvent)

Notify notifies all the subscribers of the event about its occurrence

func Register

func Register(ch chan ExecutionEvent, topics ...Topic)

Register registers the given channel to the given list of topics. Any updates for the given topics will be sent on this channel

Types

type ExecutionEvent

type ExecutionEvent struct {
	Topic         Topic
	Item          gauge.Item
	Result        result.Result
	Stream        int
	ExecutionInfo *gauge_messages.ExecutionInfo
}

ExecutionEvent represents an event raised during various phases of the execution lifecycle. This is only for execution and excludes parsing, validation, etc.

func NewExecutionEvent

func NewExecutionEvent(t Topic, i gauge.Item, r result.Result, stream int, executionInfo *gauge_messages.ExecutionInfo) ExecutionEvent

NewExecutionEvent creates a new execution event.

type Topic

type Topic int

Topic indicates the topic of ExecutionEvent

const (
	SuiteStart Topic = iota
	SpecStart
	ScenarioStart
	ConceptStart
	StepStart
	StepEnd
	ConceptEnd
	ScenarioEnd
	SpecEnd
	SuiteEnd
)

Jump to

Keyboard shortcuts

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