Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvFunc ¶
EnvFunc represents a user-defined operation that can be used to customized the behavior of the environment. Changes to context are expected to surface to caller.
type Environment ¶
type Environment interface { // WithContext returns a new Environment with a new context WithContext(context.Context) Environment // Setup registers environment operations that are executed once // prior to the environment being ready and prior to any test. Setup(...EnvFunc) Environment // BeforeTest registers funcs that are executed before each Env.Test(...) BeforeTest(...EnvFunc) Environment // Test executes a test feature defined in a TestXXX function // This method surfaces context for further updates. Test(*testing.T, Feature) // AfterTest registers funcs that are executed after each Env.Test(...) AfterTest(...EnvFunc) Environment // Finish registers funcs that are executed at the end. Finish(...EnvFunc) Environment // Run Launches the test suite from within a TestMain Run(*testing.M) int }
Environment represents an environment where features can be tested.
Click to show internal directories.
Click to hide internal directories.