@@ -4,20 +4,20 @@ You can register event handlers for the following events within the cucumber lif
4
4
5
5
| Event | Object |
6
6
| ----------------| -----------------------------------------------------------|
7
- | BeforeFeatures | array of [ Features] ( lib/cucumber/ast/feature.js ) |
8
- | BeforeFeature | [ Feature] ( lib/cucumber/ast/feature.js ) |
9
- | BeforeScenario | [ Scenario] ( lib/cucumber/ast/scenario.js ) |
10
- | BeforeStep | [ Step] ( lib/cucumber/ast/step.js ) |
11
- | StepResult | [ StepResult] ( lib/cucumber/runtime/step_result.js ) |
12
- | AfterStep | [ Step] ( lib/cucumber/ast/step.js ) |
13
- | ScenarioResult | [ ScenarioResult] ( lib/cucumber/runtime/scenario_result.js ) |
14
- | AfterScenario | [ Scenario] ( lib/cucumber/ast/scenario.js ) |
15
- | AfterFeature | [ Feature] ( lib/cucumber/ast/feature.js ) |
16
- | FeaturesResult | [ FeaturesResult] ( lib/cucumber/runtime/features_result.js ) |
17
- | AfterFeatures | array of [ Features] ( lib/cucumber/ast/feature.js ) |
7
+ | BeforeFeatures | array of [ Features] ( / lib/cucumber/ast/feature.js) |
8
+ | BeforeFeature | [ Feature] ( / lib/cucumber/ast/feature.js) |
9
+ | BeforeScenario | [ Scenario] ( / lib/cucumber/ast/scenario.js) |
10
+ | BeforeStep | [ Step] ( / lib/cucumber/ast/step.js) |
11
+ | StepResult | [ StepResult] ( / lib/cucumber/runtime/step_result.js) |
12
+ | AfterStep | [ Step] ( / lib/cucumber/ast/step.js) |
13
+ | ScenarioResult | [ ScenarioResult] ( / lib/cucumber/runtime/scenario_result.js) |
14
+ | AfterScenario | [ Scenario] ( / lib/cucumber/ast/scenario.js) |
15
+ | AfterFeature | [ Feature] ( / lib/cucumber/ast/feature.js) |
16
+ | FeaturesResult | [ FeaturesResult] ( / lib/cucumber/runtime/features_result.js) |
17
+ | AfterFeatures | array of [ Features] ( / lib/cucumber/ast/feature.js) |
18
18
19
19
Hooks also trigger ` BeforeStep ` , ` StepResult ` , and ` AfterStep ` events with the object
20
- [ HookStep] ( lib/cucumber/ast/hook_step.js )
20
+ [ HookStep] ( / lib/cucumber/ast/hook_step.js)
21
21
22
22
Handlers will be passed the associated object as the first argument.
23
23
Handlers can be synchronous, return a promise, accept an additional callback argument, or use generators.
0 commit comments