1
Feature: Formatter Callback
3
Scenario: callback if not expanded
4
Given a file named "features/f.feature" with:
6
Feature: I'll use my own
8
Scenario: just print me
10
Scenario Outline: outline
18
And a file named "features/step_definitions/steps.rb" with:
20
Given /^.+ step works$/ do
22
Then /^that|there$/ do
25
When I run `cucumber features/f.feature --format debug`
26
Then it should pass with exactly:
33
before_feature_element
45
before_feature_element
98
Scenario: callback if expanded
99
Given a file named "features/f.feature" with:
101
Feature: I'll use my own
103
Scenario: just print me
104
Given this step works
105
Scenario Outline: outline
113
And a file named "features/step_definitions/steps.rb" with:
115
Given /^.+ step works$/ do
117
Then /^that|there$/ do
120
When I run `cucumber features/f.feature --format debug --expand`
121
Then it should pass with exactly:
128
before_feature_element
139
after_feature_element
140
before_feature_element
156
before_examples_array
185
after_feature_element