~ubuntu-branches/ubuntu/wily/cucumber/wily-proposed

« back to all changes in this revision

Viewing changes to features/formatter_callbacks.feature

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier, Antonio Terceiro, Cédric Boutillier
  • Date: 2015-06-20 16:52:32 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150620165232-hznc8mxma08er27p
Tags: 2.0.0-1
[ Antonio Terceiro ]
* debian/cucumber.pod: fix typo in manpage (Closes: #767215)

[ Cédric Boutillier ]
* Imported Upstream version 2.0.0
* rename the file in debian/missing-source to remove -min suffix, and make
  lintian happy
* reproducibility: use last changelog date to build the manpage
* update 0004-Update_default_binary_path.patch
* drop 0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch, not needed
  anymore
* build-depend on pry
* depend on ruby-cucumber-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Feature: Formatter Callback
2
 
 
3
 
  Scenario: callback if not expanded
4
 
    Given a file named "features/f.feature" with:
5
 
      """
6
 
      Feature: I'll use my own
7
 
        because I'm worth it
8
 
        Scenario: just print me
9
 
          Given this step works
10
 
        Scenario Outline: outline
11
 
          Given <x> step works
12
 
          Then <y>
13
 
          Examples:
14
 
          |x|y|
15
 
          |this|that|
16
 
          |here|there|
17
 
      """
18
 
    And a file named "features/step_definitions/steps.rb" with:
19
 
      """
20
 
      Given /^.+ step works$/ do
21
 
      end
22
 
      Then /^that|there$/ do
23
 
      end
24
 
      """
25
 
    When I run `cucumber features/f.feature --format debug`
26
 
    Then it should pass with exactly:
27
 
      """
28
 
      before_features
29
 
        before_feature
30
 
          before_tags
31
 
          after_tags
32
 
          feature_name
33
 
          before_feature_element
34
 
            before_tags
35
 
            after_tags
36
 
            scenario_name
37
 
            before_steps
38
 
              before_step
39
 
                before_step_result
40
 
                  step_name
41
 
                after_step_result
42
 
              after_step
43
 
            after_steps
44
 
          after_feature_element
45
 
          before_feature_element
46
 
            before_tags
47
 
            after_tags
48
 
            scenario_name
49
 
            before_steps
50
 
              before_step
51
 
                before_step_result
52
 
                  step_name
53
 
                after_step_result
54
 
              after_step
55
 
              before_step
56
 
                before_step_result
57
 
                  step_name
58
 
                after_step_result
59
 
              after_step
60
 
            after_steps
61
 
            before_examples_array
62
 
              before_examples
63
 
                examples_name
64
 
                before_outline_table
65
 
                  before_table_row
66
 
                    before_table_cell
67
 
                      table_cell_value
68
 
                    after_table_cell
69
 
                    before_table_cell
70
 
                      table_cell_value
71
 
                    after_table_cell
72
 
                  after_table_row
73
 
                  before_table_row
74
 
                    before_table_cell
75
 
                      table_cell_value
76
 
                    after_table_cell
77
 
                    before_table_cell
78
 
                      table_cell_value
79
 
                    after_table_cell
80
 
                  after_table_row
81
 
                  before_table_row
82
 
                    before_table_cell
83
 
                      table_cell_value
84
 
                    after_table_cell
85
 
                    before_table_cell
86
 
                      table_cell_value
87
 
                    after_table_cell
88
 
                  after_table_row
89
 
                after_outline_table
90
 
              after_examples
91
 
            after_examples_array
92
 
          after_feature_element
93
 
        after_feature
94
 
      after_features
95
 
 
96
 
      """
97
 
 
98
 
  Scenario: callback if expanded
99
 
    Given a file named "features/f.feature" with:
100
 
      """
101
 
      Feature: I'll use my own
102
 
        because I'm worth it
103
 
        Scenario: just print me
104
 
          Given this step works
105
 
        Scenario Outline: outline
106
 
          Given <x> step works
107
 
          Then <y>
108
 
          Examples:
109
 
          |x|y|
110
 
          |this|that|
111
 
          |here|there|
112
 
      """
113
 
    And a file named "features/step_definitions/steps.rb" with:
114
 
      """
115
 
      Given /^.+ step works$/ do
116
 
      end
117
 
      Then /^that|there$/ do
118
 
      end
119
 
      """
120
 
    When I run `cucumber features/f.feature --format debug --expand`
121
 
    Then it should pass with exactly:
122
 
      """
123
 
      before_features
124
 
        before_feature
125
 
          before_tags
126
 
          after_tags
127
 
          feature_name
128
 
          before_feature_element
129
 
            before_tags
130
 
            after_tags
131
 
            scenario_name
132
 
            before_steps
133
 
              before_step
134
 
                before_step_result
135
 
                  step_name
136
 
                after_step_result
137
 
              after_step
138
 
            after_steps
139
 
          after_feature_element
140
 
          before_feature_element
141
 
            before_tags
142
 
            after_tags
143
 
            scenario_name
144
 
            before_steps
145
 
              before_step
146
 
                before_step_result
147
 
                  step_name
148
 
                after_step_result
149
 
              after_step
150
 
              before_step
151
 
                before_step_result
152
 
                  step_name
153
 
                after_step_result
154
 
              after_step
155
 
            after_steps
156
 
            before_examples_array
157
 
              before_examples
158
 
                examples_name
159
 
                before_outline_table
160
 
                  scenario_name
161
 
                  before_step
162
 
                    before_step_result
163
 
                      step_name
164
 
                    after_step_result
165
 
                  after_step
166
 
                  before_step
167
 
                    before_step_result
168
 
                      step_name
169
 
                    after_step_result
170
 
                  after_step
171
 
                  scenario_name
172
 
                  before_step
173
 
                    before_step_result
174
 
                      step_name
175
 
                    after_step_result
176
 
                  after_step
177
 
                  before_step
178
 
                    before_step_result
179
 
                      step_name
180
 
                    after_step_result
181
 
                  after_step
182
 
                after_outline_table
183
 
              after_examples
184
 
            after_examples_array
185
 
          after_feature_element
186
 
        after_feature
187
 
      after_features
188
 
 
189
 
      """