syberia (version 0.6.1.9009)

find_test_hook: Fetch the test setup or teardown hook, if any exists.

Description

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.

Usage

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