-
-
Notifications
You must be signed in to change notification settings - Fork 697
/
stepdefs.json
298 lines (242 loc) · 7.92 KB
/
stepdefs.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
{
"^I'm using a clean gemset \"([^\"]*)\"$": [
],
"^a directory named \"([^\"]*)\"$": [
],
"^a file named \"([^\"]*)\" with:$": [
"a file named \"features/doc_string.feature\" with:",
"a file named \"features/f.feature\" with:",
"a file named \"features/only_background_and_hooks.feature\" with:",
"a file named \"features/only_background_and_hooks_steps.rb\" with:",
"a file named \"features/step_definitions/doc_string_steps.rb\" with:",
"a file named \"features/step_definitions/multiline_steps.rb\" with:",
"a file named \"features/step_definitions/steps.rb\" with:",
"a file named \"features/support/hooks.rb\" with:",
"a file named \"features/support/ze/formator.rb\" with:"
],
"^a (\\d+) byte file named \"([^\"]*)\"$": [
],
"^an empty file named \"([^\"]*)\"$": [
],
"^I write to \"([^\"]*)\" with:$": [
],
"^I overwrite \"([^\"]*)\" with:$": [
],
"^I append to \"([^\"]*)\" with:$": [
],
"^I append to \"([^\"]*)\" with \"([^\"]*)\"$": [
],
"^I remove the file \"([^\"]*)\"$": [
],
"^I cd to \"([^\"]*)\"$": [
],
"^I run \"(.*)\"$": [
],
"^I run `([^`]*)`$": [
"I run `cucumber -f stepdefs --dry-run`",
"I run `cucumber -f usage --dry-run`",
"I run `cucumber -q -t @one -t @three features/tagulicious.feature`",
"I run `cucumber -q -t @one,@three features/tagulicious.feature`",
"I run `cucumber -q features/background_tagged_before_on_outline.feature`",
"I run `cucumber -q features/failing_background.feature`",
"I run `cucumber -q features/failing_background_after_success.feature`",
"I run `cucumber -q features/multiline_args_background.feature`",
"I run `cucumber -q features/passing_background.feature:9`",
"I run `cucumber -q features/passing_background.feature`",
"I run `cucumber -q features/pending_background.feature`",
"I run `cucumber -q features/scenario_outline_failing_background.feature`",
"I run `cucumber -q features/scenario_outline_passing_background.feature`",
"I run `cucumber -q features/tagulicious.feature`",
"I run `cucumber features/f.feature:2`",
"I run `cucumber features/f.feature:6`",
"I run `cucumber features/only_background_and_hooks.feature`",
"I run `cucumber`"
],
"^I successfully run \"(.*)\"$": [
],
"^I successfully run `([^`]*)`$": [
],
"^I run \"([^\"]*)\" interactively$": [
],
"^I run `([^`]*)` interactively$": [
],
"^I type \"([^\"]*)\"$": [
],
"^the output should contain \"([^\"]*)\"$": [
"the output should contain \"WARNING\""
],
"^the output from \"([^\"]*)\" should contain \"([^\"]*)\"$": [
],
"^the output from \"([^\"]*)\" should not contain \"([^\"]*)\"$": [
],
"^the output should not contain \"([^\"]*)\"$": [
],
"^the output should contain:$": [
"the output should contain:"
],
"^the output should not contain:$": [
],
"^the output should contain exactly \"([^\"]*)\"$": [
],
"^the output should contain exactly:$": [
],
"^the output should match \\/([^\\/]*)\\/$": [
],
"^the output should match:$": [
],
"^the exit status should be (\\d+)$": [
],
"^the exit status should not be (\\d+)$": [
],
"^it should (pass|fail) with:$": [
"it should fail with:",
"it should pass with:"
],
"^it should (pass|fail) with exactly:$": [
"it should fail with exactly:",
"it should pass with exactly:"
],
"^it should (pass|fail) with regexp?:$": [
],
"^the stderr should contain \"([^\"]*)\"$": [
],
"^the stderr should contain:$": [
],
"^the stderr should contain exactly:$": [
],
"^the stdout should contain \"([^\"]*)\"$": [
],
"^the stdout should contain:$": [
],
"^the stdout should contain exactly:$": [
],
"^the stderr should not contain \"([^\"]*)\"$": [
],
"^the stderr should not contain:$": [
],
"^the stdout should not contain \"([^\"]*)\"$": [
],
"^the stdout should not contain:$": [
],
"^the stdout from \"([^\"]*)\" should contain \"([^\"]*)\"$": [
],
"^the stdout from \"([^\"]*)\" should not contain \"([^\"]*)\"$": [
],
"^the stderr from \"([^\"]*)\" should contain \"([^\"]*)\"$": [
],
"^the stderr from \"([^\"]*)\" should not contain \"([^\"]*)\"$": [
],
"^the file \"([^\"]*)\" should not exist$": [
],
"^the following files should exist:$": [
],
"^the following files should not exist:$": [
],
"^a file named \"([^\"]*)\" should exist$": [
],
"^a file named \"([^\"]*)\" should not exist$": [
],
"^a (\\d+) byte file named \"([^\"]*)\" should exist$": [
],
"^the following directories should exist:$": [
],
"^the following directories should not exist:$": [
],
"^a directory named \"([^\"]*)\" should exist$": [
],
"^a directory named \"([^\"]*)\" should not exist$": [
],
"^the file \"([^\"]*)\" should contain \"([^\"]*)\"$": [
],
"^the file \"([^\"]*)\" should not contain \"([^\"]*)\"$": [
],
"^the file \"([^\"]*)\" should contain exactly:$": [
],
"^the file \"([^\"]*)\" should match \\/([^\\/]*)\\/$": [
],
"^the file \"([^\"]*)\" should not match \\/([^\\/]*)\\/$": [
],
"^a scenario \"([^\"]*)\" with:$": [
"a scenario \"Add three numbers\" with:",
"a scenario \"Add two numbers\" with:",
"a scenario \"Basic Arithmetic\" with:",
"a scenario \"Calculate PI\" with:",
"a scenario \"Simple math\" with:",
"a scenario \"Too simple math\" with:"
],
"^the following feature:$": [
"the following feature:"
],
"^the step \"([^\"]*)\" has a passing mapping$": [
"the step \"I add 4 and 5\" has a passing mapping",
"the step \"the result is 9\" has a passing mapping"
],
"^the step \"([^\"]*)\" has a pending mapping$": [
"the step \"I add 4 and 5\" has a pending mapping"
],
"^the step \"([^\"]*)\" has a failing mapping$": [
"the step \"I add 4 and 5\" has a failing mapping"
],
"^Cucumber executes the scenario \"([^\"]*)\"$": [
"Cucumber executes the scenario \"Basic Arithmetic\""
],
"^Cucumber runs the feature$": [
"Cucumber runs the feature"
],
"^Cucumber runs the scenario with steps for a calculator$": [
"Cucumber runs the scenario with steps for a calculator"
],
"^the scenario passes$": [
"the scenario passes"
],
"^the scenario fails$": [
"the scenario fails"
],
"^the scenario is pending$": [
"the scenario is pending"
],
"^the scenario is undefined$": [
"the scenario is undefined"
],
"^the step \"([^\"]*)\" is skipped$": [
"the step \"the result is 9\" is skipped"
],
"^the feature passes$": [
"the feature passes"
],
"^I run cucumber \"(.+)\"$": [
"I run cucumber \"--format json features/doc_string.feature\"",
"I run cucumber \"--format json features/one_passing_one_failing.feature\"",
"I run cucumber \"-b --format json features/embed.feature\"",
"I run cucumber \"features/f.feature --format Ze::Formator\"",
"I run cucumber \"features/foo.feature\"",
"I run cucumber \"features/one_passing_one_failing.feature -r features -f rerun\"",
"I run cucumber \"features/sample.feature --tags ~@wip\"",
"I run cucumber \"features/sample.feature -r features --tags ~@wip\""
],
"^it should (pass|fail) with JSON:$": [
"it should fail with JSON:",
"it should pass with JSON:"
],
"^a directory without standard Cucumber project directory structure$": [
"a directory without standard Cucumber project directory structure"
],
"^a scenario with a step that looks like this:$": [
"a scenario with a step that looks like this:"
],
"^a step definition that looks like this:$": [
"a step definition that looks like this:"
],
"^I run the feature with the (\\w+) formatter$": [
"I run the feature with the progress formatter"
],
"^I am running spork in the background$": [
"I am running spork in the background"
],
"^jeg drikker en \"([^\"]*)\"$": [
"jeg drikker en \"øl\""
],
"^skal de andre si \"([^\"]*)\"$": [
"skal de andre si \"skål\""
]
}