Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSetup ¶ added in v0.9.0
func RegisterSetup(setup SetupFunc)
RegisterSetup registers a function to setup for plugin. Plugins must call this function in their init function if it registers the setup process.
func RegisterSetupEachScenario ¶ added in v0.9.0
func RegisterSetupEachScenario(setup SetupFunc)
RegisterSetupEachScenario registers a function to setup for plugin. Plugins must call this function in their init function if it registers the setup process. The registered function will be called before each scenario.
func SetupEachScenario ¶ added in v0.14.0
SetupEachScenario calls the registered functions by RegisterSetupEachScenario.
Types ¶
type LeftArrowFunc ¶
LeftArrowFunc represents a left arrow function.
type Plugin ¶ added in v0.9.0
type Plugin interface { Lookup(name string) (Symbol, error) GetSetup() SetupFunc GetSetupEachScenario() SetupFunc }
Plugin represents a scenarigo plugin.
type SetupFunc ¶ added in v0.9.0
SetupFunc represents a setup function. If it returns non-nil teardown, the function will be called later.
Click to show internal directories.
Click to hide internal directories.