The resource config/environments/test should contain a local variable setup or teardown that has a function or list of functions to be incorporated into a stageRunner that will run the actual test setup or teardown.

find_test_hook(engine, type = "setup", config)

Arguments

engine

syberia_engine. The director for the syberia project.

type

character. Must be 'setup' or 'teardown', the former being the default.

config

character. The resource used to fetch configuration.

Value

a stageRunner that will run the relevant setup or teardown hook(s).

Details

The seed environment for the stageRunner will contain the director object of the relevant project in the key director.

See also

test_engine