cuke_modeler 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +23 -0
- data/Gemfile +22 -4
- data/History.rdoc +6 -0
- data/Rakefile +26 -26
- data/cuke_modeler.gemspec +3 -1
- data/features/modeling/{background_modeling.feature → gherkin/background_modeling.feature} +1 -11
- data/features/modeling/{background_output.feature → gherkin/background_output.feature} +1 -0
- data/features/modeling/{directory_modeling.feature → gherkin/directory_modeling.feature} +1 -11
- data/features/modeling/{directory_output.feature → gherkin/directory_output.feature} +1 -0
- data/features/modeling/{doc_string_modeling.feature → gherkin/doc_string_modeling.feature} +1 -11
- data/features/modeling/{doc_string_output.feature → gherkin/doc_string_output.feature} +1 -0
- data/features/modeling/{example_modeling.feature → gherkin/example_modeling.feature} +1 -11
- data/features/modeling/{example_output.feature → gherkin/example_output.feature} +1 -0
- data/features/modeling/{feature_file_modeling.feature → gherkin/feature_file_modeling.feature} +1 -11
- data/features/modeling/{feature_file_output.feature → gherkin/feature_file_output.feature} +1 -0
- data/features/modeling/{feature_modeling.feature → gherkin/feature_modeling.feature} +1 -11
- data/features/modeling/{feature_output.feature → gherkin/feature_output.feature} +1 -0
- data/features/modeling/{outline_modeling.feature → gherkin/outline_modeling.feature} +1 -11
- data/features/modeling/{outline_output.feature → gherkin/outline_output.feature} +1 -0
- data/features/modeling/{row_modeling.feature → gherkin/row_modeling.feature} +1 -10
- data/features/modeling/{row_output.feature → gherkin/row_output.feature} +1 -0
- data/features/modeling/{scenario_modeling.feature → gherkin/scenario_modeling.feature} +1 -11
- data/features/modeling/{scenario_output.feature → gherkin/scenario_output.feature} +1 -0
- data/features/modeling/{step_modeling.feature → gherkin/step_modeling.feature} +1 -11
- data/features/modeling/{step_output.feature → gherkin/step_output.feature} +1 -0
- data/features/modeling/{table_modeling.feature → gherkin/table_modeling.feature} +1 -11
- data/features/modeling/{table_output.feature → gherkin/table_output.feature} +1 -0
- data/features/modeling/{table_row_modeling.feature → gherkin/table_row_modeling.feature} +1 -11
- data/features/modeling/{table_row_output.feature → gherkin/table_row_output.feature} +1 -0
- data/features/modeling/{tag_modeling.feature → gherkin/tag_modeling.feature} +1 -11
- data/features/modeling/{tag_output.feature → gherkin/tag_output.feature} +1 -0
- data/features/modeling/gherkin3/background_modeling.feature +64 -0
- data/features/modeling/gherkin3/background_output.feature +131 -0
- data/features/modeling/gherkin3/directory_modeling.feature +110 -0
- data/features/modeling/gherkin3/directory_output.feature +14 -0
- data/features/modeling/gherkin3/doc_string_modeling.feature +53 -0
- data/features/modeling/gherkin3/doc_string_output.feature +72 -0
- data/features/modeling/gherkin3/example_modeling.feature +100 -0
- data/features/modeling/gherkin3/example_output.feature +207 -0
- data/features/modeling/gherkin3/feature_file_modeling.feature +54 -0
- data/features/modeling/gherkin3/feature_file_output.feature +14 -0
- data/features/modeling/gherkin3/feature_modeling.feature +155 -0
- data/features/modeling/gherkin3/feature_output.feature +249 -0
- data/features/modeling/gherkin3/outline_modeling.feature +89 -0
- data/features/modeling/gherkin3/outline_output.feature +255 -0
- data/features/modeling/gherkin3/row_modeling.feature +68 -0
- data/features/modeling/gherkin3/row_output.feature +28 -0
- data/features/modeling/gherkin3/scenario_modeling.feature +78 -0
- data/features/modeling/gherkin3/scenario_output.feature +148 -0
- data/features/modeling/gherkin3/step_modeling.feature +75 -0
- data/features/modeling/gherkin3/step_output.feature +53 -0
- data/features/modeling/gherkin3/table_modeling.feature +42 -0
- data/features/modeling/gherkin3/table_output.feature +43 -0
- data/features/modeling/gherkin3/table_row_modeling.feature +57 -0
- data/features/modeling/gherkin3/table_row_output.feature +28 -0
- data/features/modeling/gherkin3/tag_modeling.feature +49 -0
- data/features/modeling/gherkin3/tag_output.feature +17 -0
- data/features/step_definitions/background_steps.rb +5 -1
- data/features/step_definitions/doc_string_steps.rb +5 -1
- data/features/step_definitions/feature_steps.rb +5 -1
- data/features/step_definitions/outline_steps.rb +10 -4
- data/features/step_definitions/step_steps.rb +10 -2
- data/features/step_definitions/table_steps.rb +6 -2
- data/features/step_definitions/tag_steps.rb +15 -3
- data/features/step_definitions/test_steps.rb +7 -2
- data/features/support/env.rb +21 -9
- data/gemfiles/gherkin.gemfile +17 -0
- data/gemfiles/gherkin3.gemfile +15 -0
- data/lib/cuke_modeler/adapters/gherkin_2_adapter.rb +146 -0
- data/lib/cuke_modeler/adapters/gherkin_3_adapter.rb +206 -0
- data/lib/cuke_modeler/parsing.rb +61 -20
- data/lib/cuke_modeler/raw.rb +1 -1
- data/lib/cuke_modeler/row.rb +2 -2
- data/lib/cuke_modeler/table.rb +2 -2
- data/lib/cuke_modeler/table_row.rb +1 -1
- data/lib/cuke_modeler/version.rb +1 -1
- data/spec/integration/example_integration_spec.rb +2 -1
- data/spec/integration/feature_integration_spec.rb +7 -4
- data/spec/integration/outline_integration_spec.rb +4 -2
- data/spec/integration/tag_integration_spec.rb +2 -1
- data/spec/spec_helper.rb +6 -0
- data/spec/unit/background_unit_spec.rb +17 -0
- data/spec/unit/doc_string_unit_spec.rb +17 -0
- data/spec/unit/example_unit_spec.rb +18 -1
- data/spec/unit/feature_file_unit_spec.rb +2 -2
- data/spec/unit/feature_unit_spec.rb +16 -0
- data/spec/unit/outline_unit_spec.rb +20 -1
- data/spec/unit/row_unit_spec.rb +18 -0
- data/spec/unit/scenario_unit_spec.rb +17 -0
- data/spec/unit/step_unit_spec.rb +17 -0
- data/spec/unit/table_row_unit_spec.rb +18 -0
- data/spec/unit/table_unit_spec.rb +16 -0
- data/spec/unit/tag_unit_spec.rb +17 -0
- metadata +147 -60
- data/features/step_definitions/spec_steps.rb +0 -18
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke_modeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gherkin
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - <
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
21
|
+
version: '4.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - <
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
29
|
+
version: '4.0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: json
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +139,38 @@ dependencies:
|
|
139
139
|
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: racatt
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '1.0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: coveralls
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
142
174
|
description:
|
143
175
|
email:
|
144
176
|
- morrow748@gmail.com
|
@@ -148,6 +180,7 @@ extra_rdoc_files: []
|
|
148
180
|
files:
|
149
181
|
- .gitignore
|
150
182
|
- .simplecov
|
183
|
+
- .travis.yml
|
151
184
|
- Gemfile
|
152
185
|
- History.rdoc
|
153
186
|
- LICENSE.txt
|
@@ -156,32 +189,58 @@ files:
|
|
156
189
|
- cuke_modeler.gemspec
|
157
190
|
- features/analysis/test_comparison.feature
|
158
191
|
- features/analysis/test_manipulation.feature
|
159
|
-
- features/modeling/background_modeling.feature
|
160
|
-
- features/modeling/background_output.feature
|
161
|
-
- features/modeling/directory_modeling.feature
|
162
|
-
- features/modeling/directory_output.feature
|
163
|
-
- features/modeling/doc_string_modeling.feature
|
164
|
-
- features/modeling/doc_string_output.feature
|
165
|
-
- features/modeling/example_modeling.feature
|
166
|
-
- features/modeling/example_output.feature
|
167
|
-
- features/modeling/feature_file_modeling.feature
|
168
|
-
- features/modeling/feature_file_output.feature
|
169
|
-
- features/modeling/feature_modeling.feature
|
170
|
-
- features/modeling/feature_output.feature
|
171
|
-
- features/modeling/outline_modeling.feature
|
172
|
-
- features/modeling/outline_output.feature
|
173
|
-
- features/modeling/row_modeling.feature
|
174
|
-
- features/modeling/row_output.feature
|
175
|
-
- features/modeling/scenario_modeling.feature
|
176
|
-
- features/modeling/scenario_output.feature
|
177
|
-
- features/modeling/step_modeling.feature
|
178
|
-
- features/modeling/step_output.feature
|
179
|
-
- features/modeling/table_modeling.feature
|
180
|
-
- features/modeling/table_output.feature
|
181
|
-
- features/modeling/table_row_modeling.feature
|
182
|
-
- features/modeling/table_row_output.feature
|
183
|
-
- features/modeling/tag_modeling.feature
|
184
|
-
- features/modeling/tag_output.feature
|
192
|
+
- features/modeling/gherkin/background_modeling.feature
|
193
|
+
- features/modeling/gherkin/background_output.feature
|
194
|
+
- features/modeling/gherkin/directory_modeling.feature
|
195
|
+
- features/modeling/gherkin/directory_output.feature
|
196
|
+
- features/modeling/gherkin/doc_string_modeling.feature
|
197
|
+
- features/modeling/gherkin/doc_string_output.feature
|
198
|
+
- features/modeling/gherkin/example_modeling.feature
|
199
|
+
- features/modeling/gherkin/example_output.feature
|
200
|
+
- features/modeling/gherkin/feature_file_modeling.feature
|
201
|
+
- features/modeling/gherkin/feature_file_output.feature
|
202
|
+
- features/modeling/gherkin/feature_modeling.feature
|
203
|
+
- features/modeling/gherkin/feature_output.feature
|
204
|
+
- features/modeling/gherkin/outline_modeling.feature
|
205
|
+
- features/modeling/gherkin/outline_output.feature
|
206
|
+
- features/modeling/gherkin/row_modeling.feature
|
207
|
+
- features/modeling/gherkin/row_output.feature
|
208
|
+
- features/modeling/gherkin/scenario_modeling.feature
|
209
|
+
- features/modeling/gherkin/scenario_output.feature
|
210
|
+
- features/modeling/gherkin/step_modeling.feature
|
211
|
+
- features/modeling/gherkin/step_output.feature
|
212
|
+
- features/modeling/gherkin/table_modeling.feature
|
213
|
+
- features/modeling/gherkin/table_output.feature
|
214
|
+
- features/modeling/gherkin/table_row_modeling.feature
|
215
|
+
- features/modeling/gherkin/table_row_output.feature
|
216
|
+
- features/modeling/gherkin/tag_modeling.feature
|
217
|
+
- features/modeling/gherkin/tag_output.feature
|
218
|
+
- features/modeling/gherkin3/background_modeling.feature
|
219
|
+
- features/modeling/gherkin3/background_output.feature
|
220
|
+
- features/modeling/gherkin3/directory_modeling.feature
|
221
|
+
- features/modeling/gherkin3/directory_output.feature
|
222
|
+
- features/modeling/gherkin3/doc_string_modeling.feature
|
223
|
+
- features/modeling/gherkin3/doc_string_output.feature
|
224
|
+
- features/modeling/gherkin3/example_modeling.feature
|
225
|
+
- features/modeling/gherkin3/example_output.feature
|
226
|
+
- features/modeling/gherkin3/feature_file_modeling.feature
|
227
|
+
- features/modeling/gherkin3/feature_file_output.feature
|
228
|
+
- features/modeling/gherkin3/feature_modeling.feature
|
229
|
+
- features/modeling/gherkin3/feature_output.feature
|
230
|
+
- features/modeling/gherkin3/outline_modeling.feature
|
231
|
+
- features/modeling/gherkin3/outline_output.feature
|
232
|
+
- features/modeling/gherkin3/row_modeling.feature
|
233
|
+
- features/modeling/gherkin3/row_output.feature
|
234
|
+
- features/modeling/gherkin3/scenario_modeling.feature
|
235
|
+
- features/modeling/gherkin3/scenario_output.feature
|
236
|
+
- features/modeling/gherkin3/step_modeling.feature
|
237
|
+
- features/modeling/gherkin3/step_output.feature
|
238
|
+
- features/modeling/gherkin3/table_modeling.feature
|
239
|
+
- features/modeling/gherkin3/table_output.feature
|
240
|
+
- features/modeling/gherkin3/table_row_modeling.feature
|
241
|
+
- features/modeling/gherkin3/table_row_output.feature
|
242
|
+
- features/modeling/gherkin3/tag_modeling.feature
|
243
|
+
- features/modeling/gherkin3/tag_output.feature
|
185
244
|
- features/step_definitions/action_steps.rb
|
186
245
|
- features/step_definitions/background_steps.rb
|
187
246
|
- features/step_definitions/directory_steps.rb
|
@@ -190,7 +249,6 @@ files:
|
|
190
249
|
- features/step_definitions/feature_steps.rb
|
191
250
|
- features/step_definitions/outline_steps.rb
|
192
251
|
- features/step_definitions/setup_steps.rb
|
193
|
-
- features/step_definitions/spec_steps.rb
|
194
252
|
- features/step_definitions/step_steps.rb
|
195
253
|
- features/step_definitions/table_steps.rb
|
196
254
|
- features/step_definitions/tag_steps.rb
|
@@ -198,7 +256,11 @@ files:
|
|
198
256
|
- features/step_definitions/verification_steps.rb
|
199
257
|
- features/support/env.rb
|
200
258
|
- features/support/transforms.rb
|
259
|
+
- gemfiles/gherkin.gemfile
|
260
|
+
- gemfiles/gherkin3.gemfile
|
201
261
|
- lib/cuke_modeler.rb
|
262
|
+
- lib/cuke_modeler/adapters/gherkin_2_adapter.rb
|
263
|
+
- lib/cuke_modeler/adapters/gherkin_3_adapter.rb
|
202
264
|
- lib/cuke_modeler/background.rb
|
203
265
|
- lib/cuke_modeler/containing.rb
|
204
266
|
- lib/cuke_modeler/directory.rb
|
@@ -294,32 +356,58 @@ summary: A gem providing functionality to model a Cucumber test suite.
|
|
294
356
|
test_files:
|
295
357
|
- features/analysis/test_comparison.feature
|
296
358
|
- features/analysis/test_manipulation.feature
|
297
|
-
- features/modeling/background_modeling.feature
|
298
|
-
- features/modeling/background_output.feature
|
299
|
-
- features/modeling/directory_modeling.feature
|
300
|
-
- features/modeling/directory_output.feature
|
301
|
-
- features/modeling/doc_string_modeling.feature
|
302
|
-
- features/modeling/doc_string_output.feature
|
303
|
-
- features/modeling/example_modeling.feature
|
304
|
-
- features/modeling/example_output.feature
|
305
|
-
- features/modeling/feature_file_modeling.feature
|
306
|
-
- features/modeling/feature_file_output.feature
|
307
|
-
- features/modeling/feature_modeling.feature
|
308
|
-
- features/modeling/feature_output.feature
|
309
|
-
- features/modeling/outline_modeling.feature
|
310
|
-
- features/modeling/outline_output.feature
|
311
|
-
- features/modeling/row_modeling.feature
|
312
|
-
- features/modeling/row_output.feature
|
313
|
-
- features/modeling/scenario_modeling.feature
|
314
|
-
- features/modeling/scenario_output.feature
|
315
|
-
- features/modeling/step_modeling.feature
|
316
|
-
- features/modeling/step_output.feature
|
317
|
-
- features/modeling/table_modeling.feature
|
318
|
-
- features/modeling/table_output.feature
|
319
|
-
- features/modeling/table_row_modeling.feature
|
320
|
-
- features/modeling/table_row_output.feature
|
321
|
-
- features/modeling/tag_modeling.feature
|
322
|
-
- features/modeling/tag_output.feature
|
359
|
+
- features/modeling/gherkin/background_modeling.feature
|
360
|
+
- features/modeling/gherkin/background_output.feature
|
361
|
+
- features/modeling/gherkin/directory_modeling.feature
|
362
|
+
- features/modeling/gherkin/directory_output.feature
|
363
|
+
- features/modeling/gherkin/doc_string_modeling.feature
|
364
|
+
- features/modeling/gherkin/doc_string_output.feature
|
365
|
+
- features/modeling/gherkin/example_modeling.feature
|
366
|
+
- features/modeling/gherkin/example_output.feature
|
367
|
+
- features/modeling/gherkin/feature_file_modeling.feature
|
368
|
+
- features/modeling/gherkin/feature_file_output.feature
|
369
|
+
- features/modeling/gherkin/feature_modeling.feature
|
370
|
+
- features/modeling/gherkin/feature_output.feature
|
371
|
+
- features/modeling/gherkin/outline_modeling.feature
|
372
|
+
- features/modeling/gherkin/outline_output.feature
|
373
|
+
- features/modeling/gherkin/row_modeling.feature
|
374
|
+
- features/modeling/gherkin/row_output.feature
|
375
|
+
- features/modeling/gherkin/scenario_modeling.feature
|
376
|
+
- features/modeling/gherkin/scenario_output.feature
|
377
|
+
- features/modeling/gherkin/step_modeling.feature
|
378
|
+
- features/modeling/gherkin/step_output.feature
|
379
|
+
- features/modeling/gherkin/table_modeling.feature
|
380
|
+
- features/modeling/gherkin/table_output.feature
|
381
|
+
- features/modeling/gherkin/table_row_modeling.feature
|
382
|
+
- features/modeling/gherkin/table_row_output.feature
|
383
|
+
- features/modeling/gherkin/tag_modeling.feature
|
384
|
+
- features/modeling/gherkin/tag_output.feature
|
385
|
+
- features/modeling/gherkin3/background_modeling.feature
|
386
|
+
- features/modeling/gherkin3/background_output.feature
|
387
|
+
- features/modeling/gherkin3/directory_modeling.feature
|
388
|
+
- features/modeling/gherkin3/directory_output.feature
|
389
|
+
- features/modeling/gherkin3/doc_string_modeling.feature
|
390
|
+
- features/modeling/gherkin3/doc_string_output.feature
|
391
|
+
- features/modeling/gherkin3/example_modeling.feature
|
392
|
+
- features/modeling/gherkin3/example_output.feature
|
393
|
+
- features/modeling/gherkin3/feature_file_modeling.feature
|
394
|
+
- features/modeling/gherkin3/feature_file_output.feature
|
395
|
+
- features/modeling/gherkin3/feature_modeling.feature
|
396
|
+
- features/modeling/gherkin3/feature_output.feature
|
397
|
+
- features/modeling/gherkin3/outline_modeling.feature
|
398
|
+
- features/modeling/gherkin3/outline_output.feature
|
399
|
+
- features/modeling/gherkin3/row_modeling.feature
|
400
|
+
- features/modeling/gherkin3/row_output.feature
|
401
|
+
- features/modeling/gherkin3/scenario_modeling.feature
|
402
|
+
- features/modeling/gherkin3/scenario_output.feature
|
403
|
+
- features/modeling/gherkin3/step_modeling.feature
|
404
|
+
- features/modeling/gherkin3/step_output.feature
|
405
|
+
- features/modeling/gherkin3/table_modeling.feature
|
406
|
+
- features/modeling/gherkin3/table_output.feature
|
407
|
+
- features/modeling/gherkin3/table_row_modeling.feature
|
408
|
+
- features/modeling/gherkin3/table_row_output.feature
|
409
|
+
- features/modeling/gherkin3/tag_modeling.feature
|
410
|
+
- features/modeling/gherkin3/tag_output.feature
|
323
411
|
- features/step_definitions/action_steps.rb
|
324
412
|
- features/step_definitions/background_steps.rb
|
325
413
|
- features/step_definitions/directory_steps.rb
|
@@ -328,7 +416,6 @@ test_files:
|
|
328
416
|
- features/step_definitions/feature_steps.rb
|
329
417
|
- features/step_definitions/outline_steps.rb
|
330
418
|
- features/step_definitions/setup_steps.rb
|
331
|
-
- features/step_definitions/spec_steps.rb
|
332
419
|
- features/step_definitions/step_steps.rb
|
333
420
|
- features/step_definitions/table_steps.rb
|
334
421
|
- features/step_definitions/tag_steps.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Given /^that there are "([^"]*)" detailing models$/ do |spec_file|
|
2
|
-
sub_directory = spec_file =~ /integration/ ? 'integration' : 'unit'
|
3
|
-
spec_file = "#{@spec_directory}/#{sub_directory}/#{spec_file}"
|
4
|
-
|
5
|
-
fail "The spec file does not exist: #{spec_file}" unless File.exists?(spec_file)
|
6
|
-
|
7
|
-
@spec_file = spec_file
|
8
|
-
end
|
9
|
-
|
10
|
-
When /^the corresponding specifications are run$/ do
|
11
|
-
command = "rspec #{@spec_file}"
|
12
|
-
|
13
|
-
@specs_passed = system(command)
|
14
|
-
end
|
15
|
-
|
16
|
-
Then /^all of those specifications are met$/ do
|
17
|
-
fail "There were unmet specifications in '#{@spec_file}'." unless @specs_passed
|
18
|
-
end
|