fcoury-cucumber 0.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +525 -0
- data/License.txt +20 -0
- data/Manifest.txt +335 -0
- data/README.txt +4 -0
- data/Rakefile +8 -0
- data/bin/cucumber +6 -0
- data/config/hoe.rb +76 -0
- data/config/requirements.rb +15 -0
- data/cucumber.yml +1 -0
- data/examples/cs/README.textile +1 -0
- data/examples/cs/Rakefile +12 -0
- data/examples/cs/compile.bat +1 -0
- data/examples/cs/features/addition.feature +16 -0
- data/examples/cs/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/cs/src/demo/Calculator.cs +20 -0
- data/examples/dos_line_endings/Rakefile +6 -0
- data/examples/dos_line_endings/features/dos_line_endings.feature +9 -0
- data/examples/i18n/README.textile +18 -0
- data/examples/i18n/Rakefile +30 -0
- data/examples/i18n/ar/Rakefile +6 -0
- data/examples/i18n/ar/features/addition.feature +16 -0
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/ar/lib/calculator.rb +11 -0
- data/examples/i18n/da/Rakefile +6 -0
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +24 -0
- data/examples/i18n/da/features/summering.feature +17 -0
- data/examples/i18n/da/lib/kalkulator.rb +11 -0
- data/examples/i18n/de/Rakefile +6 -0
- data/examples/i18n/de/features/addition.feature +16 -0
- data/examples/i18n/de/features/division.feature +9 -0
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/de/lib/calculator.rb +14 -0
- data/examples/i18n/en-lol/Rakefile +6 -0
- data/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +16 -0
- data/examples/i18n/en-lol/features/stuffing.feature +8 -0
- data/examples/i18n/en-lol/features/support/env.rb +8 -0
- data/examples/i18n/en-lol/lib/basket.rb +12 -0
- data/examples/i18n/en-lol/lib/belly.rb +11 -0
- data/examples/i18n/en/Rakefile +6 -0
- data/examples/i18n/en/features/addition.feature +16 -0
- data/examples/i18n/en/features/division.feature +9 -0
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/en/lib/calculator.rb +14 -0
- data/examples/i18n/es/Rakefile +6 -0
- data/examples/i18n/es/features/adicion.feature +16 -0
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +21 -0
- data/examples/i18n/es/lib/calculador.rb +14 -0
- data/examples/i18n/et/Rakefile +6 -0
- data/examples/i18n/et/features/jagamine.feature +9 -0
- data/examples/i18n/et/features/liitmine.feature +16 -0
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +24 -0
- data/examples/i18n/et/lib/kalkulaator.rb +14 -0
- data/examples/i18n/fi/Rakefile +6 -0
- data/examples/i18n/fi/features/jakolasku.feature +9 -0
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
- data/examples/i18n/fi/features/yhteenlasku.feature +16 -0
- data/examples/i18n/fi/lib/laskin.rb +14 -0
- data/examples/i18n/fr/Rakefile +6 -0
- data/examples/i18n/fr/features/addition.feature +17 -0
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +25 -0
- data/examples/i18n/fr/lib/calculatrice.rb +10 -0
- data/examples/i18n/id/Rakefile +6 -0
- data/examples/i18n/id/features/addition.feature +16 -0
- data/examples/i18n/id/features/division.feature +9 -0
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/id/lib/calculator.rb +14 -0
- data/examples/i18n/it/Rakefile +6 -0
- data/examples/i18n/it/features/somma.feature +10 -0
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +24 -0
- data/examples/i18n/it/lib/calcolatrice.rb +11 -0
- data/examples/i18n/ja/Rakefile +6 -0
- data/examples/i18n/ja/features/addition.feature +16 -0
- data/examples/i18n/ja/features/division.feature +9 -0
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/ja/lib/calculator.rb +14 -0
- data/examples/i18n/ko/Rakefile +6 -0
- data/examples/i18n/ko/features/addition.feature +16 -0
- data/examples/i18n/ko/features/division.feature +10 -0
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/ko/lib/calculator.rb +14 -0
- data/examples/i18n/lt/Rakefile +6 -0
- data/examples/i18n/lt/features/addition.feature +17 -0
- data/examples/i18n/lt/features/division.feature +9 -0
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/lt/lib/calculator.rb +14 -0
- data/examples/i18n/no/Rakefile +6 -0
- data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +17 -0
- data/examples/i18n/no/features/summering.feature +18 -0
- data/examples/i18n/no/features/support/env.rb +6 -0
- data/examples/i18n/no/lib/kalkulator.rb +11 -0
- data/examples/i18n/pt/Rakefile +6 -0
- data/examples/i18n/pt/features/adicao.feature +10 -0
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +24 -0
- data/examples/i18n/pt/lib/calculadora.rb +10 -0
- data/examples/i18n/ro/Rakefile +6 -0
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/ro/features/suma.feature +10 -0
- data/examples/i18n/ro/lib/calculator.rb +11 -0
- data/examples/i18n/ru/Rakefile +6 -0
- data/examples/i18n/ru/features/addition.feature +10 -0
- data/examples/i18n/ru/features/consecutive_calculations.feature +16 -0
- data/examples/i18n/ru/features/division.feature +15 -0
- data/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/ru/features/support/env.rb +6 -0
- data/examples/i18n/ru/features/support/world.rb +7 -0
- data/examples/i18n/ru/lib/calculator.rb +24 -0
- data/examples/i18n/se/Rakefile +6 -0
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +24 -0
- data/examples/i18n/se/features/summering.feature +17 -0
- data/examples/i18n/se/lib/kalkulator.rb +11 -0
- data/examples/i18n/sk/Rakefile +6 -0
- data/examples/i18n/sk/features/addition.feature +16 -0
- data/examples/i18n/sk/features/division.feature +9 -0
- data/examples/i18n/sk/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/sk/lib/calculator.rb +14 -0
- data/examples/i18n/zh-CN/Rakefile +6 -0
- data/examples/i18n/zh-CN/features/addition.feature +17 -0
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +26 -0
- data/examples/i18n/zh-CN/lib/calculator.rb +10 -0
- data/examples/i18n/zh-TW/Rakefile +6 -0
- data/examples/i18n/zh-TW/features/addition.feature +16 -0
- data/examples/i18n/zh-TW/features/division.feature +10 -0
- data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/zh-TW/lib/calculator.rb +14 -0
- data/examples/java/README.textile +22 -0
- data/examples/java/Rakefile +12 -0
- data/examples/java/features/hello.feature +11 -0
- data/examples/java/features/step_definitons/hello_steps.rb +25 -0
- data/examples/java/features/step_definitons/tree_steps.rb +14 -0
- data/examples/java/features/tree.feature +9 -0
- data/examples/java/src/cucumber/demo/Hello.java +16 -0
- data/examples/pure_java/README.textile +5 -0
- data/examples/selenium/Rakefile +6 -0
- data/examples/selenium/features/search.feature +9 -0
- data/examples/selenium/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium/features/support/env.rb +19 -0
- data/examples/selenium_webrat/Rakefile +6 -0
- data/examples/selenium_webrat/features/search.feature +9 -0
- data/examples/selenium_webrat/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium_webrat/features/support/env.rb +41 -0
- data/examples/self_test/README.textile +6 -0
- data/examples/self_test/Rakefile +6 -0
- data/examples/self_test/features/background/background_with_name.feature +7 -0
- data/examples/self_test/features/background/failing_background.feature +11 -0
- data/examples/self_test/features/background/failing_background_after_success.feature +11 -0
- data/examples/self_test/features/background/multiline_args_background.feature +32 -0
- data/examples/self_test/features/background/passing_background.feature +10 -0
- data/examples/self_test/features/background/pending_background.feature +10 -0
- data/examples/self_test/features/background/scenario_outline_failing_background.feature +16 -0
- data/examples/self_test/features/background/scenario_outline_passing_background.feature +16 -0
- data/examples/self_test/features/call_undefined_step_from_step_def.feature +7 -0
- data/examples/self_test/features/failing_expectation.feature +4 -0
- data/examples/self_test/features/lots_of_undefined.feature +8 -0
- data/examples/self_test/features/outline_sample.feature +15 -0
- data/examples/self_test/features/sample.feature +19 -0
- data/examples/self_test/features/step_definitions/sample_steps.rb +70 -0
- data/examples/self_test/features/support/env.rb +1 -0
- data/examples/self_test/features/support/tag_count_formatter.rb +25 -0
- data/examples/self_test/features/tons_of_cukes.feature +52 -0
- data/examples/self_test/features/undefined_multiline_args.feature +12 -0
- data/examples/sinatra/Rakefile +6 -0
- data/examples/sinatra/app.rb +14 -0
- data/examples/sinatra/features/add.feature +11 -0
- data/examples/sinatra/features/step_definitions/add_steps.rb +15 -0
- data/examples/sinatra/features/support/env.rb +24 -0
- data/examples/sinatra/views/add.erb +5 -0
- data/examples/sinatra/views/layout.erb +8 -0
- data/examples/test_unit/Rakefile +6 -0
- data/examples/test_unit/features/step_definitions/test_unit_steps.rb +26 -0
- data/examples/test_unit/features/test_unit.feature +9 -0
- data/examples/tickets/Rakefile +16 -0
- data/examples/tickets/cucumber.yml +3 -0
- data/examples/tickets/features/172.feature +28 -0
- data/examples/tickets/features/177/1.feature +29 -0
- data/examples/tickets/features/177/2.feature +21 -0
- data/examples/tickets/features/177/3.feature +18 -0
- data/examples/tickets/features/180.feature +7 -0
- data/examples/tickets/features/236.feature +13 -0
- data/examples/tickets/features/241.feature +13 -0
- data/examples/tickets/features/246.feature +4 -0
- data/examples/tickets/features/248.feature +11 -0
- data/examples/tickets/features/lib/eatting_machine.rb +18 -0
- data/examples/tickets/features/lib/pantry.rb +20 -0
- data/examples/tickets/features/scenario_outline.feature +95 -0
- data/examples/tickets/features/step_definitons/246_steps.rb +3 -0
- data/examples/tickets/features/step_definitons/248_steps.rb +15 -0
- data/examples/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
- data/examples/tickets/features/step_definitons/tickets_steps.rb +73 -0
- data/examples/tickets/features/tickets.feature +28 -0
- data/examples/watir/README.textile +16 -0
- data/examples/watir/Rakefile +6 -0
- data/examples/watir/features/search.feature +9 -0
- data/examples/watir/features/step_definitons/search_steps.rb +24 -0
- data/examples/watir/features/support/env.rb +32 -0
- data/features/background.feature +238 -0
- data/features/cucumber_cli.feature +402 -0
- data/features/cucumber_cli_diff_disabled.feature +45 -0
- data/features/cucumber_cli_outlines.feature +81 -0
- data/features/custom_formatter.feature +11 -0
- data/features/report_called_undefined_steps.feature +34 -0
- data/features/snippet.feature +23 -0
- data/features/step_definitions/cucumber_steps.rb +34 -0
- data/features/step_definitions/extra_steps.rb +2 -0
- data/features/support/env.rb +8 -0
- data/features/usage.feature +113 -0
- data/gem_tasks/deployment.rake +11 -0
- data/gem_tasks/environment.rake +7 -0
- data/gem_tasks/features.rake +6 -0
- data/gem_tasks/fix_cr_lf.rake +10 -0
- data/gem_tasks/flog.rake +4 -0
- data/gem_tasks/gemspec.rake +10 -0
- data/gem_tasks/rspec.rake +38 -0
- data/gem_tasks/yard.rake +8 -0
- data/lib/autotest/cucumber.rb +6 -0
- data/lib/autotest/cucumber_mixin.rb +125 -0
- data/lib/autotest/cucumber_rails.rb +6 -0
- data/lib/autotest/cucumber_rails_rspec.rb +6 -0
- data/lib/autotest/cucumber_rspec.rb +6 -0
- data/lib/autotest/discover.rb +9 -0
- data/lib/cucumber.rb +63 -0
- data/lib/cucumber/ast.rb +29 -0
- data/lib/cucumber/ast/background.rb +50 -0
- data/lib/cucumber/ast/comment.rb +26 -0
- data/lib/cucumber/ast/examples.rb +38 -0
- data/lib/cucumber/ast/feature.rb +62 -0
- data/lib/cucumber/ast/feature_element.rb +46 -0
- data/lib/cucumber/ast/features.rb +26 -0
- data/lib/cucumber/ast/outline_table.rb +81 -0
- data/lib/cucumber/ast/py_string.rb +62 -0
- data/lib/cucumber/ast/scenario.rb +64 -0
- data/lib/cucumber/ast/scenario_outline.rb +90 -0
- data/lib/cucumber/ast/step.rb +111 -0
- data/lib/cucumber/ast/step_collection.rb +66 -0
- data/lib/cucumber/ast/step_invocation.rb +122 -0
- data/lib/cucumber/ast/table.rb +347 -0
- data/lib/cucumber/ast/tags.rb +33 -0
- data/lib/cucumber/ast/visitor.rb +125 -0
- data/lib/cucumber/broadcaster.rb +13 -0
- data/lib/cucumber/cli/configuration.rb +361 -0
- data/lib/cucumber/cli/language_help_formatter.rb +59 -0
- data/lib/cucumber/cli/main.rb +102 -0
- data/lib/cucumber/core_ext/exception.rb +53 -0
- data/lib/cucumber/core_ext/instance_exec.rb +67 -0
- data/lib/cucumber/core_ext/proc.rb +33 -0
- data/lib/cucumber/core_ext/string.rb +48 -0
- data/lib/cucumber/formatter.rb +1 -0
- data/lib/cucumber/formatter/ansicolor.rb +110 -0
- data/lib/cucumber/formatter/color_io.rb +23 -0
- data/lib/cucumber/formatter/console.rb +110 -0
- data/lib/cucumber/formatter/cucumber.css +55 -0
- data/lib/cucumber/formatter/cucumber.sass +49 -0
- data/lib/cucumber/formatter/html.rb +176 -0
- data/lib/cucumber/formatter/pretty.rb +174 -0
- data/lib/cucumber/formatter/profile.rb +77 -0
- data/lib/cucumber/formatter/progress.rb +60 -0
- data/lib/cucumber/formatter/rerun.rb +43 -0
- data/lib/cucumber/formatter/unicode.rb +35 -0
- data/lib/cucumber/formatter/usage.rb +85 -0
- data/lib/cucumber/formatters/unicode.rb +2 -0
- data/lib/cucumber/languages.yml +437 -0
- data/lib/cucumber/parser.rb +38 -0
- data/lib/cucumber/parser/basic.rb +0 -0
- data/lib/cucumber/parser/feature.rb +1496 -0
- data/lib/cucumber/parser/feature.tt +194 -0
- data/lib/cucumber/parser/i18n.tt +35 -0
- data/lib/cucumber/parser/table.rb +402 -0
- data/lib/cucumber/parser/table.tt +59 -0
- data/lib/cucumber/parser/treetop_ext.rb +75 -0
- data/lib/cucumber/platform.rb +17 -0
- data/lib/cucumber/rails/rspec.rb +8 -0
- data/lib/cucumber/rails/world.rb +74 -0
- data/lib/cucumber/rake/task.rb +138 -0
- data/lib/cucumber/step_definition.rb +113 -0
- data/lib/cucumber/step_match.rb +57 -0
- data/lib/cucumber/step_mother.rb +223 -0
- data/lib/cucumber/version.rb +10 -0
- data/lib/cucumber/world.rb +53 -0
- data/rails_generators/cucumber/USAGE +11 -0
- data/rails_generators/cucumber/cucumber_generator.rb +50 -0
- data/rails_generators/cucumber/templates/cucumber +8 -0
- data/rails_generators/cucumber/templates/cucumber.rake +15 -0
- data/rails_generators/cucumber/templates/env.rb +19 -0
- data/rails_generators/cucumber/templates/paths.rb +20 -0
- data/rails_generators/cucumber/templates/webrat_steps.rb +123 -0
- data/rails_generators/feature/USAGE +12 -0
- data/rails_generators/feature/feature_generator.rb +40 -0
- data/rails_generators/feature/templates/feature.erb +31 -0
- data/rails_generators/feature/templates/steps.erb +20 -0
- data/specs/cucumber/ast/background_spec.rb +50 -0
- data/specs/cucumber/ast/feature_factory.rb +63 -0
- data/specs/cucumber/ast/feature_spec.rb +38 -0
- data/specs/cucumber/ast/py_string_spec.rb +47 -0
- data/specs/cucumber/ast/scenario_outline_spec.rb +67 -0
- data/specs/cucumber/ast/scenario_spec.rb +65 -0
- data/specs/cucumber/ast/step_collection_spec.rb +16 -0
- data/specs/cucumber/ast/step_spec.rb +66 -0
- data/specs/cucumber/ast/table_spec.rb +170 -0
- data/specs/cucumber/ast/tags_spec.rb +19 -0
- data/specs/cucumber/broadcaster_spec.rb +15 -0
- data/specs/cucumber/cli/configuration_spec.rb +287 -0
- data/specs/cucumber/cli/main_spec.rb +191 -0
- data/specs/cucumber/core_ext/proc_spec.rb +54 -0
- data/specs/cucumber/core_ext/string_spec.rb +42 -0
- data/specs/cucumber/formatter/ansicolor_spec.rb +35 -0
- data/specs/cucumber/formatter/color_io_spec.rb +26 -0
- data/specs/cucumber/formatter/html/cucumber.css +37 -0
- data/specs/cucumber/formatter/html/cucumber.js +13 -0
- data/specs/cucumber/formatter/html/index.html +45 -0
- data/specs/cucumber/formatter/html/jquery-1.3.min.js +19 -0
- data/specs/cucumber/formatter/html/jquery.uitableedit.js +100 -0
- data/specs/cucumber/formatters/profile_formatter_spec.rb +198 -0
- data/specs/cucumber/parser/feature_parser_spec.rb +282 -0
- data/specs/cucumber/parser/table_parser_spec.rb +48 -0
- data/specs/cucumber/rails/stubs/mini_rails.rb +18 -0
- data/specs/cucumber/rails/stubs/test_help.rb +1 -0
- data/specs/cucumber/rails/world_spec.rb +11 -0
- data/specs/cucumber/sell_cucumbers.feature +19 -0
- data/specs/cucumber/step_definition_spec.rb +101 -0
- data/specs/cucumber/step_mother_spec.rb +102 -0
- data/specs/cucumber/treetop_parser/empty_feature.feature +4 -0
- data/specs/cucumber/treetop_parser/empty_scenario.feature +9 -0
- data/specs/cucumber/treetop_parser/empty_scenario_outline.feature +3 -0
- data/specs/cucumber/treetop_parser/fit_scenario.feature +8 -0
- data/specs/cucumber/treetop_parser/given_scenario.feature +9 -0
- data/specs/cucumber/treetop_parser/invalid_scenario_outlines.feature +7 -0
- data/specs/cucumber/treetop_parser/multiline_steps.feature +17 -0
- data/specs/cucumber/treetop_parser/multiple_tables.feature +27 -0
- data/specs/cucumber/treetop_parser/scenario_outline.feature +16 -0
- data/specs/cucumber/treetop_parser/spaces.feature +12 -0
- data/specs/cucumber/treetop_parser/test_dos.feature +25 -0
- data/specs/cucumber/treetop_parser/with_comments.feature +10 -0
- data/specs/cucumber/treetop_parser/with_tags.feature +18 -0
- data/specs/cucumber/world/pending_spec.rb +47 -0
- data/specs/spec.opts +2 -0
- data/specs/spec_helper.rb +12 -0
- metadata +451 -0
data/History.txt
ADDED
@@ -0,0 +1,525 @@
|
|
1
|
+
== 0.2.4 (In Git)
|
2
|
+
|
3
|
+
=== New features
|
4
|
+
* The usage formatter also prints unused step definitions (Aslak Hellesøy)
|
5
|
+
* Better exception if a World proc returns nil. (Aslak Hellesøy)
|
6
|
+
* Allow Step Definitions to use |*varargs|, but only on Ruby 1.9. (Aslak Hellesøy)
|
7
|
+
* Snippets for steps that use Step Tables or Pystrings include block param and object type hint comment (#247 Joseph Wilk)
|
8
|
+
* Support description string for Backgrounds (#271 Joseph Wilk)
|
9
|
+
|
10
|
+
== 0.2.3 2009-03-30
|
11
|
+
|
12
|
+
This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments
|
13
|
+
in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables.
|
14
|
+
|
15
|
+
=== New features
|
16
|
+
* Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth)
|
17
|
+
* Use skipped_param color for examples table header (#266 Eugene Naydanov)
|
18
|
+
* Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn)
|
19
|
+
* Windows/JRuby users can now enjoy colourful output (via http://github.com/aslakhellesoy/ansicolor) (#166 Aslak Hellesøy)
|
20
|
+
* Ambiguous step errors hint about --guess (unless --guess already on) (Aslak Hellesøy)
|
21
|
+
* Added translation for Slovak (Ahmed Al Hafoudh)
|
22
|
+
* Updated translation for Dutch (Bart Zonneveld)
|
23
|
+
* Updated translation for Italian (Alessandro Baroni)
|
24
|
+
* Updated translation for Japanese (KAKUTANI Shintaro)
|
25
|
+
|
26
|
+
=== Bugfixes
|
27
|
+
* Fixed step name after step keyword without space (#265 Aslak Hellesøy)
|
28
|
+
* Backtrace is back in HTML reports (Aslak Hellesøy)
|
29
|
+
|
30
|
+
== 0.2.2 2009-03-25
|
31
|
+
|
32
|
+
This release includes some minor changes to make Cucumber work with pure Java. Cucumber
|
33
|
+
has already worked with Java for a while (using JRuby and step definitions in Ruby),
|
34
|
+
but now you can write step definitions in pure Java!
|
35
|
+
|
36
|
+
Check out the Cucumber Java project for more details:
|
37
|
+
http://github.com/aslakhellesoy/cucumber_java/tree/master
|
38
|
+
|
39
|
+
== 0.2.1 2009-03-25
|
40
|
+
|
41
|
+
This release fixes a few minor bugs and adds a couple of new features.
|
42
|
+
|
43
|
+
== Bugfixes
|
44
|
+
* Fixed Cucumber, and rails controller error handling (#49 Matt Patterson)
|
45
|
+
* HTML Formatter doesn't work correctly with scenario Outlines. (#260 Aslak Hellesøy)
|
46
|
+
* After blocks are run in reverse order of registration. (#113 Aslak Hellesøy)
|
47
|
+
* Snippets are showing 'Ands' (#249 Aslak Hellesøy)
|
48
|
+
|
49
|
+
=== New features
|
50
|
+
* Snippets use a regexp and block arguments if the step name has "quoted" arguments. (Aslak Hellesøy)
|
51
|
+
* Cucumber::Ast::Feature#to_sexp includes the file name. (Aslak Hellesøy)
|
52
|
+
* support/env.rb is not loaded when --dry-run is specified. This is to increase performance. (Aslak Hellesøy)
|
53
|
+
* New usage formatter. This is the foundation for editor autocompletion and navigation between steps and step definitions. (#209 Aslak Hellesøy)
|
54
|
+
|
55
|
+
=== Removed features
|
56
|
+
* -S/--step-definitions option introduced in 0.2.0 is removed. Use --format usage [--dry-run] [--no-color].
|
57
|
+
|
58
|
+
== 0.2.0 2009-03-18
|
59
|
+
|
60
|
+
This release sports a bunch of new and exciting features, as well a major rewrite of Cucumber's internals.
|
61
|
+
The rewrite was done to address technical debt and to have a code base that is easier to evolve and maintain.
|
62
|
+
|
63
|
+
There are some changes to the Gherkin language that breaks backwards compatible with the 0.1.x series.
|
64
|
+
Most importantly, "GivenScenario" and "More Examples" no longer exist. See the "Removed features" section
|
65
|
+
below for more details on how to use alternatives.
|
66
|
+
|
67
|
+
Since the grammar has changed, there are some new keywords. We have to rely on the community
|
68
|
+
to provide updated translations. This is much easier than before - just update languages.yml.
|
69
|
+
There is no static code generation anymore. To list all languages:
|
70
|
+
|
71
|
+
cucumber --lang help
|
72
|
+
|
73
|
+
And to list the keywords for a particular language:
|
74
|
+
|
75
|
+
cucumber --lang en-lol help
|
76
|
+
|
77
|
+
There are some really awesome new features in this release: Tagging, Autoformatting, automatic
|
78
|
+
aliasing of keywords in all languages, full Ruby 1.9 support and improved output
|
79
|
+
for multiline arguments are some of the highlights.
|
80
|
+
|
81
|
+
== Bugfixes
|
82
|
+
* New StepInvocation breaks console formatter for pending steps. (#241 Jacob Radford)
|
83
|
+
* Within Scenario Outlines when replacing with a nil in a step name use empty string instead. (#237 Joseph Wilk)
|
84
|
+
* Fixed bug with Scenario Outlines incorrectly replacing values in step tables with nil. (#237 Joseph Wilk)
|
85
|
+
* Within Scenario Outlines when replacing with a nil in multiline strings use empty string instead. (#238 Joseph Wilk)
|
86
|
+
* Re-structure the ast: Feature -> Background -> (Scenario|ScenarioOutline)*. Fixes bug with background being called outside transactions. (#181 Joseph Wilk)
|
87
|
+
* --strict always exits with status 1 (#230 Tim Cuthbertson)
|
88
|
+
* Fix error with nil values in tables raising an exception (#227 Joseph Wilk)
|
89
|
+
* Add support for using << in formatters to ensure the html formatter works (#210 Joseph Wilk)
|
90
|
+
* Explicitly require env.rb files first to avoid potential load order problems. (#213, Ben Mabey, Randy Harmon)
|
91
|
+
* Depend on polyglot version (0.2.4) to avoid masking require errors. (Aslak Hellesøy).
|
92
|
+
* -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy)
|
93
|
+
* Errors with rspec-rails matchers in cucumber 0.1.99 (#173 David Chelimsky)
|
94
|
+
* Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy)
|
95
|
+
* Really skip skipped steps (#90 Aslak Hellesøy)
|
96
|
+
* No output for multi-line strings (#71 Aslak Hellesøy)
|
97
|
+
* Fix cucumber/formatter/unicode flaws on Windows (#145 Michael)
|
98
|
+
* Autotest-related Bugs: YAML missing (#136 Tobias Pape)
|
99
|
+
* Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother)
|
100
|
+
* Nested steps don't show mismatch (#116 Aslak Hellesøy)
|
101
|
+
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)
|
102
|
+
|
103
|
+
=== New features
|
104
|
+
* Australian translation (Josh Graham)
|
105
|
+
* Added World#announce(announcment) which lets you output text to the formatted output (#222 Rob Kaufmann)
|
106
|
+
* Added Table#transpose to to allow use of vertically aligned table keys (Torbjørn Vatn, Aslak Hellesøy)
|
107
|
+
* Added Table#map_headers to to allow use of more readable headers (Rob Holland)
|
108
|
+
* New -S/--step-definitions option. Useful (among other things) for tools that implement automcompletion. (#208 Aslak Hellesøy).
|
109
|
+
* The cucumber.rake file defines a dummy :features task if Cucumber is not installed (#225 Josh Nichols)
|
110
|
+
* Added Table#map_column! to ease casting of cell values into relevant types (#223 Rob Holland)
|
111
|
+
* New --no-diff option (#218 Bryan Ash)
|
112
|
+
* Rails generators supports testunit and rspec option, defaulting to rspec (#217 Josh Nichols)
|
113
|
+
* Sinatra Example (#204 Rob Holland)
|
114
|
+
* Keywords can be aliased in languages.yml. See English for an example (examples: Examples|Scenarios)
|
115
|
+
* Adding support for Background (#153 Joseph Wilk)
|
116
|
+
* Added Česky/Czech (Vojtech Salbaba)
|
117
|
+
* New --no-multiline option to reduce noise in output. Useful if lots of features are failing. (Aslak Hellesøy)
|
118
|
+
* Added ability to pass URIs to cucumber in addition to files and directories. Useful for troubleshooting! (Aslak Hellesøy)
|
119
|
+
* Groups of tabular scenarios (#57 Aslak Hellesøy)
|
120
|
+
* Tagging scenarios and features. Pick the ones to run with --tags (#54 Aslak Hellesøy)
|
121
|
+
* Make the current scenario available to the steps. (#44 Aslak Hellesøy)
|
122
|
+
* Step definition snippets contain a 'pending' call (#84 Aslak Hellesøy)
|
123
|
+
* Call multiline steps from other steps (#144 Aslak Hellesøy)
|
124
|
+
* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files. (Aslak Hellesøy)
|
125
|
+
* New --strict option exits with an error code if there are undefined steps. (#52 Aslak Hellesøy)
|
126
|
+
* Given, When, Then methods (used in step definitions) are automatically aliased to current language. Use $KCODE='u' in env.rb if needed.
|
127
|
+
* Run cucumber --language help to see all supported languages. (Aslak Hellesøy)
|
128
|
+
* Run cucumber --language LANG help to see keywords for a given language. (Aslak Hellesøy)
|
129
|
+
* Multiline arguments (tables and """ strings) are printed in the output. (Aslak Hellesøy)
|
130
|
+
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy)
|
131
|
+
* New --guess option tries to guess the best step definition match instead of raising Cucumber::Multiple. (Jake Howerton)
|
132
|
+
|
133
|
+
=== Removed features
|
134
|
+
* "GivenScenario" is gone. Instead you can call Steps from Step Definitions, or use the new Background feature (#153)
|
135
|
+
* "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead.
|
136
|
+
* Pure Ruby features are no longer supported.
|
137
|
+
* Remove --color option in autotest. Can be added manually in cucumber.yml (#215 Jean-Michel Garnier)
|
138
|
+
|
139
|
+
== (0.16.4 aslakhellesoy-cucumber gem on GitHub)
|
140
|
+
|
141
|
+
Bugfix release.
|
142
|
+
|
143
|
+
IMPORTANT NOTE FOR RAILS USERS.
|
144
|
+
The template used to generate your features/support/env.rb has changed. You have to apply a minor change
|
145
|
+
manually for existing Rails projects when you upgrade to this version. Change this:
|
146
|
+
|
147
|
+
require 'webrat/rspec-rails'
|
148
|
+
|
149
|
+
to this:
|
150
|
+
|
151
|
+
require 'webrat/core/matchers'
|
152
|
+
|
153
|
+
=== New features
|
154
|
+
* Finnish translation (Tero Tilus)
|
155
|
+
* Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp)
|
156
|
+
|
157
|
+
== Bugfixes
|
158
|
+
* Escaped quotes - \" - inside multiline strings will be unescaped.
|
159
|
+
* Flush output in HTML formatter since JRuby doesnt do it automatically (Diego Carrion)
|
160
|
+
* Better handling of ARGV (#169 David Chelimsky, Ben Mabey)
|
161
|
+
* Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy)
|
162
|
+
|
163
|
+
== 0.1.16 2009-01-19
|
164
|
+
|
165
|
+
This is a small bugfix release. The most notable improvement is compatibility with Webrat 0.4. Rails/Webrat users should
|
166
|
+
upgrade both Cucumber and Webrat gems.
|
167
|
+
|
168
|
+
=== New features
|
169
|
+
* Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk)
|
170
|
+
* Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy)
|
171
|
+
* Add the #binary= method back to the Rake task. It is needed by merb_cucumber for running the features of a merb app with it's bundled gems. (Thomas Marek)
|
172
|
+
* Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp)
|
173
|
+
|
174
|
+
=== Bugfixes
|
175
|
+
* Fix to run single scenarios when the line number specified doesn't correspond to a step (i.e. blank lines or rows) (#160 Luismi Cavallé)
|
176
|
+
|
177
|
+
=== Removed features
|
178
|
+
|
179
|
+
== 0.1.15 2009-01-08
|
180
|
+
|
181
|
+
Bugfix release
|
182
|
+
|
183
|
+
=== New features
|
184
|
+
* 한국어! (Korean!) (John Hwang)
|
185
|
+
|
186
|
+
=== Bugfixes
|
187
|
+
* --dry-run skips running before/after/steps (#147 Ian Dees)
|
188
|
+
* Fix a minor bug in the console formatter's summary (David Chelimsky)
|
189
|
+
* Better quoting of Scenario names in Autotest (Peter Jaros)
|
190
|
+
* Added some small workarounds for unicode handling on Windows (Aslak Hellesøy)
|
191
|
+
|
192
|
+
== 0.1.14 2009-01-04
|
193
|
+
|
194
|
+
This is the first release of Cucumber that runs on Ruby 1.9. There are still some encoding-related issues
|
195
|
+
with Arabic (ar), Japanese (ja) and Simplified Chinese (zh-CN). Patches are welcome. Other than that -
|
196
|
+
a couple of minor bug fixes and polishing.
|
197
|
+
|
198
|
+
=== New features
|
199
|
+
* Pretty formatter shows number of scenarios (#139 Joseph Wilk)
|
200
|
+
* Rudimentary support for Ruby 1.9. Now it's ok to file Ruby 1.9-related bugs.
|
201
|
+
|
202
|
+
=== Bugfixes
|
203
|
+
* Fixed "No such file or directory -- cucumber (LoadError)" bug with AutoTest (Aslak Hellesøy)
|
204
|
+
* Fixed `load_missing_constant': uninitialized constant Dispatcher error with Rails (Aslak Hellesøy)
|
205
|
+
|
206
|
+
=== Removed features
|
207
|
+
* The #binary= method is gone from the Rake task. It will always point to the binary in the current gem. (Aslak Hellesøy)
|
208
|
+
|
209
|
+
== 0.1.13 2008-12-20
|
210
|
+
|
211
|
+
It's time for some new features again. Output is now much better since you can use diffing, tweak
|
212
|
+
the output colours and get the full --backtrace if you want. Managing your support/* files became
|
213
|
+
a little easier since they are now always loaded before the step definitions. Life became easier
|
214
|
+
for Windows users in Norway (and other countries using unicode in the features). Plus several other
|
215
|
+
bug fixes.
|
216
|
+
|
217
|
+
Enjoy!
|
218
|
+
|
219
|
+
=== New features
|
220
|
+
* Console output is no longer bold, but regular. Step arguments are bold instead of blold+underlined. (Aslak Hellesøy)
|
221
|
+
* Console output can be configured with CUCUMBER_COLORS in your shell. (Aslak Hellesøy)
|
222
|
+
* Added new --backtrace option to show full backtrace (Aslak Hellesøy)
|
223
|
+
* Enable RSpec's diffing automatically if RSpec is loaded (Aslak Hellesøy)
|
224
|
+
* Files in support directories are loaded before any other file (i.e. step definitions.) (#120, Ben Mabey)
|
225
|
+
* The Rails features generator got some love and is now tested: http://github.com/aslakhellesoy/cucumber_rails (Aslak Hellesøy)
|
226
|
+
* --language is aliased to -l instead of -a (-l became available when --line was refactored) (Aslak Hellesøy)
|
227
|
+
* Scenario Outlines which through placeholders in the steps allow control of how scenario table values are used. (#57 Joseph Wilk)
|
228
|
+
* Scenario Outlines are now usable in pure ruby (Joseph Wilk)
|
229
|
+
* Add support for calling 'pending' from step definitions. (#112 Joseph Wilk)
|
230
|
+
|
231
|
+
=== Bugfixes
|
232
|
+
* Make rails before filters work correctly (#122, #129 Guillermo Álvarez Fernández)
|
233
|
+
* Proper Unicode support for Windows command shells: Just require cucumber/formatter/unicode in env.rb (Aslak Hellesøy)
|
234
|
+
* Fixed disappearing "a" on Windows (#81 Aslak Hellesøy)
|
235
|
+
* Fixed a bug where row step outlines were loosing step tables. (#121 Joseph Wilk, Ben Mabey)
|
236
|
+
* The Cucumber Autotest plugin now launches JRuby if autotest is run with JRuby (Aslak Hellesøy)
|
237
|
+
* Provide helpful and non-confusing error message when specified profile is blank. (#118, Ben Mabey)
|
238
|
+
* Improve handling and error messages for malformed cucumber.yml files. (#117, Ben Mabey)
|
239
|
+
* document :x run option in command line help (#114, Aslak Hellesøy)
|
240
|
+
* Change 'visits' to 'visit' in features generator to comply with new Webrat API (Darius Roberts)
|
241
|
+
|
242
|
+
=== Removed features
|
243
|
+
|
244
|
+
== 0.1.12 2008-12-04
|
245
|
+
|
246
|
+
This is the "getting serious with IronRuby release" - largely based on
|
247
|
+
"Patrick Gannon":http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx's
|
248
|
+
blog entry.
|
249
|
+
|
250
|
+
== New features
|
251
|
+
* Cucumber works with IronRuby/.NET - http://github.com/aslakhellesoy/cucumber/wikis/ironruby-and-net (Aslak Hellesøy)
|
252
|
+
|
253
|
+
== Bugfixes
|
254
|
+
* Fixed bug which was preventing coloring under Autotest (#111, Alan Larkin)
|
255
|
+
|
256
|
+
== Removed features
|
257
|
+
None
|
258
|
+
|
259
|
+
== 0.1.11 2008-12-02
|
260
|
+
|
261
|
+
Bugfix release with a couple of minor additional features to the command line options.
|
262
|
+
|
263
|
+
=== New features
|
264
|
+
* Capture output from cucumber in Autotest (Alan Larkin)
|
265
|
+
* Update cucumber generator to work with latest Webrat (Bryan Helkamp)
|
266
|
+
* CUCUMBR LIKEZ 2 SPEEK WIF KATS. KTHXBAI (Aimee Daniells)
|
267
|
+
* Support for dynamically pluggable formatters (#99 Joseph Wilk)
|
268
|
+
* --verbose mode to see ruby files and feature files loaded by Cucumber (#106 Joseph Wilk)
|
269
|
+
|
270
|
+
=== Bugfixes
|
271
|
+
* The jcode library is not loaded on JRuby/Rails. Workaround for http://tinyurl.com/55uu3u. (Aslak Hellesøy)
|
272
|
+
* Support including modules for class passed to --format (#109 Joseph Wilk)
|
273
|
+
|
274
|
+
=== Removed features
|
275
|
+
* The cucumber gem no longer depends on the rspec gem. It must be downloaded manually if RSpec is used. (Jeff Rafter)
|
276
|
+
|
277
|
+
== 0.1.10 2008-11-25
|
278
|
+
|
279
|
+
This release mostly has smaller bugfixes. The most significant new feature is how
|
280
|
+
line numbers are specified. You can now run multiple features at specific lines numbers like this:
|
281
|
+
|
282
|
+
cucumber foo.feature:15 bar.feature:6:45:111
|
283
|
+
|
284
|
+
This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
|
285
|
+
|
286
|
+
=== New features
|
287
|
+
* Added example showing how to use Cucumber with Test::Unit + Matchy instead of RSpec (Aslak Hellesøy)
|
288
|
+
* Yield existing world object to World block (#87 Aslak Hellesøy)
|
289
|
+
* AUTOFEATURE=tRue works (case insensitive) (Aslak Hellesøy)
|
290
|
+
* Initial support for .NET via IronRuby. (Aslak Hellesøy)
|
291
|
+
* Lithuanian translation (sauliusgrigaitis)
|
292
|
+
* New webrat step defintions to wrap the new selects_time, selects_date, and selects_datetime methods. (Ben Mabey)
|
293
|
+
* Try to load webrat gem if it's not installed as a plugin (Aslak Hellesøy)
|
294
|
+
* Support example.feature:20 or example.feature:10:20:30 syntax for running features at specific line number(s). (#88 Joseph Wilk)
|
295
|
+
|
296
|
+
=== Bugfixes
|
297
|
+
* Windows - all the 'a' characters in the output have gone on strike (#81 Luis Lavena, Joseph Wilk, Aslak Hellesøy)
|
298
|
+
* Raise a nice error when encountering step definition without block (#95 Aslak Hellesøy)
|
299
|
+
* Features written using Ruby where breaking due to missing a line number (#91 Joseph Wilk)
|
300
|
+
* Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk)
|
301
|
+
|
302
|
+
=== Removed features
|
303
|
+
* $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb.
|
304
|
+
* Step definition without a block being treated as pending (#64 Joseph Wilk)
|
305
|
+
* The --line option has been removed. Use the new file.feature:line format instead.
|
306
|
+
|
307
|
+
== 0.1.9 2008-11-12
|
308
|
+
|
309
|
+
With this release Cucumber supports 19 (!) natural languages:
|
310
|
+
|
311
|
+
* Arabic
|
312
|
+
* Chinese Simplified
|
313
|
+
* Danish
|
314
|
+
* Dutch
|
315
|
+
* Estonian
|
316
|
+
* French
|
317
|
+
* German
|
318
|
+
* Italian
|
319
|
+
* Japanese
|
320
|
+
* Malay
|
321
|
+
* Norwegian
|
322
|
+
* Polish
|
323
|
+
* Portuguese
|
324
|
+
* Romanian
|
325
|
+
* Russian
|
326
|
+
* Spanish
|
327
|
+
* Swedish
|
328
|
+
* Texan
|
329
|
+
* Welsh
|
330
|
+
|
331
|
+
Thanks a lot to everyone who has contributed translations. If you don't see your language here, please
|
332
|
+
add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages
|
333
|
+
|
334
|
+
Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration
|
335
|
+
support and how multiline strings work in feature files:
|
336
|
+
|
337
|
+
# In your .feature file
|
338
|
+
Then I should see
|
339
|
+
"""
|
340
|
+
A string
|
341
|
+
that "indents"
|
342
|
+
and spans
|
343
|
+
several lines
|
344
|
+
|
345
|
+
"""
|
346
|
+
|
347
|
+
# In your steps.rb file
|
348
|
+
Then 'I should see' do |text|
|
349
|
+
text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n"
|
350
|
+
end
|
351
|
+
|
352
|
+
The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away
|
353
|
+
in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first
|
354
|
+
spaces removed too.
|
355
|
+
|
356
|
+
=== New features
|
357
|
+
* Added --[no-]color option to force color on or off (Peter Jaros)
|
358
|
+
* Step definition without a block will be treated as pending (#64 Joseph Wilk)
|
359
|
+
* Added support for Welsh (improvements welcome) (Joseph Wilk)
|
360
|
+
* Added --quiet option to hide all development aid output when using Pretty formatter (#69 Joseph Wilk)
|
361
|
+
* Added --no-snippets option to hide snippets for pending steps when using Pretty formatter (#69 Joseph Wilk)
|
362
|
+
* Added error messages concerning cucumber.yml. (#70 Ben Mabey)
|
363
|
+
* Added Autotest support - work in progress... (Peter Jaros)
|
364
|
+
* Added new --exclude option (Bryan Helkamp)
|
365
|
+
* Added new --scenario option (Peter Jaros)
|
366
|
+
* Renamed common_webrat.rb to webrat_steps.rb (Ben Mabey, Aslak Hellesøy)
|
367
|
+
* Added new feature[:feature_path] task (Roman Gonzalez)
|
368
|
+
* Added support for Polish (Joseph Wilk)
|
369
|
+
* Support specifying multiple formatters and multiple outputs (#47 Joseph Wilk)
|
370
|
+
* Added support for Japanese. (Kakutani Shintaro)
|
371
|
+
* Added support for Texan (improvements welcome). (Aslak Hellesøy)
|
372
|
+
|
373
|
+
=== Bugfixes
|
374
|
+
* Pending step snippets should escape special Regexp characters (#82 Joseph Wilk)
|
375
|
+
* Scenario without a body shouldn't show up as complete (#63 Josh Knowles)
|
376
|
+
* Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk)
|
377
|
+
* Fixed next_column_index not resetting after large tables (#60, Barry Mitchelson)
|
378
|
+
* The HTML formatter was rendering everything twice. Cannot invoke visit_feature on formatters in executor (#72 Joseph Wilk)
|
379
|
+
* Row Scenarios need to support pending? in order for the Profile formatter to work (Joseph Wilk)
|
380
|
+
* Snippets are not shown for steps which already have a step definition (#65 Joseph Wilk)
|
381
|
+
* Prevent feature/scenario/pending step comments from containing '//' when running features by specifying a directory with a trailing '/' (Joseph Wilk)
|
382
|
+
* Scenario tables need spacing after them (#59 Joseph Wilk)
|
383
|
+
* Support running scenario table rows when using --line argument (#55 Joseph Wilk)
|
384
|
+
* Don't load cucumber.yml unless it exists (Aslak Hellesøy)
|
385
|
+
* Fixing bug where specifying line number 1 in a feature which starts with a scenario with a scenario table was raising an error (#56 Joseph Wilk)
|
386
|
+
|
387
|
+
=== Removed features
|
388
|
+
|
389
|
+
|
390
|
+
== 0.1.8 2008-10-18
|
391
|
+
|
392
|
+
This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL.
|
393
|
+
In previous releases it has been possible to use tables to define "more examples" of a scenario i
|
394
|
+
n a FIT-style column fixture kind of way. Now you can also use tables as arguments to steps.
|
395
|
+
|
396
|
+
Tables used to define more examples after a scenario must now be prefixed. In English it looks like this:
|
397
|
+
|
398
|
+
Feature: Addition
|
399
|
+
In order to avoid silly mistakes
|
400
|
+
As a math idiot
|
401
|
+
I want to be told the sum of two numbers
|
402
|
+
|
403
|
+
Scenario: Add two numbers
|
404
|
+
Given I have entered 50 into the calculator
|
405
|
+
And I have entered 70 into the calculator
|
406
|
+
When I press add
|
407
|
+
Then the result should be 120 on the screen
|
408
|
+
|
409
|
+
More Examples:
|
410
|
+
| input_1 | input_2 | button | output |
|
411
|
+
| 20 | 30 | add | 50 |
|
412
|
+
| 2 | 5 | add | 7 |
|
413
|
+
| 0 | 40 | add | 40 |
|
414
|
+
|
415
|
+
Languages that are not updated yet will have to use "More Examples" until we get the translations.
|
416
|
+
|
417
|
+
Tables can also be used as arguments to individual steps. In fact, steps now support a single argument
|
418
|
+
that can span several lines. This can be a table or a string.
|
419
|
+
|
420
|
+
Example:
|
421
|
+
|
422
|
+
Given the following people exist:
|
423
|
+
| name | email | phone |
|
424
|
+
| Aslak | aslak@email.com | 123 |
|
425
|
+
| Joe | joe@email.com | 234 |
|
426
|
+
| Bryan | bryan@email.org | 456 |
|
427
|
+
When I search for email.com
|
428
|
+
Then I should see:
|
429
|
+
| name | email | phone |
|
430
|
+
| Aslak | aslak@email.com | 123 |
|
431
|
+
| Joe | joe@email.com | 234 |
|
432
|
+
And I should see:
|
433
|
+
"Some text
|
434
|
+
on several lines"
|
435
|
+
|
436
|
+
The step definitions for such multiline steps must define an extra block argument for the argument:
|
437
|
+
|
438
|
+
Given /the following people exist:/ do |people_table|
|
439
|
+
# people_table is of type Cucumber::Model::Table
|
440
|
+
# See RDoc for more info
|
441
|
+
end
|
442
|
+
|
443
|
+
Then /I should see:/ do |string|
|
444
|
+
# string is a plain old ruby String with leading spaces on each line removed
|
445
|
+
end
|
446
|
+
|
447
|
+
=== New features
|
448
|
+
* Added profile formatter. (#35, Joseph Wilk)
|
449
|
+
* Added support for Chinese Simplified. (Liming Lian)
|
450
|
+
* Added support for Dutch. (Sjoerd Tieleman)
|
451
|
+
* Multiline steps are now supported. (#4, Aslak Hellesøy)
|
452
|
+
* Tables used to define more examples for a scenario must be prefixed "More Examples" (see languages.yml for other languages)
|
453
|
+
* Show the file and line number for scenarios as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
454
|
+
* Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
455
|
+
* Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
456
|
+
|
457
|
+
=== Bugfixes
|
458
|
+
* Fixed speling errors in Spanish (Daniel Cadenas)
|
459
|
+
* ActionMailer delivery_method should not be set to test (#41, Luke Melia)
|
460
|
+
* Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky)
|
461
|
+
* Support comments above the first scenario (#31, Aslak Hellesøy)
|
462
|
+
* Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk)
|
463
|
+
|
464
|
+
=== Removed features
|
465
|
+
* Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value.
|
466
|
+
|
467
|
+
=== New features
|
468
|
+
* Added new --out option to make it easier to specify output from Rake and cucumber.yml
|
469
|
+
|
470
|
+
== 0.1.7 2008-10-05
|
471
|
+
|
472
|
+
This release fixes a few bugs and adds some new features. The most notable features are:
|
473
|
+
|
474
|
+
=== Calling steps from steps
|
475
|
+
|
476
|
+
Step definitions are a little bit closer to having regular method semantics.
|
477
|
+
You define them, but now you can also call them from other steps. Here is an
|
478
|
+
example:
|
479
|
+
|
480
|
+
Given /I am logged in as an (.*) named (.*)$/ do |role, name|
|
481
|
+
Given "I am registered as #{role}, #{name}, secret"
|
482
|
+
When "I log in with #{name}, secret"
|
483
|
+
end
|
484
|
+
|
485
|
+
Given /I am registered as (.*), (.*), (.*)/ do |role, name, password|
|
486
|
+
# (Code removed for brevity)
|
487
|
+
end
|
488
|
+
|
489
|
+
When /I log in with (.*), (.*)/ do |name, password|
|
490
|
+
# (Code removed for brevity)
|
491
|
+
end
|
492
|
+
|
493
|
+
This means that steps can be reused in other steps. The GivenScenario feature achieves a similar
|
494
|
+
effect (on the scenario level), but this feature is something we're not very happy with, mostly
|
495
|
+
because it's not parameterisable. Calling steps from steps is.
|
496
|
+
|
497
|
+
GivenScenario will still be working several releases, but the plan is to remove it completely in
|
498
|
+
the 0.3.0 release.
|
499
|
+
|
500
|
+
=== Seeing where a step is defined
|
501
|
+
|
502
|
+
Prior to this release it could be hard to find out where the ruby step definition matching
|
503
|
+
a plain text step is defined. Not anymore! Cucumber will now output this:
|
504
|
+
|
505
|
+
Scenario: Regular numbers
|
506
|
+
Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12
|
507
|
+
And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12
|
508
|
+
When I press divide # features/steps/calculator_steps.rb:16
|
509
|
+
Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20
|
510
|
+
And the result class should be Float # features/steps/calculator_steps.rb:24
|
511
|
+
|
512
|
+
=== Bugfixes
|
513
|
+
* Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk)
|
514
|
+
* Fixed a bug in Webrat selects (Tim Glen)
|
515
|
+
* Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy)
|
516
|
+
|
517
|
+
=== New features
|
518
|
+
* Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy)
|
519
|
+
* Added But keyword to all languages (#21, Aslak Hellesøy)
|
520
|
+
* Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy)
|
521
|
+
* Added more Webrat steps (#25, Tim Glen)
|
522
|
+
|
523
|
+
== 0.1.6 2008-10-01
|
524
|
+
|
525
|
+
First gem release!
|