casecumber 1.0.2.1 → 1.2.1.cb2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/.travis.yml +13 -6
- data/Gemfile +2 -0
- data/History.md +139 -0
- data/LICENSE +1 -1
- data/README.md +19 -4
- data/cucumber.gemspec +16 -29
- data/cucumber.yml +3 -3
- data/examples/i18n/README.textile +1 -16
- data/features/.cucumber/stepdefs.json +612 -0
- data/features/backtraces.feature +36 -0
- data/features/doc_strings.feature +73 -0
- data/features/drb_server_integration.feature +63 -0
- data/features/formatter_step_file_colon_line.feature +46 -0
- data/features/json_formatter.feature +137 -137
- data/features/nested_steps.feature +60 -0
- data/features/rerun_formatter.feature +35 -0
- data/features/run_specific_scenarios.feature +47 -0
- data/features/step_definitions/cucumber-features/cucumber_ruby_mappings.rb +32 -3
- data/features/step_definitions/cucumber_steps.rb +15 -0
- data/features/step_definitions/drb_steps.rb +3 -0
- data/features/support/env.rb +4 -0
- data/features/support/feature_factory.rb +50 -0
- data/gem_tasks/cucumber.rake +15 -8
- data/gem_tasks/yard.rake +18 -0
- data/legacy_features/call_steps_from_stepdefs.feature +1 -1
- data/legacy_features/cucumber_cli.feature +0 -7
- data/legacy_features/default_snippets.feature +3 -2
- data/legacy_features/junit_formatter.feature +60 -10
- data/legacy_features/language_help.feature +17 -15
- data/legacy_features/snippets_when_using_star_keyword.feature +3 -2
- data/legacy_features/step_definitions/cucumber_steps.rb +1 -1
- data/legacy_features/support/env.rb +1 -1
- data/legacy_features/wire_protocol.feature +1 -1
- data/lib/cucumber/ast/background.rb +11 -0
- data/lib/cucumber/ast/doc_string.rb +10 -29
- data/lib/cucumber/ast/feature.rb +6 -2
- data/lib/cucumber/ast/feature_element.rb +7 -3
- data/lib/cucumber/ast/multiline_argument.rb +30 -0
- data/lib/cucumber/ast/outline_table.rb +20 -12
- data/lib/cucumber/ast/step.rb +1 -1
- data/lib/cucumber/ast/step_invocation.rb +2 -15
- data/lib/cucumber/ast/table.rb +67 -38
- data/lib/cucumber/ast/tags.rb +7 -7
- data/lib/cucumber/ast/tree_walker.rb +5 -5
- data/lib/cucumber/cli/configuration.rb +4 -0
- data/lib/cucumber/cli/main.rb +1 -0
- data/lib/cucumber/cli/options.rb +29 -10
- data/lib/cucumber/constantize.rb +1 -1
- data/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb +24 -10
- data/lib/cucumber/formatter/ansicolor.rb +8 -13
- data/lib/cucumber/formatter/console.rb +3 -2
- data/lib/cucumber/formatter/cucumber.css +7 -1
- data/lib/cucumber/formatter/gherkin_formatter_adapter.rb +6 -2
- data/lib/cucumber/formatter/html.rb +14 -8
- data/lib/cucumber/formatter/interceptor.rb +62 -0
- data/lib/cucumber/formatter/json.rb +0 -12
- data/lib/cucumber/formatter/junit.rb +31 -15
- data/lib/cucumber/formatter/pretty.rb +3 -3
- data/lib/cucumber/formatter/progress.rb +1 -1
- data/lib/cucumber/formatter/rerun.rb +31 -8
- data/lib/cucumber/formatter/usage.rb +1 -1
- data/lib/cucumber/js_support/js_language.rb +1 -1
- data/lib/cucumber/js_support/js_snippets.rb +1 -1
- data/lib/cucumber/language_support/language_methods.rb +0 -4
- data/lib/cucumber/parser/gherkin_builder.rb +13 -14
- data/lib/cucumber/platform.rb +1 -1
- data/lib/cucumber/py_support/py_language.rb +3 -7
- data/lib/cucumber/rb_support/rb_dsl.rb +15 -8
- data/lib/cucumber/rb_support/rb_language.rb +3 -17
- data/lib/cucumber/rb_support/rb_step_definition.rb +17 -5
- data/lib/cucumber/rb_support/rb_transform.rb +5 -2
- data/lib/cucumber/rb_support/rb_world.rb +9 -5
- data/lib/cucumber/rb_support/regexp_argument_matcher.rb +3 -3
- data/lib/cucumber/runtime/results.rb +2 -2
- data/lib/cucumber/runtime/support_code.rb +14 -19
- data/lib/cucumber/runtime.rb +40 -2
- data/lib/cucumber/step_match.rb +3 -4
- data/lib/cucumber/term/ansicolor.rb +118 -0
- data/lib/cucumber/wire_support/wire_protocol/requests.rb +7 -5
- data/lib/cucumber/wire_support/wire_protocol.rb +0 -1
- data/lib/cucumber.rb +2 -1
- data/spec/cucumber/ast/doc_string_spec.rb +2 -2
- data/spec/cucumber/ast/feature_factory.rb +4 -3
- data/spec/cucumber/ast/scenario_outline_spec.rb +1 -2
- data/spec/cucumber/ast/step_spec.rb +1 -1
- data/spec/cucumber/ast/table_spec.rb +61 -27
- data/spec/cucumber/cli/configuration_spec.rb +12 -6
- data/spec/cucumber/cli/main_spec.rb +2 -2
- data/spec/cucumber/cli/options_spec.rb +9 -3
- data/spec/cucumber/constantize_spec.rb +16 -0
- data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
- data/spec/cucumber/formatter/html_spec.rb +4 -3
- data/spec/cucumber/formatter/interceptor_spec.rb +111 -0
- data/spec/cucumber/formatter/junit_spec.rb +36 -20
- data/spec/cucumber/formatter/progress_spec.rb +2 -2
- data/spec/cucumber/rb_support/rb_language_spec.rb +5 -5
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +20 -4
- data/spec/cucumber/rb_support/rb_transform_spec.rb +6 -2
- data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +7 -3
- data/spec/cucumber/runtime/results_spec.rb +81 -0
- data/spec/cucumber/step_match_spec.rb +8 -4
- data/spec/spec_helper.rb +15 -1
- metadata +68 -128
- data/.gitignore +0 -26
- data/.gitmodules +0 -3
- data/.yardopts +0 -0
- data/Gemfile.lock +0 -115
- data/examples/i18n/de/.gitignore +0 -1
- data/examples/i18n/en/.gitignore +0 -1
- data/examples/i18n/eo/.gitignore +0 -1
- data/examples/i18n/fi/.gitignore +0 -1
- data/examples/i18n/hu/.gitignore +0 -1
- data/examples/i18n/id/.gitignore +0 -1
- data/examples/i18n/ja/.gitignore +0 -1
- data/examples/i18n/ko/.gitignore +0 -1
- data/examples/i18n/lt/.gitignore +0 -1
- data/examples/i18n/pl/.gitignore +0 -1
- data/examples/i18n/sk/.gitignore +0 -1
- data/examples/i18n/tr/.gitignore +0 -1
- data/examples/i18n/zh-TW/.gitignore +0 -1
- data/examples/python/lib/.gitignore +0 -1
- data/examples/ruby2python/lib/.gitignore +0 -1
- data/examples/watir/.gitignore +0 -2
- data/fixtures/self_test/.gitignore +0 -1
- data/lib/cucumber/formatter/pdf.rb +0 -244
- data/lib/cucumber/step_argument.rb +0 -9
@@ -0,0 +1,612 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"source": "^I'm using a clean gemset \"([^\"]*)\"$",
|
4
|
+
"flags": "",
|
5
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:7",
|
6
|
+
"steps": [
|
7
|
+
|
8
|
+
]
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"source": "^a directory named \"([^\"]*)\"$",
|
12
|
+
"flags": "",
|
13
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:11",
|
14
|
+
"steps": [
|
15
|
+
|
16
|
+
]
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"source": "^a file named \"([^\"]*)\" with:$",
|
20
|
+
"flags": "",
|
21
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:15",
|
22
|
+
"steps": [
|
23
|
+
{
|
24
|
+
"name": "a file named \"features/test.feature\" with:",
|
25
|
+
"args": [
|
26
|
+
{
|
27
|
+
"offset": 14,
|
28
|
+
"val": "features/test.feature"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
]
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"source": "^a (\\d+) byte file named \"([^\"]*)\"$",
|
36
|
+
"flags": "",
|
37
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:19",
|
38
|
+
"steps": [
|
39
|
+
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"source": "^an empty file named \"([^\"]*)\"$",
|
44
|
+
"flags": "",
|
45
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:23",
|
46
|
+
"steps": [
|
47
|
+
|
48
|
+
]
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"source": "^I write to \"([^\"]*)\" with:$",
|
52
|
+
"flags": "",
|
53
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:27",
|
54
|
+
"steps": [
|
55
|
+
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"source": "^I overwrite \"([^\"]*)\" with:$",
|
60
|
+
"flags": "",
|
61
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:31",
|
62
|
+
"steps": [
|
63
|
+
|
64
|
+
]
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"source": "^I append to \"([^\"]*)\" with:$",
|
68
|
+
"flags": "",
|
69
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:35",
|
70
|
+
"steps": [
|
71
|
+
|
72
|
+
]
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"source": "^I append to \"([^\"]*)\" with \"([^\"]*)\"$",
|
76
|
+
"flags": "",
|
77
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:39",
|
78
|
+
"steps": [
|
79
|
+
|
80
|
+
]
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"source": "^I remove the file \"([^\"]*)\"$",
|
84
|
+
"flags": "",
|
85
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:43",
|
86
|
+
"steps": [
|
87
|
+
|
88
|
+
]
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"source": "^I cd to \"([^\"]*)\"$",
|
92
|
+
"flags": "",
|
93
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:47",
|
94
|
+
"steps": [
|
95
|
+
|
96
|
+
]
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"source": "^I run \"(.*)\"$",
|
100
|
+
"flags": "",
|
101
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:51",
|
102
|
+
"steps": [
|
103
|
+
|
104
|
+
]
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"source": "^I run `([^`]*)`$",
|
108
|
+
"flags": "",
|
109
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:56",
|
110
|
+
"steps": [
|
111
|
+
{
|
112
|
+
"name": "I run `cucumber features/test.feature:5 -f progress`",
|
113
|
+
"args": [
|
114
|
+
{
|
115
|
+
"offset": 7,
|
116
|
+
"val": "cucumber features/test.feature:5 -f progress"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "I run `cucumber features/test.feature:8 -f progress`",
|
122
|
+
"args": [
|
123
|
+
{
|
124
|
+
"offset": 7,
|
125
|
+
"val": "cucumber features/test.feature:8 -f progress"
|
126
|
+
}
|
127
|
+
]
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"source": "^I successfully run \"(.*)\"$",
|
133
|
+
"flags": "",
|
134
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:60",
|
135
|
+
"steps": [
|
136
|
+
|
137
|
+
]
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"source": "^I successfully run `([^`]*)`$",
|
141
|
+
"flags": "",
|
142
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:65",
|
143
|
+
"steps": [
|
144
|
+
|
145
|
+
]
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"source": "^I run \"([^\"]*)\" interactively$",
|
149
|
+
"flags": "",
|
150
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:69",
|
151
|
+
"steps": [
|
152
|
+
|
153
|
+
]
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"source": "^I run `([^`]*)` interactively$",
|
157
|
+
"flags": "",
|
158
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:74",
|
159
|
+
"steps": [
|
160
|
+
|
161
|
+
]
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"source": "^I type \"([^\"]*)\"$",
|
165
|
+
"flags": "",
|
166
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:78",
|
167
|
+
"steps": [
|
168
|
+
|
169
|
+
]
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"source": "^the output should contain \"([^\"]*)\"$",
|
173
|
+
"flags": "",
|
174
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:82",
|
175
|
+
"steps": [
|
176
|
+
|
177
|
+
]
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"source": "^the output from \"([^\"]*)\" should contain \"([^\"]*)\"$",
|
181
|
+
"flags": "",
|
182
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:86",
|
183
|
+
"steps": [
|
184
|
+
|
185
|
+
]
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"source": "^the output from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
|
189
|
+
"flags": "",
|
190
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:90",
|
191
|
+
"steps": [
|
192
|
+
|
193
|
+
]
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"source": "^the output should not contain \"([^\"]*)\"$",
|
197
|
+
"flags": "",
|
198
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:94",
|
199
|
+
"steps": [
|
200
|
+
|
201
|
+
]
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"source": "^the output should contain:$",
|
205
|
+
"flags": "",
|
206
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:98",
|
207
|
+
"steps": [
|
208
|
+
|
209
|
+
]
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"source": "^the output should not contain:$",
|
213
|
+
"flags": "",
|
214
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:102",
|
215
|
+
"steps": [
|
216
|
+
|
217
|
+
]
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"source": "^the output should contain exactly \"([^\"]*)\"$",
|
221
|
+
"flags": "",
|
222
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:106",
|
223
|
+
"steps": [
|
224
|
+
|
225
|
+
]
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"source": "^the output should contain exactly:$",
|
229
|
+
"flags": "",
|
230
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:110",
|
231
|
+
"steps": [
|
232
|
+
|
233
|
+
]
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"source": "^the output should match \\/([^\\/]*)\\/$",
|
237
|
+
"flags": "",
|
238
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:118",
|
239
|
+
"steps": [
|
240
|
+
|
241
|
+
]
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"source": "^the output should match:$",
|
245
|
+
"flags": "",
|
246
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:122",
|
247
|
+
"steps": [
|
248
|
+
|
249
|
+
]
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"source": "^the exit status should be (\\d+)$",
|
253
|
+
"flags": "",
|
254
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:126",
|
255
|
+
"steps": [
|
256
|
+
|
257
|
+
]
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"source": "^the exit status should not be (\\d+)$",
|
261
|
+
"flags": "",
|
262
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:130",
|
263
|
+
"steps": [
|
264
|
+
|
265
|
+
]
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"source": "^it should (pass|fail) with:$",
|
269
|
+
"flags": "",
|
270
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:134",
|
271
|
+
"steps": [
|
272
|
+
{
|
273
|
+
"name": "it should fail with:",
|
274
|
+
"args": [
|
275
|
+
{
|
276
|
+
"offset": 10,
|
277
|
+
"val": "fail"
|
278
|
+
}
|
279
|
+
]
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"name": "it should pass with:",
|
283
|
+
"args": [
|
284
|
+
{
|
285
|
+
"offset": 10,
|
286
|
+
"val": "pass"
|
287
|
+
}
|
288
|
+
]
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"source": "^it should (pass|fail) with exactly:$",
|
294
|
+
"flags": "",
|
295
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:138",
|
296
|
+
"steps": [
|
297
|
+
|
298
|
+
]
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"source": "^it should (pass|fail) with regexp?:$",
|
302
|
+
"flags": "",
|
303
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:142",
|
304
|
+
"steps": [
|
305
|
+
|
306
|
+
]
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"source": "^the stderr should contain \"([^\"]*)\"$",
|
310
|
+
"flags": "",
|
311
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:147",
|
312
|
+
"steps": [
|
313
|
+
|
314
|
+
]
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"source": "^the stderr should contain:$",
|
318
|
+
"flags": "",
|
319
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:151",
|
320
|
+
"steps": [
|
321
|
+
|
322
|
+
]
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"source": "^the stderr should contain exactly:$",
|
326
|
+
"flags": "",
|
327
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:155",
|
328
|
+
"steps": [
|
329
|
+
|
330
|
+
]
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"source": "^the stdout should contain \"([^\"]*)\"$",
|
334
|
+
"flags": "",
|
335
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:159",
|
336
|
+
"steps": [
|
337
|
+
|
338
|
+
]
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"source": "^the stdout should contain:$",
|
342
|
+
"flags": "",
|
343
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:163",
|
344
|
+
"steps": [
|
345
|
+
|
346
|
+
]
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"source": "^the stdout should contain exactly:$",
|
350
|
+
"flags": "",
|
351
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:167",
|
352
|
+
"steps": [
|
353
|
+
|
354
|
+
]
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"source": "^the stderr should not contain \"([^\"]*)\"$",
|
358
|
+
"flags": "",
|
359
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:171",
|
360
|
+
"steps": [
|
361
|
+
|
362
|
+
]
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"source": "^the stderr should not contain:$",
|
366
|
+
"flags": "",
|
367
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:175",
|
368
|
+
"steps": [
|
369
|
+
|
370
|
+
]
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"source": "^the stdout should not contain \"([^\"]*)\"$",
|
374
|
+
"flags": "",
|
375
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:179",
|
376
|
+
"steps": [
|
377
|
+
|
378
|
+
]
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"source": "^the stdout should not contain:$",
|
382
|
+
"flags": "",
|
383
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:183",
|
384
|
+
"steps": [
|
385
|
+
|
386
|
+
]
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"source": "^the stdout from \"([^\"]*)\" should contain \"([^\"]*)\"$",
|
390
|
+
"flags": "",
|
391
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:187",
|
392
|
+
"steps": [
|
393
|
+
|
394
|
+
]
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"source": "^the stdout from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
|
398
|
+
"flags": "",
|
399
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:191",
|
400
|
+
"steps": [
|
401
|
+
|
402
|
+
]
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"source": "^the stderr from \"([^\"]*)\" should contain \"([^\"]*)\"$",
|
406
|
+
"flags": "",
|
407
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:195",
|
408
|
+
"steps": [
|
409
|
+
|
410
|
+
]
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"source": "^the stderr from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
|
414
|
+
"flags": "",
|
415
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:199",
|
416
|
+
"steps": [
|
417
|
+
|
418
|
+
]
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"source": "^the file \"([^\"]*)\" should not exist$",
|
422
|
+
"flags": "",
|
423
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:203",
|
424
|
+
"steps": [
|
425
|
+
|
426
|
+
]
|
427
|
+
},
|
428
|
+
{
|
429
|
+
"source": "^the following files should exist:$",
|
430
|
+
"flags": "",
|
431
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:207",
|
432
|
+
"steps": [
|
433
|
+
|
434
|
+
]
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"source": "^the following files should not exist:$",
|
438
|
+
"flags": "",
|
439
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:211",
|
440
|
+
"steps": [
|
441
|
+
|
442
|
+
]
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"source": "^a file named \"([^\"]*)\" should exist$",
|
446
|
+
"flags": "",
|
447
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:215",
|
448
|
+
"steps": [
|
449
|
+
|
450
|
+
]
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"source": "^a file named \"([^\"]*)\" should not exist$",
|
454
|
+
"flags": "",
|
455
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:219",
|
456
|
+
"steps": [
|
457
|
+
|
458
|
+
]
|
459
|
+
},
|
460
|
+
{
|
461
|
+
"source": "^a (\\d+) byte file named \"([^\"]*)\" should exist$",
|
462
|
+
"flags": "",
|
463
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:223",
|
464
|
+
"steps": [
|
465
|
+
|
466
|
+
]
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"source": "^the following directories should exist:$",
|
470
|
+
"flags": "",
|
471
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:227",
|
472
|
+
"steps": [
|
473
|
+
|
474
|
+
]
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"source": "^the following directories should not exist:$",
|
478
|
+
"flags": "",
|
479
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:231",
|
480
|
+
"steps": [
|
481
|
+
|
482
|
+
]
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"source": "^a directory named \"([^\"]*)\" should exist$",
|
486
|
+
"flags": "",
|
487
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:235",
|
488
|
+
"steps": [
|
489
|
+
|
490
|
+
]
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"source": "^a directory named \"([^\"]*)\" should not exist$",
|
494
|
+
"flags": "",
|
495
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:239",
|
496
|
+
"steps": [
|
497
|
+
|
498
|
+
]
|
499
|
+
},
|
500
|
+
{
|
501
|
+
"source": "^the file \"([^\"]*)\" should contain \"([^\"]*)\"$",
|
502
|
+
"flags": "",
|
503
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:243",
|
504
|
+
"steps": [
|
505
|
+
|
506
|
+
]
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"source": "^the file \"([^\"]*)\" should not contain \"([^\"]*)\"$",
|
510
|
+
"flags": "",
|
511
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:247",
|
512
|
+
"steps": [
|
513
|
+
|
514
|
+
]
|
515
|
+
},
|
516
|
+
{
|
517
|
+
"source": "^the file \"([^\"]*)\" should contain exactly:$",
|
518
|
+
"flags": "",
|
519
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:251",
|
520
|
+
"steps": [
|
521
|
+
|
522
|
+
]
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"source": "^the file \"([^\"]*)\" should match \\/([^\\/]*)\\/$",
|
526
|
+
"flags": "",
|
527
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:255",
|
528
|
+
"steps": [
|
529
|
+
|
530
|
+
]
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"source": "^the file \"([^\"]*)\" should not match \\/([^\\/]*)\\/$",
|
534
|
+
"flags": "",
|
535
|
+
"file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:259",
|
536
|
+
"steps": [
|
537
|
+
|
538
|
+
]
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"source": "^I run cucumber \"(.+)\"$",
|
542
|
+
"flags": "",
|
543
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:1",
|
544
|
+
"steps": [
|
545
|
+
|
546
|
+
]
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"source": "^it should (pass|fail) with JSON:$",
|
550
|
+
"flags": "",
|
551
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:5",
|
552
|
+
"steps": [
|
553
|
+
|
554
|
+
]
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"source": "^a directory without standard Cucumber project directory structure$",
|
558
|
+
"flags": "",
|
559
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:19",
|
560
|
+
"steps": [
|
561
|
+
|
562
|
+
]
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"source": "^a scenario with a step that looks like this:$",
|
566
|
+
"flags": "",
|
567
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:25",
|
568
|
+
"steps": [
|
569
|
+
|
570
|
+
]
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"source": "^a step definition that looks like this:$",
|
574
|
+
"flags": "",
|
575
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:31",
|
576
|
+
"steps": [
|
577
|
+
|
578
|
+
]
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"source": "^I run the feature with the (\\w+) formatter$",
|
582
|
+
"flags": "",
|
583
|
+
"file_colon_line": "features/step_definitions/cucumber_steps.rb:35",
|
584
|
+
"steps": [
|
585
|
+
|
586
|
+
]
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"source": "^I am running spork in the background$",
|
590
|
+
"flags": "",
|
591
|
+
"file_colon_line": "features/step_definitions/drb_steps.rb:1",
|
592
|
+
"steps": [
|
593
|
+
|
594
|
+
]
|
595
|
+
},
|
596
|
+
{
|
597
|
+
"source": "^jeg drikker en \"([^\"]*)\"$",
|
598
|
+
"flags": "",
|
599
|
+
"file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:6",
|
600
|
+
"steps": [
|
601
|
+
|
602
|
+
]
|
603
|
+
},
|
604
|
+
{
|
605
|
+
"source": "^skal de andre si \"([^\"]*)\"$",
|
606
|
+
"flags": "",
|
607
|
+
"file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:10",
|
608
|
+
"steps": [
|
609
|
+
|
610
|
+
]
|
611
|
+
}
|
612
|
+
]
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Feature: Backtraces
|
2
|
+
In order to discover errors quickly
|
3
|
+
As a cuker
|
4
|
+
I want to see backtraces for failures
|
5
|
+
|
6
|
+
Background:
|
7
|
+
Given a file named "features/failing_hard.feature" with:
|
8
|
+
"""
|
9
|
+
Feature: Sample
|
10
|
+
Scenario: Example
|
11
|
+
Given failing
|
12
|
+
"""
|
13
|
+
|
14
|
+
@jruby
|
15
|
+
Scenario: Backtraces enabled
|
16
|
+
Given a file named "features/step_definitions/steps.rb" with:
|
17
|
+
"""
|
18
|
+
require 'java'
|
19
|
+
java_import 'java.util.Collections'
|
20
|
+
|
21
|
+
Given /^failing$/ do
|
22
|
+
Collections.empty_list.add 1
|
23
|
+
end
|
24
|
+
"""
|
25
|
+
When I run `cucumber features/failing_hard.feature`
|
26
|
+
Then it should fail with:
|
27
|
+
"""
|
28
|
+
Feature: Sample
|
29
|
+
|
30
|
+
Scenario: Example # features/failing_hard.feature:2
|
31
|
+
Given failing # features/step_definitions/steps.rb:4
|
32
|
+
java.lang.UnsupportedOperationException: null (NativeException)
|
33
|
+
java/util/AbstractList.java:131:in `add'
|
34
|
+
java/util/AbstractList.java:91:in `add'
|
35
|
+
"""
|
36
|
+
|