kosmas58-cucumber 0.3.11.3 → 0.3.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +36 -0
- data/Manifest.txt +9 -0
- data/config/hoe.rb +1 -2
- data/examples/i18n/ar/Rakefile +1 -1
- data/examples/i18n/ar/features/addition.feature +1 -0
- data/examples/i18n/bg/Rakefile +1 -1
- data/examples/i18n/bg/features/addition.feature +1 -0
- data/examples/i18n/bg/features/consecutive_calculations.feature +1 -0
- data/examples/i18n/bg/features/division.feature +1 -0
- data/examples/i18n/cat/Rakefile +1 -1
- data/examples/i18n/cat/features/suma.feature +1 -0
- data/examples/i18n/da/Rakefile +1 -1
- data/examples/i18n/da/features/summering.feature +1 -0
- data/examples/i18n/de/Rakefile +1 -1
- data/examples/i18n/de/features/addition.feature +1 -0
- data/examples/i18n/de/features/division.feature +1 -0
- data/examples/i18n/en/Rakefile +1 -1
- data/examples/i18n/en/features/addition.feature +1 -0
- data/examples/i18n/en/features/division.feature +1 -0
- data/examples/i18n/en-lol/features/stuffing.feature +1 -1
- data/examples/i18n/es/Rakefile +1 -1
- data/examples/i18n/es/features/adicion.feature +1 -0
- data/examples/i18n/et/Rakefile +1 -1
- data/examples/i18n/et/features/jagamine.feature +1 -0
- data/examples/i18n/et/features/liitmine.feature +1 -0
- data/examples/i18n/fi/Rakefile +1 -1
- data/examples/i18n/fi/features/jakolasku.feature +1 -0
- data/examples/i18n/fr/Rakefile +1 -1
- data/examples/i18n/fr/features/addition.feature +2 -1
- data/examples/i18n/he/Rakefile +1 -1
- data/examples/i18n/he/features/addition.feature +1 -0
- data/examples/i18n/he/features/division.feature +1 -0
- data/examples/i18n/hu/Rakefile +1 -1
- data/examples/i18n/hu/features/addition.feature +1 -0
- data/examples/i18n/hu/features/division.feature +1 -0
- data/examples/i18n/id/Rakefile +1 -1
- data/examples/i18n/id/features/addition.feature +1 -0
- data/examples/i18n/id/features/division.feature +1 -0
- data/examples/i18n/it/Rakefile +1 -1
- data/examples/i18n/it/features/somma.feature +1 -0
- data/examples/i18n/ja/Rakefile +1 -1
- data/examples/i18n/ja/features/addition.feature +1 -0
- data/examples/i18n/ja/features/division.feature +1 -0
- data/examples/i18n/ko/Rakefile +1 -1
- data/examples/i18n/ko/features/addition.feature +1 -0
- data/examples/i18n/ko/features/division.feature +1 -0
- data/examples/i18n/lt/Rakefile +1 -1
- data/examples/i18n/lt/features/addition.feature +1 -0
- data/examples/i18n/lt/features/division.feature +1 -0
- data/examples/i18n/lv/Rakefile +1 -1
- data/examples/i18n/lv/features/addition.feature +1 -0
- data/examples/i18n/lv/features/division.feature +1 -0
- data/examples/i18n/no/Rakefile +1 -1
- data/examples/i18n/no/features/summering.feature +1 -0
- data/examples/i18n/pl/Rakefile +1 -1
- data/examples/i18n/pl/features/addition.feature +1 -0
- data/examples/i18n/pl/features/division.feature +1 -0
- data/examples/i18n/pt/Rakefile +1 -1
- data/examples/i18n/pt/features/adicao.feature +1 -0
- data/examples/i18n/ro/Rakefile +1 -1
- data/examples/i18n/ro/features/suma.feature +1 -0
- data/examples/i18n/ru/Rakefile +1 -1
- data/examples/i18n/ru/features/addition.feature +1 -0
- data/examples/i18n/ru/features/consecutive_calculations.feature +1 -0
- data/examples/i18n/ru/features/division.feature +1 -0
- data/examples/i18n/se/Rakefile +1 -1
- data/examples/i18n/se/features/summering.feature +1 -0
- data/examples/i18n/sk/Rakefile +1 -1
- data/examples/i18n/sk/features/addition.feature +1 -0
- data/examples/i18n/sk/features/division.feature +1 -0
- data/examples/i18n/zh-CN/features/addition.feature +1 -0
- data/examples/i18n/zh-TW/features/addition.feature +1 -0
- data/examples/i18n/zh-TW/features/division.feature +1 -0
- data/examples/sinatra/features/step_definitions/add_steps.rb +1 -1
- data/examples/sinatra/features/support/env.rb +13 -5
- data/features/after_block_exceptions.feature +4 -1
- data/features/after_step_block_exceptions.feature +4 -1
- data/features/background.feature +6 -0
- data/features/cucumber_cli.feature +11 -1
- data/features/cucumber_cli_diff_disabled.feature +7 -1
- data/features/drb_server_integration.feature +5 -4
- data/features/expand.feature +2 -1
- data/features/html_formatter/a.html +12 -14
- data/features/junit_formatter.feature +4 -4
- data/features/step_definitions/cucumber_steps.rb +2 -2
- data/features/support/env.rb +7 -4
- data/features/work_in_progress.feature +3 -0
- data/lib/cucumber/ast/comment.rb +1 -1
- data/lib/cucumber/ast/feature.rb +2 -2
- data/lib/cucumber/ast/feature_element.rb +4 -0
- data/lib/cucumber/ast/scenario.rb +5 -3
- data/lib/cucumber/ast/scenario_outline.rb +6 -1
- data/lib/cucumber/ast/step.rb +4 -0
- data/lib/cucumber/ast/step_invocation.rb +6 -1
- data/lib/cucumber/cli/configuration.rb +37 -26
- data/lib/cucumber/cli/main.rb +4 -5
- data/lib/cucumber/formatter/console.rb +12 -0
- data/lib/cucumber/formatter/html.rb +3 -2
- data/lib/cucumber/formatter/junit.rb +3 -6
- data/lib/cucumber/formatter/pretty.rb +2 -4
- data/lib/cucumber/formatter/profile.rb +1 -1
- data/lib/cucumber/languages.yml +3 -3
- data/lib/cucumber/parser/feature.rb +12 -16
- data/lib/cucumber/parser/feature.tt +1 -3
- data/lib/cucumber/parser/i18n.tt +30 -23
- data/lib/cucumber/parser/treetop_ext.rb +12 -83
- data/lib/cucumber/parser.rb +1 -33
- data/lib/cucumber/platform.rb +6 -0
- data/lib/cucumber/step_definition.rb +6 -0
- data/lib/cucumber/step_mother.rb +3 -3
- data/lib/cucumber/version.rb +1 -1
- data/lib/cucumber.rb +0 -57
- data/rails_generators/cucumber/templates/cucumber.rake +4 -0
- data/spec/cucumber/ast/step_collection_spec.rb +5 -4
- data/spec/cucumber/cli/configuration_spec.rb +42 -9
- data/spec/cucumber/cli/main_spec.rb +2 -10
- data/spec/cucumber/parser/feature_parser_spec.rb +11 -9
- data/spec/cucumber/parser/table_parser_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +3 -13
data/History.txt
CHANGED
@@ -1,9 +1,45 @@
|
|
1
1
|
== 0.3.12 (In Git)
|
2
2
|
|
3
|
+
The Egality release
|
4
|
+
|
5
|
+
English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
|
6
|
+
--language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
|
7
|
+
to your .feature files:
|
8
|
+
|
9
|
+
# language: fr
|
10
|
+
Fonctionnalité: Trou de boulette
|
11
|
+
|
12
|
+
If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
|
13
|
+
or default to English if no --language option was specified. A nice side effect of this is that you can now
|
14
|
+
have features in several languages side by side and run them in the same cucumber. (Not recommended unless
|
15
|
+
you want to take polyglot programming to an extreme level).
|
16
|
+
|
17
|
+
Another useful new feature is the ability to define environment variables on Cucumber's command line (just
|
18
|
+
like you can with Rake). Example:
|
19
|
+
|
20
|
+
cucumber FOO=BAR --format progress features
|
21
|
+
|
22
|
+
You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
|
23
|
+
for example enabling your super hack that validates all HTTP responses for XHTML validity.
|
24
|
+
|
25
|
+
This release also has several bugfixes related to --format and Before/Adter hooks.
|
26
|
+
|
3
27
|
=== Bugfixes
|
28
|
+
* Before and After hooks run after everything is finished whn there are 2+ --format options (#371 Aslak Hellesøy)
|
29
|
+
* When using --out and two --format the first is not delivered inline with execution of features (#361 Aslak Hellesøy)
|
30
|
+
* Profile Formatter broken (#370 Aslak Hellesøy)
|
31
|
+
* Default profile usage with --drb flag degrades gracefully with no server. (#367 Ben Mabey)
|
32
|
+
* JUnit formatter uses original file name instead of narrative to avoid accidental duplicate XML files (Aslak Hellesøy)
|
33
|
+
* rake gems no longer lists cucumber as a [F]ramework gem (David Chelimsky)
|
4
34
|
* CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
|
5
35
|
* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
|
6
36
|
|
37
|
+
=== New Features
|
38
|
+
* New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes)
|
39
|
+
* Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
|
40
|
+
* Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
|
41
|
+
* Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
|
42
|
+
|
7
43
|
=== Changed Features
|
8
44
|
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
|
9
45
|
|
data/Manifest.txt
CHANGED
@@ -205,6 +205,8 @@ examples/sinatra/features/step_definitions/add_steps.rb
|
|
205
205
|
examples/sinatra/features/support/env.rb
|
206
206
|
examples/sinatra/views/add.erb
|
207
207
|
examples/sinatra/views/layout.erb
|
208
|
+
examples/steps_library/features/step_definitions/steps_lib1.rb
|
209
|
+
examples/steps_library/features/step_definitions/steps_lib2.rb
|
208
210
|
examples/test_unit/Rakefile
|
209
211
|
examples/test_unit/features/step_definitions/test_unit_steps.rb
|
210
212
|
examples/test_unit/features/test_unit.feature
|
@@ -246,6 +248,7 @@ examples/watir/features/support/env.rb
|
|
246
248
|
features/after_block_exceptions.feature
|
247
249
|
features/after_step_block_exceptions.feature
|
248
250
|
features/background.feature
|
251
|
+
features/bug_371.feature
|
249
252
|
features/cucumber_cli.feature
|
250
253
|
features/cucumber_cli_diff_disabled.feature
|
251
254
|
features/cucumber_cli_outlines.feature
|
@@ -256,12 +259,14 @@ features/expand.feature
|
|
256
259
|
features/html_formatter.feature
|
257
260
|
features/html_formatter/a.html
|
258
261
|
features/junit_formatter.feature
|
262
|
+
features/language_from_header.feature
|
259
263
|
features/multiline_names.feature
|
260
264
|
features/rake_task.feature
|
261
265
|
features/report_called_undefined_steps.feature
|
262
266
|
features/snippet.feature
|
263
267
|
features/step_definitions/cucumber_steps.rb
|
264
268
|
features/step_definitions/extra_steps.rb
|
269
|
+
features/steps_formatter.feature
|
265
270
|
features/support/env.rb
|
266
271
|
features/usage.feature
|
267
272
|
features/work_in_progress.feature
|
@@ -307,6 +312,8 @@ lib/cucumber/core_ext/exception.rb
|
|
307
312
|
lib/cucumber/core_ext/instance_exec.rb
|
308
313
|
lib/cucumber/core_ext/proc.rb
|
309
314
|
lib/cucumber/core_ext/string.rb
|
315
|
+
lib/cucumber/feature_file.rb
|
316
|
+
lib/cucumber/filter.rb
|
310
317
|
lib/cucumber/formatter/ansicolor.rb
|
311
318
|
lib/cucumber/formatter/color_io.rb
|
312
319
|
lib/cucumber/formatter/console.rb
|
@@ -319,6 +326,7 @@ lib/cucumber/formatter/pretty.rb
|
|
319
326
|
lib/cucumber/formatter/profile.rb
|
320
327
|
lib/cucumber/formatter/progress.rb
|
321
328
|
lib/cucumber/formatter/rerun.rb
|
329
|
+
lib/cucumber/formatter/steps.rb
|
322
330
|
lib/cucumber/formatter/tag_cloud.rb
|
323
331
|
lib/cucumber/formatter/unicode.rb
|
324
332
|
lib/cucumber/formatter/usage.rb
|
@@ -328,6 +336,7 @@ lib/cucumber/parser.rb
|
|
328
336
|
lib/cucumber/parser/feature.rb
|
329
337
|
lib/cucumber/parser/feature.tt
|
330
338
|
lib/cucumber/parser/i18n.tt
|
339
|
+
lib/cucumber/parser/i18n/language.rb
|
331
340
|
lib/cucumber/parser/table.rb
|
332
341
|
lib/cucumber/parser/table.tt
|
333
342
|
lib/cucumber/parser/treetop_ext.rb
|
data/config/hoe.rb
CHANGED
@@ -61,8 +61,7 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
61
61
|
#p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
62
62
|
p.extra_deps = [
|
63
63
|
['term-ansicolor', '>= 1.0.3'],
|
64
|
-
['treetop', '>= 1.2.
|
65
|
-
['polyglot', '>= 0.2.5'], # Remove this when Treetop no longer loads polyglot by default.
|
64
|
+
['treetop', '>= 1.2.6'],
|
66
65
|
['diff-lcs', '>= 1.1.2'],
|
67
66
|
['builder', '>= 2.1.2']
|
68
67
|
]
|
data/examples/i18n/ar/Rakefile
CHANGED
data/examples/i18n/bg/Rakefile
CHANGED
data/examples/i18n/cat/Rakefile
CHANGED
data/examples/i18n/da/Rakefile
CHANGED
data/examples/i18n/de/Rakefile
CHANGED
data/examples/i18n/en/Rakefile
CHANGED
data/examples/i18n/es/Rakefile
CHANGED
data/examples/i18n/et/Rakefile
CHANGED
data/examples/i18n/fi/Rakefile
CHANGED
data/examples/i18n/fr/Rakefile
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
# language: fr
|
1
2
|
Fonctionnalité: Addition
|
2
3
|
Afin de gagner du temps lors du calcul de la facture
|
3
4
|
En tant que commerçant
|
4
|
-
Je souhaite pouvoir faire une
|
5
|
+
Je souhaite pouvoir faire une addition
|
5
6
|
|
6
7
|
Plan du Scénario: Addition de deux nombres
|
7
8
|
Soit une calculatrice
|
data/examples/i18n/he/Rakefile
CHANGED
data/examples/i18n/hu/Rakefile
CHANGED
data/examples/i18n/id/Rakefile
CHANGED
data/examples/i18n/it/Rakefile
CHANGED
data/examples/i18n/ja/Rakefile
CHANGED
data/examples/i18n/ko/Rakefile
CHANGED
data/examples/i18n/lt/Rakefile
CHANGED
data/examples/i18n/lv/Rakefile
CHANGED
data/examples/i18n/no/Rakefile
CHANGED
data/examples/i18n/pl/Rakefile
CHANGED
data/examples/i18n/pt/Rakefile
CHANGED
data/examples/i18n/ro/Rakefile
CHANGED
data/examples/i18n/ru/Rakefile
CHANGED
data/examples/i18n/se/Rakefile
CHANGED
data/examples/i18n/sk/Rakefile
CHANGED