stefl-cucumber 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitattributes +1 -0
- data/.gitignore +24 -0
- data/.rspec +1 -0
- data/Gemfile +7 -0
- data/History.txt +1613 -0
- data/LICENSE +22 -0
- data/README.rdoc +26 -0
- data/Rakefile +12 -0
- data/bin/cucumber +22 -0
- data/cucumber.gemspec +50 -0
- data/cucumber.yml +20 -0
- data/examples/i18n/README.textile +18 -0
- data/examples/i18n/Rakefile +33 -0
- data/examples/i18n/ar/Rakefile +6 -0
- data/examples/i18n/ar/features/addition.feature +17 -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/bg/Rakefile +6 -0
- data/examples/i18n/bg/features/addition.feature +12 -0
- data/examples/i18n/bg/features/consecutive_calculations.feature +19 -0
- data/examples/i18n/bg/features/division.feature +17 -0
- data/examples/i18n/bg/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/bg/features/support/env.rb +5 -0
- data/examples/i18n/bg/features/support/world.rb +8 -0
- data/examples/i18n/bg/lib/calculator.rb +24 -0
- data/examples/i18n/ca/Rakefile +6 -0
- data/examples/i18n/ca/features/step_definitons/calculator_steps.rb +21 -0
- data/examples/i18n/ca/features/suma.feature +17 -0
- data/examples/i18n/ca/lib/calculadora.rb +16 -0
- data/examples/i18n/da/Rakefile +6 -0
- data/examples/i18n/da/features/sammenlaegning.feature +18 -0
- data/examples/i18n/da/features/step_definitons/lommeregner_steps.rb +24 -0
- data/examples/i18n/da/lib/lommeregner.rb +11 -0
- data/examples/i18n/de/.gitignore +1 -0
- data/examples/i18n/de/Rakefile +6 -0
- data/examples/i18n/de/features/addition.feature +17 -0
- data/examples/i18n/de/features/division.feature +10 -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 +4 -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 +7 -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/.gitignore +1 -0
- data/examples/i18n/en/Rakefile +6 -0
- data/examples/i18n/en/features/addition.feature +17 -0
- data/examples/i18n/en/features/division.feature +10 -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/eo/.gitignore +1 -0
- data/examples/i18n/eo/Rakefile +6 -0
- data/examples/i18n/eo/features/adicio.feature +17 -0
- data/examples/i18n/eo/features/divido.feature +10 -0
- data/examples/i18n/eo/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/eo/lib/calculator.rb +14 -0
- data/examples/i18n/es/Rakefile +6 -0
- data/examples/i18n/es/features/adicion.feature +17 -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 +10 -0
- data/examples/i18n/et/features/liitmine.feature +17 -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/.gitignore +1 -0
- data/examples/i18n/fi/Rakefile +6 -0
- data/examples/i18n/fi/features/jakolasku.feature +10 -0
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
- data/examples/i18n/fi/features/yhteenlasku.feature +17 -0
- data/examples/i18n/fi/lib/laskin.rb +14 -0
- data/examples/i18n/fr/Rakefile +6 -0
- data/examples/i18n/fr/features/addition.feature +18 -0
- data/examples/i18n/fr/features/addition2.feature +17 -0
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +32 -0
- data/examples/i18n/fr/features/support/env.rb +5 -0
- data/examples/i18n/fr/lib/calculatrice.rb +10 -0
- data/examples/i18n/he/Rakefile +6 -0
- data/examples/i18n/he/features/addition.feature +17 -0
- data/examples/i18n/he/features/division.feature +10 -0
- data/examples/i18n/he/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/he/lib/calculator.rb +15 -0
- data/examples/i18n/hu/.gitignore +1 -0
- data/examples/i18n/hu/Rakefile +6 -0
- data/examples/i18n/hu/features/osszeadas.feature +17 -0
- data/examples/i18n/hu/features/osztas.feature +10 -0
- data/examples/i18n/hu/features/step_definitons/calculator_steps.rb +25 -0
- data/examples/i18n/hu/lib/calculator.rb +14 -0
- data/examples/i18n/id/.gitignore +1 -0
- data/examples/i18n/id/Rakefile +6 -0
- data/examples/i18n/id/features/addition.feature +17 -0
- data/examples/i18n/id/features/division.feature +10 -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 +11 -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/.gitignore +1 -0
- data/examples/i18n/ja/Rakefile +6 -0
- data/examples/i18n/ja/features/addition.feature +17 -0
- data/examples/i18n/ja/features/division.feature +10 -0
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/ja/features/support/env.rb +5 -0
- data/examples/i18n/ja/lib/calculator.rb +14 -0
- data/examples/i18n/ko/.gitignore +1 -0
- data/examples/i18n/ko/Rakefile +6 -0
- data/examples/i18n/ko/features/addition.feature +17 -0
- data/examples/i18n/ko/features/division.feature +11 -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/.gitignore +1 -0
- data/examples/i18n/lt/Rakefile +6 -0
- data/examples/i18n/lt/features/addition.feature +17 -0
- data/examples/i18n/lt/features/division.feature +10 -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/lv/Rakefile +6 -0
- data/examples/i18n/lv/features/addition.feature +17 -0
- data/examples/i18n/lv/features/division.feature +10 -0
- data/examples/i18n/lv/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/lv/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 +19 -0
- data/examples/i18n/no/features/support/env.rb +6 -0
- data/examples/i18n/no/lib/kalkulator.rb +11 -0
- data/examples/i18n/pl/.gitignore +1 -0
- data/examples/i18n/pl/Rakefile +6 -0
- data/examples/i18n/pl/features/addition.feature +17 -0
- data/examples/i18n/pl/features/division.feature +10 -0
- data/examples/i18n/pl/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/pl/features/support/env.rb +5 -0
- data/examples/i18n/pl/lib/calculator.rb +14 -0
- data/examples/i18n/pt/Rakefile +6 -0
- data/examples/i18n/pt/features/adicao.feature +11 -0
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +20 -0
- data/examples/i18n/pt/features/support/env.rb +5 -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 +11 -0
- data/examples/i18n/ro/lib/calculator.rb +11 -0
- data/examples/i18n/ru/Rakefile +6 -0
- data/examples/i18n/ru/features/addition.feature +11 -0
- data/examples/i18n/ru/features/consecutive_calculations.feature +17 -0
- data/examples/i18n/ru/features/division.feature +16 -0
- data/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/ru/features/support/env.rb +5 -0
- data/examples/i18n/ru/features/support/world.rb +8 -0
- data/examples/i18n/ru/lib/calculator.rb +24 -0
- data/examples/i18n/sk/.gitignore +1 -0
- data/examples/i18n/sk/Rakefile +6 -0
- data/examples/i18n/sk/features/addition.feature +17 -0
- data/examples/i18n/sk/features/division.feature +10 -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/sr-Cyrl/Rakefile +6 -0
- data/examples/i18n/sr-Cyrl/features/sabiranje.feature +18 -0
- data/examples/i18n/sr-Cyrl/features/step_definitons/calculator_steps.rb +20 -0
- data/examples/i18n/sr-Cyrl/features/support/env.rb +5 -0
- data/examples/i18n/sr-Cyrl/lib/calculator.rb +12 -0
- data/examples/i18n/sr-Latn/Rakefile +6 -0
- data/examples/i18n/sr-Latn/features/sabiranje.feature +18 -0
- data/examples/i18n/sr-Latn/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/sr-Latn/lib/calculator.rb +12 -0
- data/examples/i18n/sv/Rakefile +6 -0
- data/examples/i18n/sv/features/step_definitons/kalkulator_steps.rb +24 -0
- data/examples/i18n/sv/features/summering.feature +18 -0
- data/examples/i18n/sv/lib/kalkulator.rb +11 -0
- data/examples/i18n/tr/.gitignore +1 -0
- data/examples/i18n/tr/Rakefile +6 -0
- data/examples/i18n/tr/features/bolme.feature +10 -0
- data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +24 -0
- data/examples/i18n/tr/features/toplama.feature +18 -0
- data/examples/i18n/tr/lib/hesap_makinesi.rb +15 -0
- data/examples/i18n/uk/Rakefile +6 -0
- data/examples/i18n/uk/features/addition.feature +11 -0
- data/examples/i18n/uk/features/consecutive_calculations.feature +17 -0
- data/examples/i18n/uk/features/division.feature +16 -0
- data/examples/i18n/uk/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/uk/features/support/env.rb +5 -0
- data/examples/i18n/uk/features/support/world.rb +8 -0
- data/examples/i18n/uk/lib/calculator.rb +24 -0
- data/examples/i18n/uz/Rakefile +6 -0
- data/examples/i18n/uz/features/addition.feature +10 -0
- data/examples/i18n/uz/features/consecutive_calculations.feature +17 -0
- data/examples/i18n/uz/features/division.feature +17 -0
- data/examples/i18n/uz/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/uz/features/support/env.rb +5 -0
- data/examples/i18n/uz/features/support/world.rb +8 -0
- data/examples/i18n/uz/lib/calculator.rb +24 -0
- data/examples/i18n/zh-CN/Rakefile +4 -0
- data/examples/i18n/zh-CN/features/addition.feature +18 -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/.gitignore +1 -0
- data/examples/i18n/zh-TW/Rakefile +4 -0
- data/examples/i18n/zh-TW/features/addition.feature +17 -0
- data/examples/i18n/zh-TW/features/division.feature +11 -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/python/README.textile +7 -0
- data/examples/python/Rakefile +4 -0
- data/examples/python/features/fibonacci.feature +19 -0
- data/examples/python/features/step_definitions/fib_steps.py +11 -0
- data/examples/python/lib/.gitignore +1 -0
- data/examples/python/lib/fib.py +7 -0
- data/examples/ramaze/README.textile +7 -0
- data/examples/ramaze/Rakefile +6 -0
- data/examples/ramaze/app.rb +21 -0
- data/examples/ramaze/features/add.feature +11 -0
- data/examples/ramaze/features/step_definitions/add_steps.rb +15 -0
- data/examples/ramaze/features/support/env.rb +32 -0
- data/examples/ramaze/layout/default.html.erb +8 -0
- data/examples/ramaze/view/index.html.erb +5 -0
- data/examples/rspec_doubles/Rakefile +4 -0
- data/examples/rspec_doubles/features/mocking.feature +9 -0
- data/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +19 -0
- data/examples/rspec_doubles/features/support/env.rb +12 -0
- data/examples/ruby2python/README.textile +7 -0
- data/examples/ruby2python/Rakefile +4 -0
- data/examples/ruby2python/features/fibonacci.feature +19 -0
- data/examples/ruby2python/features/step_definitions/fib_steps.rb +7 -0
- data/examples/ruby2python/features/support/env.rb +21 -0
- data/examples/ruby2python/lib/.gitignore +1 -0
- data/examples/ruby2python/lib/fib.py +7 -0
- data/examples/sinatra/README.textile +13 -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 +10 -0
- data/examples/sinatra/views/add.erb +7 -0
- data/examples/sinatra/views/layout.erb +8 -0
- data/examples/tcl/README.textile +11 -0
- data/examples/tcl/Rakefile +6 -0
- data/examples/tcl/features/fibonnacci.feature +17 -0
- data/examples/tcl/features/step_definitions/fib_steps.rb +7 -0
- data/examples/tcl/features/support/env.rb +6 -0
- data/examples/tcl/src/fib.tcl +3 -0
- data/examples/test_unit/Rakefile +6 -0
- data/examples/test_unit/features/step_definitions/test_unit_steps.rb +23 -0
- data/examples/test_unit/features/test_unit.feature +9 -0
- data/examples/v8/Rakefile +6 -0
- data/examples/v8/features/fibonacci.feature +43 -0
- data/examples/v8/features/step_definitions/fib_steps.js +49 -0
- data/examples/v8/features/support/env.js +14 -0
- data/examples/v8/lib/fibonacci.js +19 -0
- data/examples/watir/.gitignore +2 -0
- data/examples/watir/README.textile +16 -0
- data/examples/watir/Rakefile +12 -0
- data/examples/watir/cucumber.yml +1 -0
- data/examples/watir/features/search.feature +12 -0
- data/examples/watir/features/step_definitions/search_steps.rb +26 -0
- data/examples/watir/features/support/env.rb +32 -0
- data/examples/watir/features/support/screenshots.rb +47 -0
- data/features/background.feature +498 -0
- data/features/custom_formatter.feature +41 -0
- data/features/execute_with_tag_filter.feature +63 -0
- data/features/hooks.feature +59 -0
- data/features/json_formatter.feature +249 -0
- data/features/stats_formatters.feature +70 -0
- data/features/step_definitions/cucumber_steps.rb +8 -0
- data/features/support/env.rb +31 -0
- data/features/tagged_hooks.feature +217 -0
- data/fixtures/json/features/background.feature +7 -0
- data/fixtures/json/features/embed.feature +4 -0
- data/fixtures/json/features/one_passing_one_failing.feature +11 -0
- data/fixtures/json/features/step_definitions/steps.rb +32 -0
- data/fixtures/json/features/tables.feature +13 -0
- data/fixtures/junit/features/one_passing_one_failing.feature +8 -0
- data/fixtures/junit/features/pending.feature +5 -0
- data/fixtures/junit/features/step_definitions/steps.rb +11 -0
- data/fixtures/self_test/.gitignore +1 -0
- data/fixtures/self_test/README.textile +6 -0
- data/fixtures/self_test/Rakefile +6 -0
- data/fixtures/self_test/features/call_undefined_step_from_step_def.feature +7 -0
- data/fixtures/self_test/features/failing_expectation.feature +4 -0
- data/fixtures/self_test/features/lots_of_undefined.feature +8 -0
- data/fixtures/self_test/features/multiline_name.feature +27 -0
- data/fixtures/self_test/features/outline_sample.feature +15 -0
- data/fixtures/self_test/features/sample.feature +21 -0
- data/fixtures/self_test/features/search_sample.feature +32 -0
- data/fixtures/self_test/features/step_definitions/sample_steps.rb +84 -0
- data/fixtures/self_test/features/support/env.rb +18 -0
- data/fixtures/self_test/features/tags_sample.feature +17 -0
- data/fixtures/self_test/features/tons_of_cukes.feature +52 -0
- data/fixtures/self_test/features/undefined_multiline_args.feature +12 -0
- data/fixtures/self_test/list-of-features.txt +1 -0
- data/fixtures/steps_library/features/step_definitions/steps_lib1.rb +8 -0
- data/fixtures/steps_library/features/step_definitions/steps_lib2.rb +8 -0
- data/fixtures/tickets/Rakefile +20 -0
- data/fixtures/tickets/features.html +138 -0
- data/fixtures/tickets/features/172.feature +28 -0
- data/fixtures/tickets/features/177/1.feature +28 -0
- data/fixtures/tickets/features/177/2.feature +20 -0
- data/fixtures/tickets/features/177/3.feature +18 -0
- data/fixtures/tickets/features/180.feature +7 -0
- data/fixtures/tickets/features/229/tagged_hooks.feature +8 -0
- data/fixtures/tickets/features/229/tagged_hooks.rb +14 -0
- data/fixtures/tickets/features/236.feature +13 -0
- data/fixtures/tickets/features/241.feature +12 -0
- data/fixtures/tickets/features/246.feature +4 -0
- data/fixtures/tickets/features/248.feature +11 -0
- data/fixtures/tickets/features/270/back.feature +14 -0
- data/fixtures/tickets/features/270/back.steps.rb +14 -0
- data/fixtures/tickets/features/272/hooks.feature +26 -0
- data/fixtures/tickets/features/272/hooks_steps.rb +53 -0
- data/fixtures/tickets/features/279/py_string_indent.feature +25 -0
- data/fixtures/tickets/features/279/py_string_indent.steps.rb +12 -0
- data/fixtures/tickets/features/279/wrong.feature_ +11 -0
- data/fixtures/tickets/features/301/filter_background_tagged_hooks.feature +6 -0
- data/fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb +12 -0
- data/fixtures/tickets/features/306/only_background.feature +4 -0
- data/fixtures/tickets/features/around_timeout.feature +6 -0
- data/fixtures/tickets/features/gherkin_67.feature +12 -0
- data/fixtures/tickets/features/gherkin_68.feature +4 -0
- data/fixtures/tickets/features/half_manual.feature +11 -0
- data/fixtures/tickets/features/lib/eatting_machine.rb +18 -0
- data/fixtures/tickets/features/lib/pantry.rb +20 -0
- data/fixtures/tickets/features/scenario_outline.feature +95 -0
- data/fixtures/tickets/features/step_definitons/246_steps.rb +3 -0
- data/fixtures/tickets/features/step_definitons/248_steps.rb +15 -0
- data/fixtures/tickets/features/step_definitons/around_timeout_steps.rb +9 -0
- data/fixtures/tickets/features/step_definitons/half_manual_steps.rb +11 -0
- data/fixtures/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
- data/fixtures/tickets/features/step_definitons/tickets_steps.rb +88 -0
- data/fixtures/tickets/features/table_diffing.feature +13 -0
- data/fixtures/tickets/features/tickets.feature +28 -0
- data/gem_tasks/contributors.rake +15 -0
- data/gem_tasks/cucumber.rake +19 -0
- data/gem_tasks/environment.rake +7 -0
- data/gem_tasks/examples.rake +11 -0
- data/gem_tasks/fix_cr_lf.rake +10 -0
- data/gem_tasks/flog.rake +4 -0
- data/gem_tasks/rspec.rake +8 -0
- data/gem_tasks/sass.rake +4 -0
- data/gem_tasks/sdoc.rake +12 -0
- data/legacy_features/announce.feature +164 -0
- data/legacy_features/api/list_step_defs_as_json.feature +50 -0
- data/legacy_features/api/run_cli_main_with_existing_runtime.feature +34 -0
- data/legacy_features/around_hooks.feature +232 -0
- data/legacy_features/bug_371.feature +32 -0
- data/legacy_features/bug_464.feature +16 -0
- data/legacy_features/bug_475.feature +42 -0
- data/legacy_features/bug_585_tab_indentation.feature +22 -0
- data/legacy_features/bug_600.feature +67 -0
- data/legacy_features/call_steps_from_stepdefs.feature +154 -0
- data/legacy_features/cucumber_cli.feature +591 -0
- data/legacy_features/cucumber_cli_outlines.feature +117 -0
- data/legacy_features/default_snippets.feature +42 -0
- data/legacy_features/diffing.feature +25 -0
- data/legacy_features/drb_server_integration.feature +174 -0
- data/legacy_features/exception_in_after_block.feature +127 -0
- data/legacy_features/exception_in_after_step_block.feature +104 -0
- data/legacy_features/exception_in_before_block.feature +98 -0
- data/legacy_features/exclude_files.feature +20 -0
- data/legacy_features/expand.feature +60 -0
- data/legacy_features/html_formatter.feature +8 -0
- data/legacy_features/html_formatter/a.html +550 -0
- data/legacy_features/junit_formatter.feature +92 -0
- data/legacy_features/language_from_header.feature +30 -0
- data/legacy_features/language_help.feature +78 -0
- data/legacy_features/listener_debugger_formatter.feature +42 -0
- data/legacy_features/multiline_names.feature +44 -0
- data/legacy_features/post_configuration_hook.feature +50 -0
- data/legacy_features/profiles.feature +126 -0
- data/legacy_features/rake_task.feature +152 -0
- data/legacy_features/report_called_undefined_steps.feature +34 -0
- data/legacy_features/rerun_formatter.feature +45 -0
- data/legacy_features/simplest.feature +11 -0
- data/legacy_features/snippet.feature +23 -0
- data/legacy_features/snippets_when_using_star_keyword.feature +36 -0
- data/legacy_features/step_definitions/cucumber_steps.rb +168 -0
- data/legacy_features/step_definitions/extra_steps.rb +2 -0
- data/legacy_features/step_definitions/simplest_steps.rb +3 -0
- data/legacy_features/step_definitions/wire_steps.rb +34 -0
- data/legacy_features/support/env.rb +157 -0
- data/legacy_features/support/env.rb.simplest +7 -0
- data/legacy_features/support/fake_wire_server.rb +77 -0
- data/legacy_features/table_diffing.feature +45 -0
- data/legacy_features/table_mapping.feature +34 -0
- data/legacy_features/transform.feature +245 -0
- data/legacy_features/unicode_table.feature +35 -0
- data/legacy_features/wire_protocol.feature +332 -0
- data/legacy_features/wire_protocol_table_diffing.feature +119 -0
- data/legacy_features/wire_protocol_tags.feature +87 -0
- data/legacy_features/wire_protocol_timeouts.feature +63 -0
- data/legacy_features/work_in_progress.feature +156 -0
- data/lib/README.rdoc +12 -0
- data/lib/autotest/cucumber.rb +6 -0
- data/lib/autotest/cucumber_mixin.rb +135 -0
- data/lib/autotest/cucumber_rails.rb +6 -0
- data/lib/autotest/cucumber_rails_rspec.rb +6 -0
- data/lib/autotest/cucumber_rails_rspec2.rb +6 -0
- data/lib/autotest/cucumber_rspec.rb +6 -0
- data/lib/autotest/cucumber_rspec2.rb +6 -0
- data/lib/autotest/discover.rb +9 -0
- data/lib/cucumber.rb +27 -0
- data/lib/cucumber/ast.rb +30 -0
- data/lib/cucumber/ast/background.rb +99 -0
- data/lib/cucumber/ast/comment.rb +31 -0
- data/lib/cucumber/ast/examples.rb +43 -0
- data/lib/cucumber/ast/feature.rb +103 -0
- data/lib/cucumber/ast/feature_element.rb +78 -0
- data/lib/cucumber/ast/features.rb +35 -0
- data/lib/cucumber/ast/outline_table.rb +187 -0
- data/lib/cucumber/ast/py_string.rb +80 -0
- data/lib/cucumber/ast/scenario.rb +117 -0
- data/lib/cucumber/ast/scenario_outline.rb +122 -0
- data/lib/cucumber/ast/step.rb +126 -0
- data/lib/cucumber/ast/step_collection.rb +76 -0
- data/lib/cucumber/ast/step_invocation.rb +199 -0
- data/lib/cucumber/ast/table.rb +689 -0
- data/lib/cucumber/ast/tags.rb +28 -0
- data/lib/cucumber/ast/tree_walker.rb +184 -0
- data/lib/cucumber/ast/visitor.rb +11 -0
- data/lib/cucumber/broadcaster.rb +13 -0
- data/lib/cucumber/cli/configuration.rb +209 -0
- data/lib/cucumber/cli/drb_client.rb +43 -0
- data/lib/cucumber/cli/main.rb +78 -0
- data/lib/cucumber/cli/options.rb +406 -0
- data/lib/cucumber/cli/profile_loader.rb +91 -0
- data/lib/cucumber/configuration.rb +49 -0
- data/lib/cucumber/constantize.rb +34 -0
- data/lib/cucumber/core_ext/disable_mini_unit_autorun.rb +14 -0
- data/lib/cucumber/core_ext/instance_exec.rb +98 -0
- data/lib/cucumber/core_ext/proc.rb +34 -0
- data/lib/cucumber/core_ext/string.rb +9 -0
- data/lib/cucumber/errors.rb +40 -0
- data/lib/cucumber/feature_file.rb +62 -0
- data/lib/cucumber/formatter/ansicolor.rb +160 -0
- data/lib/cucumber/formatter/console.rb +177 -0
- data/lib/cucumber/formatter/cucumber.css +275 -0
- data/lib/cucumber/formatter/cucumber.sass +271 -0
- data/lib/cucumber/formatter/debug.rb +33 -0
- data/lib/cucumber/formatter/duration.rb +13 -0
- data/lib/cucumber/formatter/gherkin_formatter_adapter.rb +84 -0
- data/lib/cucumber/formatter/gpretty.rb +24 -0
- data/lib/cucumber/formatter/html.rb +644 -0
- data/lib/cucumber/formatter/io.rb +31 -0
- data/lib/cucumber/formatter/jquery-min.js +154 -0
- data/lib/cucumber/formatter/json.rb +29 -0
- data/lib/cucumber/formatter/json_pretty.rb +13 -0
- data/lib/cucumber/formatter/junit.rb +150 -0
- data/lib/cucumber/formatter/ordered_xml_markup.rb +24 -0
- data/lib/cucumber/formatter/pdf.rb +244 -0
- data/lib/cucumber/formatter/pretty.rb +237 -0
- data/lib/cucumber/formatter/progress.rb +92 -0
- data/lib/cucumber/formatter/rerun.rb +55 -0
- data/lib/cucumber/formatter/stepdefs.rb +14 -0
- data/lib/cucumber/formatter/steps.rb +49 -0
- data/lib/cucumber/formatter/summary.rb +35 -0
- data/lib/cucumber/formatter/unicode.rb +79 -0
- data/lib/cucumber/formatter/usage.rb +127 -0
- data/lib/cucumber/js_support/js_dsl.js +57 -0
- data/lib/cucumber/js_support/js_language.rb +185 -0
- data/lib/cucumber/js_support/js_snippets.rb +27 -0
- data/lib/cucumber/language_support.rb +30 -0
- data/lib/cucumber/language_support/language_methods.rb +129 -0
- data/lib/cucumber/parser.rb +2 -0
- data/lib/cucumber/parser/gherkin_builder.rb +130 -0
- data/lib/cucumber/platform.rb +29 -0
- data/lib/cucumber/py_support/py_dsl.py +10 -0
- data/lib/cucumber/py_support/py_language.py +10 -0
- data/lib/cucumber/py_support/py_language.rb +84 -0
- data/lib/cucumber/rake/task.rb +170 -0
- data/lib/cucumber/rb_support/rb_dsl.rb +112 -0
- data/lib/cucumber/rb_support/rb_hook.rb +18 -0
- data/lib/cucumber/rb_support/rb_language.rb +195 -0
- data/lib/cucumber/rb_support/rb_step_definition.rb +82 -0
- data/lib/cucumber/rb_support/rb_transform.rb +37 -0
- data/lib/cucumber/rb_support/rb_world.rb +95 -0
- data/lib/cucumber/rb_support/regexp_argument_matcher.rb +21 -0
- data/lib/cucumber/rspec/disable_option_parser.rb +23 -0
- data/lib/cucumber/rspec/doubles.rb +16 -0
- data/lib/cucumber/runtime.rb +145 -0
- data/lib/cucumber/runtime/features_loader.rb +62 -0
- data/lib/cucumber/runtime/for_programming_languages.rb +65 -0
- data/lib/cucumber/runtime/results.rb +64 -0
- data/lib/cucumber/runtime/support_code.rb +203 -0
- data/lib/cucumber/runtime/user_interface.rb +80 -0
- data/lib/cucumber/step_argument.rb +9 -0
- data/lib/cucumber/step_definition_light.rb +20 -0
- data/lib/cucumber/step_definitions.rb +14 -0
- data/lib/cucumber/step_match.rb +115 -0
- data/lib/cucumber/step_mother.rb +10 -0
- data/lib/cucumber/wire_support/configuration.rb +30 -0
- data/lib/cucumber/wire_support/connection.rb +55 -0
- data/lib/cucumber/wire_support/request_handler.rb +32 -0
- data/lib/cucumber/wire_support/wire_exception.rb +32 -0
- data/lib/cucumber/wire_support/wire_language.rb +54 -0
- data/lib/cucumber/wire_support/wire_packet.rb +32 -0
- data/lib/cucumber/wire_support/wire_protocol.rb +44 -0
- data/lib/cucumber/wire_support/wire_protocol/requests.rb +123 -0
- data/lib/cucumber/wire_support/wire_step_definition.rb +26 -0
- data/spec/cucumber/ast/background_spec.rb +110 -0
- data/spec/cucumber/ast/feature_factory.rb +60 -0
- data/spec/cucumber/ast/feature_spec.rb +63 -0
- data/spec/cucumber/ast/outline_table_spec.rb +21 -0
- data/spec/cucumber/ast/py_string_spec.rb +40 -0
- data/spec/cucumber/ast/scenario_outline_spec.rb +68 -0
- data/spec/cucumber/ast/scenario_spec.rb +43 -0
- data/spec/cucumber/ast/step_spec.rb +66 -0
- data/spec/cucumber/ast/table_spec.rb +474 -0
- data/spec/cucumber/ast/tree_walker_spec.rb +11 -0
- data/spec/cucumber/broadcaster_spec.rb +15 -0
- data/spec/cucumber/cli/configuration_spec.rb +431 -0
- data/spec/cucumber/cli/drb_client_spec.rb +77 -0
- data/spec/cucumber/cli/main_spec.rb +137 -0
- data/spec/cucumber/cli/options_spec.rb +351 -0
- data/spec/cucumber/cli/profile_loader_spec.rb +35 -0
- data/spec/cucumber/configuration_spec.rb +23 -0
- data/spec/cucumber/core_ext/proc_spec.rb +68 -0
- data/spec/cucumber/formatter/ansicolor_spec.rb +31 -0
- data/spec/cucumber/formatter/duration_spec.rb +22 -0
- data/spec/cucumber/formatter/html_spec.rb +258 -0
- data/spec/cucumber/formatter/junit_spec.rb +111 -0
- data/spec/cucumber/formatter/progress_spec.rb +38 -0
- data/spec/cucumber/formatter/spec_helper.rb +51 -0
- data/spec/cucumber/rb_support/rb_language_spec.rb +283 -0
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +99 -0
- data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +18 -0
- data/spec/cucumber/runtime/support_code_spec.rb +112 -0
- data/spec/cucumber/runtime_spec.rb +41 -0
- data/spec/cucumber/sell_cucumbers.feature +19 -0
- data/spec/cucumber/step_match_spec.rb +69 -0
- data/spec/cucumber/wire_support/configuration_spec.rb +51 -0
- data/spec/cucumber/wire_support/connection_spec.rb +46 -0
- data/spec/cucumber/wire_support/wire_exception_spec.rb +44 -0
- data/spec/cucumber/wire_support/wire_language_spec.rb +47 -0
- data/spec/cucumber/wire_support/wire_packet_spec.rb +40 -0
- data/spec/cucumber/wire_support/wire_step_definition_spec.rb +20 -0
- data/spec/cucumber/world/pending_spec.rb +46 -0
- data/spec/spec_helper.rb +10 -0
- metadata +884 -0
data/.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
spec/cucumber/treetop_parser/test_dos.feature -crlf
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/History.txt
ADDED
@@ -0,0 +1,1613 @@
|
|
1
|
+
== 0.10.0 (2010-12-07)
|
2
|
+
|
3
|
+
We're bumping the minor number in this release because there are some incompatible changes in the JSON support.
|
4
|
+
This should not affect users. The major new feature in this release is ANSICON support for Windows users.
|
5
|
+
|
6
|
+
=== New Features
|
7
|
+
* #map_column! should allow a string or symbol as the column name passed in (Ed Schmalzle)
|
8
|
+
* Deprecate win32console and use ANSICON instead (Boško Ivanišević)
|
9
|
+
* Set builder dependency to >= 2.1.2, which will work with both Rails 2 and 3. (bUg., David Trasbo, Matt Wynne)
|
10
|
+
|
11
|
+
=== Bugfixes
|
12
|
+
* Changed the HTML formatter to show Scenarios with 'Pending' steps to be yellow rather than green (Arti)
|
13
|
+
|
14
|
+
=== Changed Features
|
15
|
+
* JSON output now contains optional "match", "result" and "embeddings" elements underneath each step. (Aslak Hellesøy)
|
16
|
+
|
17
|
+
== 0.9.4 (2010-11-07)
|
18
|
+
|
19
|
+
=== Bugfixes
|
20
|
+
* Superfluous space after step_keyword value in snippet_text message (#679 Aslak Hellesøy)
|
21
|
+
* Better Handling for "announce" in HTML formatter (#676 Stephen Kennedy)
|
22
|
+
* Too many open files - getcwd (#666 Aslak Hellesøy)
|
23
|
+
* Cucumber 0.9.3 prevents Test::Unit from running (#677 Aslak Hellesøy)
|
24
|
+
* Performance degradation when running feature files with over 1000 steps (#675 Dimitri Geshef)
|
25
|
+
|
26
|
+
== 0.9.3 (2010-10-24)
|
27
|
+
|
28
|
+
=== Bugfixes
|
29
|
+
* Better JSON representation of Regexps (Aslak Hellesøy)
|
30
|
+
* Update to work with latest spork (Matt Wynne)
|
31
|
+
* Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
|
32
|
+
* Fixed incorect --help for --strict. It fails on both pending and undefined. (Aslak Hellesøy)
|
33
|
+
|
34
|
+
== 0.9.2 (2010-10-04)
|
35
|
+
|
36
|
+
=== Bugfixes
|
37
|
+
* Too many open files - getcwd (#666 Aslak Hellesøy)
|
38
|
+
|
39
|
+
== 0.9.1 (2010-10-02)
|
40
|
+
|
41
|
+
=== Bugfixes
|
42
|
+
* Just a minor internal change to make Cuke4Duke happy. (Aslak Hellesøy)
|
43
|
+
|
44
|
+
== 0.9.0 (2010-09-21)
|
45
|
+
|
46
|
+
Maintenance release for the new release of Gherkin 2.2.3.
|
47
|
+
|
48
|
+
=== Bugfixes
|
49
|
+
* Compatibility with rspec-2.0.0.beta.19 mocks (Aslak Hellesøy)
|
50
|
+
* JUnit formatter now puts output in CDATA sections. (Dmitry Amelchenko)
|
51
|
+
|
52
|
+
=== New features
|
53
|
+
* --dry-run now shows snippets (Ben Hall)
|
54
|
+
* Use Bundler for dependency management. (Aslak Hellesøy, Rob Hunter)
|
55
|
+
|
56
|
+
=== Removed features
|
57
|
+
* No more Jeweler
|
58
|
+
|
59
|
+
=== Internal changes
|
60
|
+
* Big refactoring of StepMother (Matt Wynne)
|
61
|
+
|
62
|
+
== 0.8.5 (2010-07-14)
|
63
|
+
|
64
|
+
=== Bugfixes
|
65
|
+
* Location of stepdefs outside the project (in gems) are reported incorrectly. (#583 Aslak Hellesøy)
|
66
|
+
* Cucumber::Rake::Task uses 'bundle exec' when using bundler (#626 John Firebaugh)
|
67
|
+
|
68
|
+
== 0.8.4 (2010-07-12)
|
69
|
+
|
70
|
+
=== Bugfixes
|
71
|
+
* Fix "Errno::EADDRNOTAVAIL" errors that may be received with spork on Snow Leopard. (Lucas Mundim)
|
72
|
+
|
73
|
+
=== New features
|
74
|
+
* Detect limit for negative tags (#636 Aslak Hellesøy)
|
75
|
+
* Support for RSpec 2 doubles (mocks and stubs) (Aslak Hellesøy)
|
76
|
+
|
77
|
+
== 0.8.3 (2010-06-16)
|
78
|
+
|
79
|
+
Just a quick bugfix release.
|
80
|
+
|
81
|
+
=== Bugfixes
|
82
|
+
* Scenario outlines that fail with exception exit process (Aslak Hellesøy)
|
83
|
+
|
84
|
+
== 0.8.2 (2010-06-16)
|
85
|
+
|
86
|
+
Bugfix release which most importantly fixes an issue with the gem's gemspec.
|
87
|
+
|
88
|
+
=== Bufixes
|
89
|
+
* Fix v8 support which broke in 0.8.1 because of new gherkin API (Aslak Hellesøy)
|
90
|
+
* Call Around hooks for each example in scenario outlines. (John Firebaugh)
|
91
|
+
* Remove extraneous tmp file from the gemspec, which broke installation in some environments. (Fernando Brito, Aslak Hellesøy)
|
92
|
+
* 0.8.1 fails on JRuby (#627 Aslak Hellesøy)
|
93
|
+
|
94
|
+
=== New Features
|
95
|
+
* JavaScript to Hide/Expand Scenarios in HTML report (#621 stkenned)
|
96
|
+
|
97
|
+
== 0.8.1 (2010-06-15)
|
98
|
+
|
99
|
+
=== Bufixes
|
100
|
+
* generate test report fails: ast/outline_table.rb fails in status() (#615 Aslak Hellesøy)
|
101
|
+
|
102
|
+
=== New Features
|
103
|
+
* Undefined steps with integers (Given 3 cukes) will generate snippets like (Given /(\d+) cukes/). (Aslak Hellesøy)
|
104
|
+
|
105
|
+
== 0.8.0 (2010-06-06)
|
106
|
+
|
107
|
+
=== Bugfixes
|
108
|
+
* Require profile option causes a NoMethodError for Cucumber with JRuby (#601 John Firebaugh)
|
109
|
+
* Deprecations warnings with Spork + Cucumber + RSpec 2.0. (#619 Brian Cardarella)
|
110
|
+
* Fixed edge case compatibility problem with Gherkin 1.0.30. (#618 Aslak Hellesøy)
|
111
|
+
|
112
|
+
=== New features
|
113
|
+
* Better table support in the V8 Javascript support (Joseph Wilk)
|
114
|
+
* JSON formatters (json and json_pretty). (Jari Bakken)
|
115
|
+
|
116
|
+
=== Removed features
|
117
|
+
* The --no-diff option is removed. If you're using RSpec you will *always* get diffs. (Aslak Hellesøy)
|
118
|
+
|
119
|
+
=== Changed Features
|
120
|
+
* Upgraded to be compatible with rspec 2.0.0.beta.10 (Aslak Hellesøy)
|
121
|
+
* Ruby snippets will use "([^"]*)" instead of "([^\"]*)"$/ - wasn't properly fixed in 0.7.1. (Aslak Hellesøy)
|
122
|
+
* Preserve the order features files are passed and use this for execution order (#617 Joseph Wilk)
|
123
|
+
|
124
|
+
== 0.7.3 (2010-05-17)
|
125
|
+
|
126
|
+
=== New Features
|
127
|
+
* Table cells can now contain escaped bars - \| and escaped backslashes - \\. (Gregory Hnatiuk, Aslak Hellesøy)
|
128
|
+
* Added support for Around hooks. (#605 John Firebaugh)
|
129
|
+
|
130
|
+
== 0.7.2 (2010-05-03)
|
131
|
+
|
132
|
+
=== Bugfixes
|
133
|
+
* REALLY add backwards compatibility fix (with deprecation warning) for legacy 0.6.4 formatters. (Aslak Hellesøy)
|
134
|
+
|
135
|
+
== 0.7.1 (2010-05-03)
|
136
|
+
|
137
|
+
=== Bugfixes
|
138
|
+
* Add backwards compatibility fix (with deprecation warning) for legacy 0.6.4 formatters. (Aslak Hellesøy)
|
139
|
+
|
140
|
+
=== Changed Features
|
141
|
+
* Ruby and Javascript snippets will use "([^"]*)" instead of "([^\"]*)"$/ (Aslak Hellesøy)
|
142
|
+
|
143
|
+
== 0.7.0 (2010-05-02)
|
144
|
+
|
145
|
+
This release is an important milestone for Cucumber. A new parser (the gherkin gem) parses feature
|
146
|
+
files 50-100 times faster than with 0.6.x and previous releases. Make sure you read the upgrade
|
147
|
+
instructions! http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
148
|
+
|
149
|
+
== 0.7.0.beta.8 (2010-04-29)
|
150
|
+
|
151
|
+
=== Bugfixes
|
152
|
+
* Inconsistent order of execution Background and Before in 0.7.0.beta.2 (#600 Mike Sassak)
|
153
|
+
* Make sure both lexing and parsing errors are captured and reported with line number (Gregory Hnatiuk)
|
154
|
+
|
155
|
+
== 0.7.0.beta.7 (2010-04-28)
|
156
|
+
|
157
|
+
=== Bugfixes
|
158
|
+
* Depend on gherkin-1.0.22, which should now make things work on Windows and Ruby 1.8.x-1.9.x. (Aslak Hellesøy)
|
159
|
+
|
160
|
+
== 0.7.0.beta.6 (2010-04-28)
|
161
|
+
|
162
|
+
=== Bugfixes
|
163
|
+
* Fixed a small regression with pystrings and calling steps from stepdefs, introduced in a previous beta. (Aslak Hellesøy)
|
164
|
+
|
165
|
+
== 0.7.0.beta.5 (2010-04-27)
|
166
|
+
|
167
|
+
=== New Features
|
168
|
+
* Support RSpec 2. (RSpec >= 1.2.4 is still supported). (Aslak Hellesøy, Ryan Bigg)
|
169
|
+
|
170
|
+
=== Removed features
|
171
|
+
* No more support for RSpec <= 1.2.3. (Aslak Hellesøy)
|
172
|
+
|
173
|
+
== 0.7.0.beta.4 (2010-04-24)
|
174
|
+
|
175
|
+
=== New Features
|
176
|
+
* New, experimental V8 javascript support - step definitions in Javascript! (Joseph Wilk)
|
177
|
+
|
178
|
+
=== Bugfixes
|
179
|
+
* Gherkin is loaded via rubygems if it can't be found on the $LOAD_PATH. (Aslak Hellesøy)
|
180
|
+
|
181
|
+
== 0.7.0.beta.3 (2010-04-23)
|
182
|
+
|
183
|
+
=== Changed Features
|
184
|
+
* Step Definitions and calling steps from step definitions can again use And and But (was removed in 0.7.0.beta.2) (Aslak Hellesøy)
|
185
|
+
|
186
|
+
== 0.7.0.beta.2 (2010-04-21)
|
187
|
+
|
188
|
+
=== New Features
|
189
|
+
* Depend on Gherkin 1.0.18, which has some bugfixes. (Aslak Hellesøy)
|
190
|
+
|
191
|
+
== 0.7.0.beta.1 (2010-04-20)
|
192
|
+
|
193
|
+
Treetop is gone and replaced with Ragel. The new Ragel parser lives in the gherkin gem.
|
194
|
+
Parse times are up to 100 times faster.
|
195
|
+
|
196
|
+
=== New Features
|
197
|
+
* Upgraded Sinatra example to use Sinatra 1.0 and Capybara. (Aslak Hellesøy)
|
198
|
+
|
199
|
+
=== Changed Features
|
200
|
+
* New i18n translations now have to be contributed to the gherkin project.
|
201
|
+
|
202
|
+
== 0.6.4 2010-03-30
|
203
|
+
|
204
|
+
=== Bugfixes
|
205
|
+
* Better handling of --guess with optional capture groups (Tim Felgentreff)
|
206
|
+
* Parsing of rerun.txt can't use Shellwords on Windows (#581 David Esposito)
|
207
|
+
* #announce can now take non-String arguments just like Kernel#puts - #to_s is done implicitly. (Aslak Hellesøy)
|
208
|
+
* Attempt to fix Cucumber::CODEPAGE error again for Windows (#561 Aslak Hellesøy)
|
209
|
+
* Tab indentation causes multiline step arguments to fail (#585 Aslak Hellesøy)
|
210
|
+
* Properly pass tags over the wire protocol (Matt Wynne)
|
211
|
+
* Profile loading should honour the --strict option (#580 Rob Holland)
|
212
|
+
* Snippets are properly printed when using '*' as step keyword. (Used to cause infinite recursion). (Aslak Hellesøy)
|
213
|
+
|
214
|
+
=== New features
|
215
|
+
* Added #announce_world method, printing the World class and all included modules (Ruby only). (Aslak Hellesøy)
|
216
|
+
* Added #announce to the PDF formatter (Nicolas Bessi)
|
217
|
+
* Show fails for After/Before hooks in the progress formatter (#584 Joseph Wilk)
|
218
|
+
|
219
|
+
== Changed features
|
220
|
+
* Switced to ISO 639-1 (language) and ISO 3166 alpha-2 (region - if applicable). Applies to Catalan,
|
221
|
+
Swedish, Welsh, Romanian and Serbian. (Aslak Hellesøy)
|
222
|
+
|
223
|
+
== 0.6.3 2010-03-02
|
224
|
+
|
225
|
+
=== Bugfixes
|
226
|
+
* Split arguments in cucumber.yml with shellwords. Example: myprofile: --out="Features report.html" (Nathaniel Haas)
|
227
|
+
* Breakage in Rails 2-3-stable after html_safe is added to the repo. (#577 Aslak Hellesøy)
|
228
|
+
* uninitialized constant Cucumber::CODEPAGE (NameError) (#561 Aslak Hellesøy)
|
229
|
+
* HTML Formatter is broken in cucumber 0.6.2 and cuke4duke 0.2.3 (#567 Dan Fitch)
|
230
|
+
* Ensure consistent load order of support files (#564 Mike Sassak)
|
231
|
+
* Fix various places in PDF formatter where HTML entities could break prawn (Matt Wynne)
|
232
|
+
* The rerun formatter outputs failed, pending and undefined scenarios (before: only failing) (Aslak Hellesøy)
|
233
|
+
|
234
|
+
=== New features
|
235
|
+
* Added "Angenommen" as German synonym for Given (Sven Fuchs, Aslak Hellesøy)
|
236
|
+
* New #ask(question, timeout_seconds=60) method available to stepdefs. Asks for input and #announce-s question and answer. (Aslak Hellesøy)
|
237
|
+
* Links to step definitions are now clickable in TextMate's HTML report (Rob Aldred)
|
238
|
+
* Add diff! message to wire protocol to allow for immediate diff response to invokes (Matt Wynne)
|
239
|
+
* Add tags to begin/end scenario messages on wire protocol to support tagged hooks (#571 Matt Wynne)
|
240
|
+
* Default timeouts to 120s for invoke, begin_scenario and end_scenario messages in wire protocol (#572 Matt Wynne)
|
241
|
+
|
242
|
+
== 0.6.2 2010-01-18
|
243
|
+
|
244
|
+
=== Bugfixes
|
245
|
+
* Update --help for --tags which was out of date. (Aslak Hellesøy)
|
246
|
+
* Explicitly use Prawn 0.6.3 for pdf formatter since 0.7.1 is broken (Aslak Hellesøy)
|
247
|
+
* PDF formatter renders tables incorrectly (#553 Andy Waite)
|
248
|
+
* Better colouring in HTML report (Rob Aldred)
|
249
|
+
* Detect output encoding properly on JRuby+Windows (Aslak Hellesøy)
|
250
|
+
* Added option to override output encoding on Windows with an CUCUMBER_OUTPUT_ENCODING env var (Aslak Hellesøy)
|
251
|
+
* PDF generation requires 'prawn-format' (#558 Aslak Hellesøy)
|
252
|
+
|
253
|
+
=== New features
|
254
|
+
* Show profiles in error scenario summary. (#550 Joseph Wilk)
|
255
|
+
|
256
|
+
=== Removed features
|
257
|
+
* element_at and table_at have been removed. Use tableish in cucumber-rails instead. (Aslak Hellesœy)
|
258
|
+
|
259
|
+
== 0.6.1 2010-01-03
|
260
|
+
|
261
|
+
=== Bugfixes
|
262
|
+
* Fixed broken console handling on Windows/JRuby that was introduced in 0.6.0. (Aslak Hellesøy)
|
263
|
+
|
264
|
+
== 0.6.0 2010-01-03
|
265
|
+
|
266
|
+
Bumping to 0.6.0 for this release since we're breaking backwards compatibility with tags.
|
267
|
+
|
268
|
+
=== Changed Features
|
269
|
+
* Tag boolean logic is inverted. What was ORed before is now ANDed and vice versa. (#504 Aslak Hellesøy)
|
270
|
+
This makes it more practical in most cases to mix tags from profiles and the command line
|
271
|
+
|
272
|
+
In previous versions the following command line:
|
273
|
+
|
274
|
+
--tags @foo,~@bar --tags @zap (on the command line)
|
275
|
+
|
276
|
+
or the following Hook:
|
277
|
+
|
278
|
+
Before("@foo,~@bar", "@zap") (for Hooks)
|
279
|
+
|
280
|
+
would be equivalent to the boolean expression: (@foo && !@bar) || @zap
|
281
|
+
Starting with this release it will be equivalent to: (@foo || !@bar) && @zap
|
282
|
+
|
283
|
+
=== Bugfixes
|
284
|
+
* Cucumber not loading the correct settings using autospec (#496, #523 Aslak Hellesøy, Andrzej Śliwa)
|
285
|
+
* Ruby 1.9.2 fails to load features/support/env.rb (#549 Aslak Hellesøy)
|
286
|
+
* All features (except 4) pass on 1.9.2 (but not on 1.9.1) (Aslak Hellesøy)
|
287
|
+
* Add missing require statement in rerun formatter which broke RubyMine (Noah Sussman)
|
288
|
+
|
289
|
+
== 0.5.3 2009-12-22
|
290
|
+
|
291
|
+
Another small release today to please a sister project. This time Cuke4Nuke.
|
292
|
+
|
293
|
+
=== New Features
|
294
|
+
* Simplified wire protocol to mostly use success / fail responses (Matt Wynne)
|
295
|
+
|
296
|
+
== 0.5.2 2009-12-22
|
297
|
+
|
298
|
+
=== New Features
|
299
|
+
* On JRuby/Cuke4Duke, --require DIR will put DIR on the $CLASSPATH, making it easier to load step def classes (Aslak Hellesøy)
|
300
|
+
* New --jars option that will load jar files. Only available on JRuby. Practical for Cuke4Duke. (Aslak Hellesøy)
|
301
|
+
|
302
|
+
=== Bugfixes
|
303
|
+
* Add #embed back to html formatter (#547 Brandon Faloona)
|
304
|
+
* Refactored wire protocol code and added configurable timeout to allow for long running step definitions. (#546 Matt Wynne)
|
305
|
+
|
306
|
+
== 0.5.1 2009-12-16
|
307
|
+
|
308
|
+
Small bugfix release.
|
309
|
+
|
310
|
+
=== Bugfixes
|
311
|
+
* Replaced dependency on json gem with an error message, so that the cucumber gem installs on JRuby. (Aslak Hellesøy)
|
312
|
+
|
313
|
+
== 0.5.0 2009-12-15
|
314
|
+
|
315
|
+
We're bumping to 0.5.0 for this release since all of the Rails code has now moved to a new gem - cucumber-rails.
|
316
|
+
Please see History.txt in cucumber-rails for details about what's new on the Rails side.
|
317
|
+
|
318
|
+
=== New features
|
319
|
+
* "Given" in Dutch is now aliased to "Gegeven" or "Stel". (Iain Hecker)
|
320
|
+
* New --i18n option to list keywords in various languages. (Aslak Hellesøy)
|
321
|
+
* Added a Tcl example using Sam Stephenson's ruby-tcl (Aslak Hellesøy)
|
322
|
+
* Added * as a synonym for Given/When/Then/And/But (for all i18n languages). (#462 Aslak Hellesøy)
|
323
|
+
* The HTML formatter produces a much nicer report, with TextMate link integration. (Rob Aldred)
|
324
|
+
* Wire protocol now supports table arguments, step definition source & regexp, snippets, pending, table diffing (Matt Wynne)
|
325
|
+
|
326
|
+
=== Changed Features
|
327
|
+
* Per-word trailing-space setting for step keywords using '<'. See 'fr' in languages.yml for example. (#525 Gregory Hnatiuk)
|
328
|
+
* Formatters will no longer be passed File objects. They must use ensure_io, ensure_file or ensure_dir. (Aslak Hellesøy)
|
329
|
+
|
330
|
+
=== Bugfixes
|
331
|
+
* Exception messages are properly escaped in the HTML report. (Aslak Hellesøy)
|
332
|
+
* Improved UTF-8 support for Windows. (Aslak Hellesøy)
|
333
|
+
* Make #element_at / #table_at work on Webrat 0.6.0. This is now deprecated it in favour of #tableish from the cucumber-rails gem. (Aslak Hellesøy)
|
334
|
+
* JUnit formatter not handling multiline table steps inside Scenario Outlines (#538 Matt Wynne)
|
335
|
+
* Pending in scenario outline is red (#399 Matt Wynne)
|
336
|
+
* Allow optional step arguments to play happily with step transforms (Rob Holland)
|
337
|
+
* Regex escape the path when filtering the backtrace (Corey Donohoe & Simon Rozet)
|
338
|
+
* Add gem dependency on JSON gem, required by wire protocol (#533 Matt Wynne)
|
339
|
+
|
340
|
+
=== Removed Features
|
341
|
+
* All Rails-related code is in a separate gem: cucumber-rails. Install that if you're working with Rails. (#483 Aslak Hellesøy)
|
342
|
+
* --language is removed: http://wiki.github.com/aslakhellesoy/cucumber/spoken-languages (Aslak Hellesøy)
|
343
|
+
|
344
|
+
== 0.4.4 2009-11-13
|
345
|
+
|
346
|
+
What a bad day to make a release, but here goes.
|
347
|
+
|
348
|
+
=== New features
|
349
|
+
* Cucumber should use ActiveSupport::Callbacks for fixtures (#516 Adam Salter)
|
350
|
+
* Make 'I' optional in all webrat steps. (Gavin Hughes)
|
351
|
+
* Make generated cucumber.rake work with a vendored gem (Alex Rothenberg)
|
352
|
+
* Native support for ANSIColor on IronRuby via the iron-term-ansicolor gem (Will Green)
|
353
|
+
* Call a bunch of steps from step definitions - also with tables or pystrings. Copy-paste friendly (Bodaniel Jeanes, Jack Chen, Aslak Hellesøy)
|
354
|
+
|
355
|
+
=== Bugfixes
|
356
|
+
* Pretty printer fails when expanding scenario outlines with -x when the background includes a table (#515 Mike Sassak)
|
357
|
+
* Ensure tags used with Before/After hooks always get parsed (#520 Joseph Wilk)
|
358
|
+
* Define IRONRUBY correctly on Ruby 1.9 (Joe Van Dyk)
|
359
|
+
* RbStepDefinition#invoke calls #backtrace_line on self rather than @proc (#503 Mike Sassak)
|
360
|
+
* Avoid duplicate cucumber entries in database.yml (Daniel Hofstetter)
|
361
|
+
* Added respond_to? when checking config.cache_classes for older Rails versions (Jeremy Durham)
|
362
|
+
|
363
|
+
=== Changed Features
|
364
|
+
* Rails support has been moved to the cucumber-rails gem (Dennis Blöte, Aslak Hellesøy) TODO - WIKI DOCUMENTATION BEFORE RELEASE
|
365
|
+
* The code for Czech has changed from cz to cs. (deepj)
|
366
|
+
* $cucumber_interrupted is now Cucumber.wants_to_quit - avoid global variable, which gives warnings. (Aslak Hellesøy)
|
367
|
+
* Examples keyword without a colon is deprecated loudly. Gherkin will not recognize it at all. (Gherkin #30 Mike Sassak)
|
368
|
+
|
369
|
+
== 0.4.3 2009-10-28
|
370
|
+
|
371
|
+
The exciting thing about this release is that the wire protocol is starting to take shape. This means you can
|
372
|
+
now use Cucumber with .NET - writing step definitions in C#. And this is without having to use IronRuby at all!
|
373
|
+
See Cuke4Nuke (http://wiki.github.com/richardlawrence/Cuke4Nuke) for more information.
|
374
|
+
|
375
|
+
As usual there are several small features and bug fixes.
|
376
|
+
|
377
|
+
=== New Features
|
378
|
+
* Add support for ORing tags which are passed in with seperate --tag arguments. Make comma seperated tags use AND (#368 Joseph Wilk)
|
379
|
+
* New Wire Protocol - allowing out of process execution of Cucumber scenarios. (#428 Matt Wynne)
|
380
|
+
* Added an example illustrating how to get screenshots in HTML reports (examples/watir) (Aslak Hellesøy)
|
381
|
+
* Added new #embed(file, mime_type) method to visitors and Ruby Worlds to make it easier to embed screenshots (Aslak Hellesøy)
|
382
|
+
* The #announce method available from Ruby Step Definitions will print *after* the step is executed. (#487 Zoltan Penzeli)
|
383
|
+
* Add support for rolling back transaction for all open database connections. (John Ferlito)
|
384
|
+
* Show scenario and step summary in HTML formatter (#285 Joseph Wilk)
|
385
|
+
* Ast::Table can now be constructed with an Array of Hash. (Aslak Hellesøy)
|
386
|
+
|
387
|
+
=== Changed features
|
388
|
+
* The #announce method will no longer escape HTML if the html formatter is used. Escaping must be done manually. (Aslak Hellesøy)
|
389
|
+
|
390
|
+
=== Bugfixes
|
391
|
+
* Fixed incorrect rendering of step arguments with UTF8 characters (Aslak Hellesøy)
|
392
|
+
* "--format rerun", with a Scenario Outline, kills cucumber (#492 Aslak Hellesøy)
|
393
|
+
* Usage formatter is not reporting time correctly. (Elliot Crosby-McCullough)
|
394
|
+
* JUnit formatter raises a more helpful error when run on a feature with no name. (#493 Matt Wynne)
|
395
|
+
* Better Danish translation (Thorbjørn Ravn Andersen)
|
396
|
+
|
397
|
+
|
398
|
+
== 0.4.2 2009-10-14
|
399
|
+
|
400
|
+
Bugfix release. The 0.4.1 release was hosed when switching from Hoe to Jeweler.
|
401
|
+
|
402
|
+
== 0.4.1 2009-10-14
|
403
|
+
|
404
|
+
This is mostly a bugfix release. Some of Cucumber's own features have been fixed so they pass on more platforms,
|
405
|
+
making it easier for people to contribute. The README.txt also describes how to get up and running with the
|
406
|
+
development environment.
|
407
|
+
|
408
|
+
=== Bugfixes
|
409
|
+
* Cucumber's features verified passing on MRI 1.8.6 (OSX), 1.8.7 (OSX), 1.9.1 (OSX/Win) and JRuby 1.4.0RC1 (OSX). (Aslak Hellesøy)
|
410
|
+
* Ensure no errors are raised when limiting with tags which are not in the feature set (#464 Joseph Wilk)
|
411
|
+
* Missing Romanian keywords added for Examples, Scenario Outline and Background (to my best google translate knowledge) (Aslak Hellesøy)
|
412
|
+
* Make rerun and --drb work together again after formatter API changes (#485 Erik Hansson, John Ferlito)
|
413
|
+
|
414
|
+
=== New Features
|
415
|
+
* The Rails cucumber generator will only default to RSpec if installed. And print better help. (Aslak Hellesøy)
|
416
|
+
* Added 'but' variants to Japanese. (Kakutani Shintaro)
|
417
|
+
* README.txt explains people how to run all tests. Install gems with geminstaller. (Aslak Hellesøy)
|
418
|
+
* Added support for Serbian language, both Cyrillic and Latin with usage examples. (Dejan Dimic)
|
419
|
+
* Add new 'debug' formatter for debugging and visualising the calls to listeners. (Matt Wynne)
|
420
|
+
|
421
|
+
=== Changed features
|
422
|
+
* Use http://github.com/aslakhellesoy/wac instead of http://github.com/aslakhellesoy/ansicolor on Windows/JRuby (#456 Aslak Hellesøy)
|
423
|
+
|
424
|
+
=== Internal changes
|
425
|
+
* Ditched Hoe for Jeweler (Aslak Hellesøy)
|
426
|
+
* Added StepMother#invoke(step_name, multiline_argument=nil) - needed by cuke4duke ticket #26 (Aslak Hellesøy)
|
427
|
+
* StepDefinitionMethods is gone.
|
428
|
+
|
429
|
+
== 0.4.0 2009-10-09
|
430
|
+
|
431
|
+
The back to stable release. When we went from 0.3.11 to 0.3.90 we thought we were close to a 0.4.0 release. Then the community
|
432
|
+
went nuts and a lot of great contributions came in. Some of those broke backwards compatibility, and we decided it would be
|
433
|
+
better to do this while still on 0.3.x.
|
434
|
+
|
435
|
+
Rails users: you *must* run script/generate cucumber after installing this version.
|
436
|
+
|
437
|
+
If something breaks for you, please please please read this file carefully. It's most likely something referenced here, and
|
438
|
+
that will give you more information so you can solve any problems. If not, just get in touch on IRC or the Google Group.
|
439
|
+
|
440
|
+
=== New Features
|
441
|
+
* Total feature parsing time is shown when run with --verbose. Useful for benchmarking with future Ragel parser (Aslak Hellesøy)
|
442
|
+
* Tables yielded to step definitions are no longer frozen, so you can edit their data without #dup'ing (Aslak Hellesøy)
|
443
|
+
* Transform can now transform tables, using /table:col1,col2,col3/ (#478 Corey Haines)
|
444
|
+
* cucumber.yml can also end in .yaml and be located in .config/ or config/ dirs (#447 trans)
|
445
|
+
* Turkish support. (Hakan Şenol Ensari)
|
446
|
+
* Upgrade Rails generator to set a dependency to Spork 0.7.3. (Aslak Hellesøy)
|
447
|
+
* Installation via rubygems will print a message telling people to read this file. (Aslak Hellesøy)
|
448
|
+
* Files generated by the Rails cucumber generator have information about the risks of editing. (Aslak Hellesøy)
|
449
|
+
* Rotten Cucumber alert on Rails if you upgrade your gem without regenerating with script/generate cucumber. (Aslak Hellesøy)
|
450
|
+
* Stop the confusion between "homepage" and "home page" by allowing both (Ryan Bigg & Bodaniel Jeanes)
|
451
|
+
* Make script/cucumber file generated by the Rails cucumber generator look for cucumber in vendored gems as well. (Tom ten Thij)
|
452
|
+
|
453
|
+
=== Changed Features
|
454
|
+
* Step tables now default empty table cells to empty strings and not nil (#470 Joseph Wilk)
|
455
|
+
|
456
|
+
=== Removed Features
|
457
|
+
* The feature_list, feature_pattern, step_list and step_pattern properties are removed from the Rake task. Use profiles instead. (Aslak Hellesøy)
|
458
|
+
* The FeatureTask is removed. Use profiles instead.
|
459
|
+
|
460
|
+
=== Bugfixes
|
461
|
+
* instance_exec get declared private (#477 Tim Galeckas)
|
462
|
+
* Transforms can return nil. (Thomas Marek)
|
463
|
+
* Generated rails rake tasks doesn't use the vendored version cucumber binary (#468 Josh Nichols)
|
464
|
+
* Incorrect diagnostics in case when Before raises in presence of Background (#465 Fedor Kocherga)
|
465
|
+
* Error on pystring in scenario outline with pretty formatter (#475 Aslak Hellesøy)
|
466
|
+
* Adding After('@allow-rescue') to set allow_rescue back to its former value. (Alf Mikula)
|
467
|
+
* Feature files are now sorted before they are executed, because different operating systems may list files differently. (Aslak Hellesøy)
|
468
|
+
* Fixed image loading for Windows in PDF formatter. Allow use of both png and jpg. (#461 Declan Whelan)
|
469
|
+
* Before('~@no-txn') is run on all scenarios without @no-txn causing Cucumber::Rails::World.use_transactional_fixtures to always be true. (#457 Aslak Hellesøy)
|
470
|
+
* JUnit formatter not handling scenario outline tables (#472 Matt Wynne)
|
471
|
+
* Language help broken (#467 Matt Wynne)
|
472
|
+
* Language help formatter aligns output better on Ruby 1.8.6 (Aslak Hellesøy)
|
473
|
+
* Better backtraces for Ruby 1.8.7. (Jakob Skov-Pedersen)
|
474
|
+
* String step definitions ( Given 'I have $number cucumbers' ) are escaped before being turned into regular expressions. (David Waite)
|
475
|
+
|
476
|
+
== 0.3.104 2009-09-27
|
477
|
+
|
478
|
+
This release has some minor changes to the command line and formatters. The biggest change is internally, paving
|
479
|
+
the way for more programming language support in Cuke4Duke, which now supports step definitions written in Java, Scala,
|
480
|
+
Groovy, Clojure and Javascript!
|
481
|
+
|
482
|
+
=== New Features
|
483
|
+
* "usage" formatter should display progress (#437 Aslak Hellesøy)
|
484
|
+
* Added example for Ramaze. (Yutaka HARA)
|
485
|
+
|
486
|
+
=== Bugfixes
|
487
|
+
* Fixed regression in profile formatter from 0.3.102. (Aslak Hellesøy)
|
488
|
+
* Raise a proper error message if someone forgets @ for tags, example: --tags ~foo or --tags bar. (Aslak Hellesøy)
|
489
|
+
* lib/cucumber/formatter/html.rb requires xml (#458 Brent Snook)
|
490
|
+
* lib/cucumber/formatter/html.rb requires ruby-debug (#455 Assaf Arkin)
|
491
|
+
* Allow for STDOUT formatters to be defined in profiles. Addresses an Autotest plugin issue. (#375 Gabriel Medina)
|
492
|
+
|
493
|
+
=== Removed features
|
494
|
+
* The --dry-run option no longer implies --no-source and --no-snippets. It only implies --no-snippets. (Aslak Hellesøy)
|
495
|
+
|
496
|
+
=== Changed features
|
497
|
+
* The profile and usage formatters have been combined to the usage formatter. Use it eith or without --dry-run. See --help for more. (Aslak Hellesøy)
|
498
|
+
* The steps formatter has been renamed to stepdefs formatter. (Aslak Hellesøy)
|
499
|
+
* The internal programming language API has changed, giving more power to the implementation. See #428. (Aslak Hellesøy)
|
500
|
+
|
501
|
+
== 0.3.103 2009-09-24
|
502
|
+
|
503
|
+
This release gives you back some of the control over the Rails environment that was accidentally taken away from you in the
|
504
|
+
previous release.
|
505
|
+
|
506
|
+
Using this release on a Rails project requires a rerun of script/generate cucumber.
|
507
|
+
|
508
|
+
=== New Features
|
509
|
+
* Added a new @no-txn tag to selectively turn off transactions for a particlular scenario.
|
510
|
+
* Added back a way to globally turn off transactions.
|
511
|
+
* Renamed @allow_rescue tag to @allow-rescue.
|
512
|
+
|
513
|
+
=== Bugfixes
|
514
|
+
* Gracefully handle cases when optional regexp groups are not matched. Ex: /should( not)? be flashed '([^']*?)'$/ (Aslak Hellesøy)
|
515
|
+
|
516
|
+
=== Changed Features
|
517
|
+
* The Formatter API has completely changed. Formatters are no longer a double-dispacth visitor - just a single-dispatch listener (#438 Matt Wynne)
|
518
|
+
|
519
|
+
== 0.3.102 2009-09-22
|
520
|
+
|
521
|
+
This release has some changes in the Rails support, so make sure you run "script/generate cucumber" after you upgrade.
|
522
|
+
Other noteworthy new features are improved Hook, tags and Transform support, and as always - several smaller bug fixes.
|
523
|
+
|
524
|
+
=== New Features
|
525
|
+
* Added new internal API for Regexp and groups, allowing other programming languages to leverage native regexps. (Aslak Hellesøy)
|
526
|
+
* New @allow_rescue tag for Rails scenarios. Causes exceptions raised in actions to be caught by rails and not bubble up to Cucumber (Aslak Hellesøy)
|
527
|
+
* Negative tags can now be used in hooks, just like the command line's --tags option: Before('~@yarr') - will run for all scenarios that *don't* have the @yarr tag. (Aslak Hellesøy)
|
528
|
+
* Transform has current "World" scope (Larry Diehl)
|
529
|
+
* Other Transforms can be reused by calling Transform with a string inside of another Transform definition (Larry Diehl)
|
530
|
+
* Execute "After" hooks in reverse order of declaration for better behavior with dependent blocks and to mimic the behavior of at_exit (David Waite)
|
531
|
+
|
532
|
+
=== Bugfixes
|
533
|
+
* features/support/env.rb runs commands twice (bugfix cuts total time by almost 50% w00t) (#452 Jim Meyer)
|
534
|
+
* Problems adding custom formatters to features/support. (features/support is added to $LOAD_PATH) (#449 Aslak Hellesøy)
|
535
|
+
* Some options set in cucumber.yml profiles are ignored (#446 Leonard CHIN)
|
536
|
+
* Missing step_definition snippets not properly displayed (#433 Aslak Hellesøy)
|
537
|
+
* rspec-rails, :lib => false (#447 David Chelimsky)
|
538
|
+
* Cucumber with Spork breaks on OS X Snow Leopard (#431 David Chelimsky)
|
539
|
+
|
540
|
+
=== Changed Features
|
541
|
+
* Tag names passed on the command line *always* have to use the @ sign. --tags foo or --tags ~bar won't work. Use --tags @foo or --tags ~@bar (Aslak Hellesøy)
|
542
|
+
|
543
|
+
=== Removed features
|
544
|
+
* The Cucumber::Rails.bypass_rescue no longer exists. Errors will always bubble up, unless you use the new @allow_rescue tag. (Aslak Hellesøy)
|
545
|
+
* The Cucumber::Rails.use_transactional_fixtures no longer exists. Transactional fixtures are always enabled for the cucumber environment. (Aslak Hellesøy)
|
546
|
+
|
547
|
+
== 0.3.101 2009-09-15
|
548
|
+
|
549
|
+
Two exciting things in this release. Step Argument Transforms and a PDF formatter you can use to send
|
550
|
+
your features to your customer for review!
|
551
|
+
|
552
|
+
=== New Features
|
553
|
+
* New pdf formatter (#425 Mads Buus)
|
554
|
+
* Step Argument Transforms: These let you use the Transform method to register regular expressions
|
555
|
+
to catch and transform/coerce arguments before they are yielded to step definitions:
|
556
|
+
http://wiki.github.com/aslakhellesoy/cucumber/step-argument-transforms (Larry Diehl & Dave Astels)
|
557
|
+
* Adding webrat steps for asserting content does or does not exist within a particular element
|
558
|
+
(using webrat's within method) (Kieran Pilkington)
|
559
|
+
|
560
|
+
== 0.3.100 2009-09-09
|
561
|
+
|
562
|
+
The JavaZone release!
|
563
|
+
|
564
|
+
=== New Features
|
565
|
+
* Added support for Uzbek (msarvar)
|
566
|
+
* The file argument on the cucumber command line will replace contents of file on cli if file is prefixed with @ (Tero Tilus)
|
567
|
+
|
568
|
+
=== Bugfixes
|
569
|
+
* Backtraces on JRuby are handled in a cleaner way when the exception comes from Java (NativeException). (Aslak Hellesøy)
|
570
|
+
* When exceptions occur in a Before block the rest of the scenario is now skipped (#331 Matt Wynne)
|
571
|
+
|
572
|
+
== 0.3.99 2009-09-03
|
573
|
+
|
574
|
+
=== New Features
|
575
|
+
* Support for Croatian (Bkrsta)
|
576
|
+
* Make #feature available from scenario so you can do: Before{|scenario| scenario.feature}. (Aslak Hellesøy)
|
577
|
+
* cucumber.yml parsing supports ERB syntax (#427 Gregory Hnatiuk)
|
578
|
+
* New AfterConfiguration hook added; a block can be specified that takes Cucumber::Cli::Configuration (#423 Brent Snook)
|
579
|
+
* Cucumber::Cli::Configuration#feature_dirs and #out_stream exposed as public attributes so that they may be used in AfterConfiguration hook (#423 Brent Snook)
|
580
|
+
|
581
|
+
== 0.3.98 2009-08-25
|
582
|
+
|
583
|
+
Just a small release to help Cuke4Duke, which will be presented at Agile2009
|
584
|
+
in 2 days.
|
585
|
+
|
586
|
+
=== New Features
|
587
|
+
* Backtrace filtering now happens in StepInvocation class, meaning other languages (Cuke4Duke) can get backtraces stripped. (Aslak Hellesøy)
|
588
|
+
* Cucumber::Ast::Table#map_headers now allows for a block that will convert all the headers. See docs for details. (Ben Mabey)
|
589
|
+
|
590
|
+
== 0.3.97 2009-08-23
|
591
|
+
|
592
|
+
The AA-FTT release. Creating a release for the AA-FTT meeting in Chicago so that we can play
|
593
|
+
with the new language API and maybe knock out some better .NET support.
|
594
|
+
|
595
|
+
=== Bugfixes
|
596
|
+
* Allow comments on examples sections underneath scenario outlines (#420 Mike Sassak)
|
597
|
+
* Table.map_headers! will fail with a decent error message when 0 or 2+ headers are matched. (Aslak Hellesøy)
|
598
|
+
* Fixed an issue with comments with preceding spaces after a background causing a parse error (#401 Joseph Wilk)
|
599
|
+
|
600
|
+
=== New Features
|
601
|
+
* The public API is documented and there is a new :sdoc task to generate nice searchable API docs.
|
602
|
+
* Add :default => :cucumber when setting up Rake tasks for Cucumber in Rails (Aslak Hellesøy)
|
603
|
+
* New When /^I fill in "([^\"]*)" for "([^\"]*)"$/ Webrat step for Rails (Aslak Hellesøy)
|
604
|
+
|
605
|
+
=== Changed Features
|
606
|
+
* Changed the Programming Language API to support languages without "bleed through" (e.g. rubypython can't invoke ruby objs) (Aslak Hellesøy)
|
607
|
+
* The Programming Language API manages hooks on the language level instead of on the step mother level (Aslak Hellesøy)
|
608
|
+
|
609
|
+
== 0.3.96 2009-08-15
|
610
|
+
|
611
|
+
This release doesn't have any significant new features or bug fixes, but there are big
|
612
|
+
internal changes. This release has a new API for plugging in other programming languages.
|
613
|
+
You can read more about that here: http://groups.google.com/group/cukes/browse_thread/thread/b9db8bf1f3ec9708
|
614
|
+
|
615
|
+
This might break other tools that are using Cucumber's internal APIs. For example Spork broke and had to
|
616
|
+
be patched. Please upgrade to Spork 0.5.9 if you are using Spork.
|
617
|
+
|
618
|
+
=== New Features
|
619
|
+
* Ability to preload natural language in Spork's prefork. Rerun script/generate cucumber --spork to see how. (Aslak Hellesøy)
|
620
|
+
* Ability to control which DRb port is used via the --port flag or by setting CUCUMBER_DRB environment variable. (Chris Flipse)
|
621
|
+
* Upgrade Rails generator to use webrat 0.5.0. (Aslak Hellesøy)
|
622
|
+
* Upgrade Sinatra example to work with rack-test 0.4.1 and webrat 0.5.0. (Aslak Hellesøy)
|
623
|
+
|
624
|
+
=== Changed Features
|
625
|
+
* --strict will cause an exit code 1 for missing and pending (used to be for missing only). (Mads Buus)
|
626
|
+
* junit formatter doesn't report pending steps unless --strict is used. (Mads Buus)
|
627
|
+
|
628
|
+
== 0.3.95 2009-08-13
|
629
|
+
|
630
|
+
This release improves Webrat support for table-like HTML markup. Now you can easily turn the HTML
|
631
|
+
elements table, dl, ol and ul elements into a 2D array. This is particularly useful for comparing
|
632
|
+
data in your HTML with a Cucumber table using Cucumber::Ast::Table#diff!
|
633
|
+
|
634
|
+
This release also fixes several bugs related to --drb (Spork) and profiles (cucumber.yml)
|
635
|
+
|
636
|
+
=== Bug Fixes
|
637
|
+
* --guess will always prefer the longest regexp with no groups if they exist.
|
638
|
+
* Prevent delays if a NoMethodError is raise in a step definition. Define a light #inspect in World. (#374 Aslak Hellesøy)
|
639
|
+
* Restore 'features' as the default feature running path. (#412 Ben Mabey)
|
640
|
+
* --drb degrades gracefully when no drb server is running and no formatter is provided. (#410 Ben Mabey)
|
641
|
+
* --language picked up from profiles again. (#409 Ben Mabey)
|
642
|
+
* Resolved infinite loop problem when --drb was defined in a profile. (#408 Ben Mabey)
|
643
|
+
|
644
|
+
=== New Features
|
645
|
+
* Cucumber::World#table has been overloaded to work with 2D Array in addition to a table String to be parsed.
|
646
|
+
* New When /^I fill in the following:$/ step definition for Webrat. Useful for filling out a form with a Table. (Aslak Hellesøy)
|
647
|
+
* The object returned by element_at (Webrat::Element) has a #to_table that works for table, dl, ol and ul. (Aslak Hellesøy)
|
648
|
+
* An explanation of why failures are ok is printed when --wip is used. (Aslak Hellesøy)
|
649
|
+
* Added cucumber alias for cucumber:ok in Rails Rake tasks. (Aslak Hellesøy)
|
650
|
+
|
651
|
+
=== Changed features
|
652
|
+
* element_at('table').to_table should be used instead of table_at('table').to_a. The old way is deprecated but still works. (Aslak Hellesøy)
|
653
|
+
* element_at (and the depracated table_at) no longer takes a DOM id, only CSS selectors. Change "my_id" to "#my_id". (Aslak Hellesøy)
|
654
|
+
|
655
|
+
== 0.3.94 2009-08-06
|
656
|
+
|
657
|
+
Kanban take II.
|
658
|
+
|
659
|
+
Release 0.3.6 introduced a new --wip switch that can be used to limit work in progress
|
660
|
+
(WIP). Limiting WIP is central for Kanban Software Development (http://www.infoq.com/articles/hiranabe-lean-agile-kanban).
|
661
|
+
|
662
|
+
However, this feature went mostly unnoticed, and because we think it's so great we have decided
|
663
|
+
to make it the default for Rails projects. When you bootstrap your Rails project for Cucumber
|
664
|
+
you will now get 2 Cucumber Rake tasks for Kanban development:
|
665
|
+
|
666
|
+
cucumber:ok : Run features that should pass. This runs your "good,old" features
|
667
|
+
cucumber:wip : Run the features you're working on that don't pass yet. Tag them with @wip. Max 2!
|
668
|
+
|
669
|
+
So upgrade today and get into the habit of tagging new features with @wip (or invent your own tags).
|
670
|
+
You'll achieve better flow this way.
|
671
|
+
|
672
|
+
=== New features
|
673
|
+
* Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
|
674
|
+
* script/generate cucumber sets up 'cucumber:ok' and 'cucumber:wip' tasks and deprecates 'features'. More Kanban love. (#344 Aslak Hellesøy)
|
675
|
+
* Better JUnit formatter: feature->testsuite, scenario->testcase. Better timing and support for background and scenario outline. (Mads Buus Westmark)
|
676
|
+
* Added examples/python that uses rubypython. (Aslak Hellesøy)
|
677
|
+
* Checks the number of available colors on the terminal with ruby-terminfo if ruby-terminfo is installed.
|
678
|
+
This prevents Apple's Terminal.app from stalling (Yugui - Yuki Sonoda).
|
679
|
+
* Set 'xterm-256color' to TERM if your terminal supports grey.
|
680
|
+
* ruby-terminfo is available as genki-ruby-terminfo gem from github.
|
681
|
+
* Document builtin formatters with --help. (#406 Aslak Hellesøy)
|
682
|
+
* Added support for using regular expressions when mapping table headers. (Peter Williams)
|
683
|
+
|
684
|
+
== 0.3.93 2009-08-03
|
685
|
+
|
686
|
+
Highlights in this release: Improved profile handling (cucumber.yml) and a fix for cucumber hanging.
|
687
|
+
|
688
|
+
=== New features
|
689
|
+
* script/generate cucumber --spork now sets up a spork gem dependency in the cucumber.rb environment. (Aslak Hellesøy)
|
690
|
+
* Feature files defined on the command line override any that are present in profiles. (#344 Ben Mabey)
|
691
|
+
* Default (STDOUT) formatter defined in profile can be overridden from the command line. (#344 Ben Mabey)
|
692
|
+
* Displays which profile, if any, is being used. (Ben Mabey)
|
693
|
+
* click_link_within(parent, link) webrat step (Joakim Kolsjö)
|
694
|
+
|
695
|
+
=== Bugfixes
|
696
|
+
* script/cucumber correctly loads the gem's binary if the plugin isn't installed.
|
697
|
+
* Cucumber hangs waiting for Ctrl+C if an Error is raised. (#374 Aslak Hellesøy)
|
698
|
+
|
699
|
+
== 0.3.92 2009-07-29
|
700
|
+
|
701
|
+
This release has some minor improvements to the new Table.diff! functionality. For example,
|
702
|
+
if you're using Webrat and you want to compare a feature table with a HTML table containing
|
703
|
+
links in one of the columns, you can do:
|
704
|
+
|
705
|
+
actual = Cucumber::Ast::Table.new(table_at('table').to_a)
|
706
|
+
actual.map_column!('Name') { |text| text.strip.match(/>(.*)</)[1] }
|
707
|
+
table.diff!(actual)
|
708
|
+
|
709
|
+
=== New features
|
710
|
+
* Allow Step Definitions to accept mix of required & optional args (Niels Ganser)
|
711
|
+
* table_a.diff!(table_b) now uses column conversions from both tables (Table#map_column!) (Aslak Hellesøy)
|
712
|
+
|
713
|
+
=== Bugfixes
|
714
|
+
* Upgrade Sinatra example to work with rack-test 0.3.0 and aslakhellesoy-webrat 0.4.4.1 (Aslak Hellesøy)
|
715
|
+
* require 'cucumber/webrat/table_locator' added to Spork environment for Rails (Anders Furseth)
|
716
|
+
|
717
|
+
=== Changed Features
|
718
|
+
* The 'default' profile is now ALWAYS used unless you specify another profile or use the -P or --no-profile flag. (#344 Ben Mabey)
|
719
|
+
|
720
|
+
== 0.3.91 2009-07-27
|
721
|
+
|
722
|
+
=== New Features
|
723
|
+
* CTRL-C will exit immediately instead of carrying on until all features are run. (Aslak Hellesøy)
|
724
|
+
* Run can be stopped programmatically by setting $cucumber_interrupted = true, for example in an After block. (Aslak Hellesøy)
|
725
|
+
* Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
|
726
|
+
* Table support for cuke4duke
|
727
|
+
|
728
|
+
== 0.3.90 2009-07-22
|
729
|
+
|
730
|
+
The Hot summer release
|
731
|
+
|
732
|
+
This is a hot summer in Norway, and Cucumbers are growing in abundance. To celebrate this we give you
|
733
|
+
a new release with lots of new features and bugfixes. This is also one of the last releases in the 0.3 series
|
734
|
+
(hence the 0.3.90 number), so 0.4 (or maybe 1.0!) will be coming up soon. The highlights of this release are:
|
735
|
+
|
736
|
+
=== Egality
|
737
|
+
|
738
|
+
English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
|
739
|
+
--language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
|
740
|
+
to your .feature files:
|
741
|
+
|
742
|
+
# language: fr
|
743
|
+
# Cucumber understands that this is French
|
744
|
+
Fonctionnalité: Trou de boulette
|
745
|
+
|
746
|
+
If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
|
747
|
+
or default to English if no --language option was specified. A nice side effect of this is that you can now
|
748
|
+
have features in several languages side by side and run them in the same cucumber. (Not recommended unless
|
749
|
+
you want to take polyglot programming to an extreme level).
|
750
|
+
|
751
|
+
=== Table diffing (experimental)
|
752
|
+
|
753
|
+
When you pass a table as an argument to your Then steps you often want to compare that table
|
754
|
+
to some actual values. In previous releases you had to iterate over the table's values and manually
|
755
|
+
compare each row using cell.should equal('foo') or assert_equal('foo', cell). If a discrepancy was found
|
756
|
+
you'd get an error, but it was hard to see how the entire expected data set was different from the actual one.
|
757
|
+
|
758
|
+
With this release you have a much more powerful way to compare expected tables with actual data. An
|
759
|
+
Ast::Table object now has a new #diff!(table) method that you can invoke in your step definitions
|
760
|
+
that take table arguments. If the table you pass in is different from the expected table (from your
|
761
|
+
plain text step), Cucumber will print the difference for each of the row or column and fail your step.
|
762
|
+
|
763
|
+
The Table#diff! method expects an Array of Array, Array of Hash (similar to what you'd get from table#hashes)
|
764
|
+
or simply another Ast::Table object. Here is a simple example:
|
765
|
+
|
766
|
+
Then /^I should see the following cukes:$/ do |expected_cukes_table|
|
767
|
+
actual_table = ... # For example [['Latin', 'English'], ['Cucumis sativus', 'Cucumber'], ['Cucumis anguria', 'Burr Gherkin']]
|
768
|
+
expected_cukes_table.diff!(actual_table)
|
769
|
+
end
|
770
|
+
|
771
|
+
As an extra bonus we provide Webrat users with a new #table_at(selector) method that you can use to transform
|
772
|
+
an HTML table into an Array of Array, so that you can easily compare the contents of your HTML table to
|
773
|
+
expected data passed to a step. Here is an example:
|
774
|
+
|
775
|
+
Then /^I should see the following cukes:$/ do |expected_cukes_table|
|
776
|
+
expected_cukes_table.diff!(table_at('#cuke_table').to_a)
|
777
|
+
end
|
778
|
+
|
779
|
+
You can do the same trick to compare data from a Rails ActiveRecord table (although this is not a
|
780
|
+
recommended practice - your Then steps should compare against what users *see*, not what's in the
|
781
|
+
database):
|
782
|
+
|
783
|
+
# This requires that you use the column names in the header of the plain text expected table
|
784
|
+
Then /^I should have the following cukes in the database:$/ do |expected_cukes_table|
|
785
|
+
expected_cukes_table.diff!(Cuke.find(:all).map(&attributes))
|
786
|
+
end
|
787
|
+
|
788
|
+
=== Environment variables
|
789
|
+
|
790
|
+
Another useful new feature is the ability to define environment variables on Cucumber's command line (just
|
791
|
+
like you can with Rake). Example:
|
792
|
+
|
793
|
+
cucumber FOO=BAR --format progress features
|
794
|
+
|
795
|
+
You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
|
796
|
+
for example enabling your super hack that validates all HTTP responses for XHTML validity.
|
797
|
+
|
798
|
+
This release also has several bugfixes related to --format and Before/After hooks.
|
799
|
+
|
800
|
+
=== Bugfixes
|
801
|
+
* Fix some misspellings which affect test fail for Korean example (#373 Dongju Kim)
|
802
|
+
* Make it possible to write non-localized step definitions (#377 Aslak Hellesøy)
|
803
|
+
* Table cells containing unicode are rendered incorrectly (#386 Stefan Kanev)
|
804
|
+
* Before and After hooks run after everything is finished when there are 2+ --format options (#371 Aslak Hellesøy)
|
805
|
+
* When using --out and two --format the first is not delivered inline with execution of features (#361 Aslak Hellesøy)
|
806
|
+
* Profile Formatter broken (#370 Aslak Hellesøy)
|
807
|
+
* Default profile usage with --drb flag degrades gracefully with no server. (#367 Ben Mabey)
|
808
|
+
* JUnit formatter uses original file name instead of narrative to avoid accidental duplicate XML files (Aslak Hellesøy)
|
809
|
+
* rake gems no longer lists cucumber as a [F]ramework gem (David Chelimsky)
|
810
|
+
* CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
|
811
|
+
* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
|
812
|
+
* Fixed bug with rake task raising errors with feature files with spaces (#380 Joseph Wilk)
|
813
|
+
|
814
|
+
=== New Features
|
815
|
+
* I should see should support regexes (#382 John Ferlito)
|
816
|
+
* Access to scenario outline name from After hook scenario parameter (#342 Aslak Hellesøy)
|
817
|
+
* Allow multiple --tags switches to be passed
|
818
|
+
* Load step definitions from vendored gems and plugins (#388 Mike Burns)
|
819
|
+
* New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes)
|
820
|
+
* Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
|
821
|
+
* Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
|
822
|
+
* Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
|
823
|
+
|
824
|
+
=== Changed Features
|
825
|
+
* When using --tags, positive tags are &&'ed while negative tags are ||'ed (John Wilger)
|
826
|
+
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
|
827
|
+
* Visitor.visit_table_cell_value(value, col_width, status) is now visitor.visit_table_cell_value(value, status)
|
828
|
+
|
829
|
+
== 0.3.11 2009-06-05
|
830
|
+
|
831
|
+
This release just fixes a tiny bug in the formatter to fix an incompatibility
|
832
|
+
with the latest RedMine release. It should have been included in 0.3.10, but
|
833
|
+
was forgotten.
|
834
|
+
|
835
|
+
=== Bugfixes
|
836
|
+
* Formatter API was broken in 0.3.9 (Roman Chernyatchik)
|
837
|
+
|
838
|
+
== 0.3.10 2009-06-05
|
839
|
+
|
840
|
+
The Spork Release!
|
841
|
+
|
842
|
+
This release has an exciting new feature - a new --drb switch! This magic switch lets you run your
|
843
|
+
features much faster than before, because you can eliminate the startup time for your code. This is
|
844
|
+
thanks to a brand new gem called Spork by Tim Harper and Ben Mabey. (You can find out more about Spork
|
845
|
+
here: http://github.com/timcharper/spork/tree/master). You can start Spork and have it preload your
|
846
|
+
application in a separate process. Spork listens for DRb connections, and when you run cucumber with
|
847
|
+
--drb the features will run inside the Spork server instead. Spork provides two simple hooks for preloading
|
848
|
+
your application - one for framework/stable code (Spork.prefork) and one for the code that *you* write and
|
849
|
+
change often (Spork.each_run). Keep in mind that all World, Before, and other Cucumber hooks need to be
|
850
|
+
in the Spork.each_run block. Using Spork works great for Ruby on Rails, which can take a while to load,
|
851
|
+
but --drb and Spork aren't tied to Rails at all. The new --drb switch also works great alongside autotest
|
852
|
+
(just add --drb to your autotest profile in cucumber.yml), so now you can get even faster feedback.
|
853
|
+
|
854
|
+
Cucumber's built-in cucumber generator now has a new --spork switch, so when you bootstrap your Rails
|
855
|
+
application for cucumber, you can have spork configuration set up out of the box. (It's just a
|
856
|
+
slightly different env.rb.)
|
857
|
+
|
858
|
+
Although Spork was in mind when the --drb switch was added it is important to realize that all that was added
|
859
|
+
to Cucumber was a DRb client. Any DRb server that adheres to this protocol can be used with Cucumber's --drb
|
860
|
+
switch. While Spork is geared towards removing the load time to give you a faster feedback loop you could
|
861
|
+
just as easily use this client with a server that distributes your features to run in parallel. Someone just
|
862
|
+
needs to write such a server. ;)
|
863
|
+
|
864
|
+
This release also has some minor bugfixes related to RSpec and Rails interop.
|
865
|
+
|
866
|
+
=== Bugfixes
|
867
|
+
* RSpec's be_* matchers did not work in 0.3.9 and probably earlier versions. Now they do. (Aslak Hellesøy)
|
868
|
+
* The Rails cucumber environment won't declare gem dependencies if the plugin exists. (Aslak Hellesøy)
|
869
|
+
* The Rails cucumber generator will no longer declare gem dependencies on rspec if you use --testunit. (Aslak Hellesøy)
|
870
|
+
|
871
|
+
=== New features
|
872
|
+
* Spork support via --drb. (Ben Mabey)
|
873
|
+
* Added a Ast::Feature#name method for convenience. (Aslak Hellesøy)
|
874
|
+
|
875
|
+
=== Changed features
|
876
|
+
* The HTML formatter wraps examples in a div, and distinguishes between Scenario and Scenario Outline. (Aslak Hellesøy)
|
877
|
+
|
878
|
+
== 0.3.9 2009-05-27
|
879
|
+
|
880
|
+
Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber
|
881
|
+
generator which is fixed in 0.3.9.
|
882
|
+
|
883
|
+
=== Bugfixes
|
884
|
+
* Fix broken Rails cucumber generator (Tim Glen)
|
885
|
+
* The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy)
|
886
|
+
|
887
|
+
== 0.3.8 2009-05-27
|
888
|
+
|
889
|
+
This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you
|
890
|
+
use Cucumber with a Rails app we *strongly* recommend you bootstrap Cucumber again:
|
891
|
+
|
892
|
+
ruby script/generate cucumber
|
893
|
+
|
894
|
+
=== New Features
|
895
|
+
* Rails cucumber generator sets up default gem dependencies in cucumber environment.
|
896
|
+
* The duration of a run is reported by formatters - same format as the Linux time command (#228 Aslak Hellesøy)
|
897
|
+
* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
|
898
|
+
* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
|
899
|
+
* HTML formatter renders @tags (but the CSS is still ugly)
|
900
|
+
|
901
|
+
=== Removed/changed features
|
902
|
+
* The Cucumber Rake task will again fork by default (as 0.3.3 and earlier). Forking must be turned off explicitly. (Aslak Hellesøy)
|
903
|
+
|
904
|
+
=== Bugfixes
|
905
|
+
* Better coexistence with RSpec - Cucumber now *neuters* the part of RSpec that tries to parse ARGV.
|
906
|
+
* The differ= exception is gone (#325, #340 Aslak Hellesøy)
|
907
|
+
|
908
|
+
== 0.3.7 2009-05-22
|
909
|
+
|
910
|
+
This is the "Help JetBrains RubyMine" release!
|
911
|
+
|
912
|
+
=== New Features
|
913
|
+
* Added new Given alias for Catalan: Donat|Donada (Lleïr Borràs Metje)
|
914
|
+
* New --expand option. This will print Scenario Outlines once for each Example row - with values expanded. (#327 Aslak Hellesøy)
|
915
|
+
* You can override the formatter in Rails-generated rake tasks with the CUCUMBER_FORMAT environment variable (#335 Aslak Hellesøy)
|
916
|
+
|
917
|
+
=== Bugfixes
|
918
|
+
* 'specs' folder needs to be renamed back to 'spec' (#339 Aslak Hellesøy)
|
919
|
+
* CUCUMBER_OPTS doesn't work for cucumber rake tasks (#336 Aslak Hellesøy)
|
920
|
+
|
921
|
+
== 0.3.6 2009-05-20
|
922
|
+
|
923
|
+
Kanban! With this release you can tag features or scenarios that are work in progress
|
924
|
+
with a tag and use the new --wip switch.
|
925
|
+
|
926
|
+
Another handy feature in this release is that you can package your own formatters in RubyGems.
|
927
|
+
|
928
|
+
=== New features
|
929
|
+
* New --wip switch. See http://www.jroller.com/perryn/entry/bdd_on_a_multi_disciplined (Perryn Fowler)
|
930
|
+
* Added a AfterStep hook (Luke Melia)
|
931
|
+
* New aliases for Vietnamese (Ngoc Dao)
|
932
|
+
* Automatic require of custom formatters. --require is no longer needed to load them, and they can be in Ruby gems. (Aslak Hellesøy)
|
933
|
+
* Lazy loading of built-in formatters. Should improve startup time a little bit.
|
934
|
+
|
935
|
+
=== Bugfixes
|
936
|
+
* Gracefully handle exceptions in After block (#330 Matt Wynne)
|
937
|
+
* Feature with only Background doesn't run hooks (#314, #329 Aslak Hellesøy)
|
938
|
+
|
939
|
+
== 0.3.5 2009-05-14
|
940
|
+
|
941
|
+
Let's make a new release today because two annoying bugs are fixed.
|
942
|
+
|
943
|
+
=== Bugfixes
|
944
|
+
* Allow feature element names to contain Gherkin keywords as long as they are not the first word on a newline (#319, #307 Joseph Wilk)
|
945
|
+
|
946
|
+
== 0.3.4 2009-05-14
|
947
|
+
|
948
|
+
A couple of great new features in this release. Running with Rake is faster than before,
|
949
|
+
and there is a brand new JUnit formatter - great for Continuous Integration reports!
|
950
|
+
|
951
|
+
This release was made especially for the Oslo XP Meetup today.
|
952
|
+
|
953
|
+
** IMPORTANT UPGRADE NOTES FOR RAILS USERS **
|
954
|
+
|
955
|
+
Running Cucumber features in the same Ruby interpreter as Rake doesn't seem to work,
|
956
|
+
so you have to explicitly tell the task to fork (like it was doing by default in prior
|
957
|
+
versions). In lib/tasks/cucumber.rake:
|
958
|
+
|
959
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
960
|
+
t.fork = true # Explicitly fork
|
961
|
+
t.cucumber_opts = %w{--format pretty}
|
962
|
+
end
|
963
|
+
|
964
|
+
(If you run script/generate cucumber this will be done for you).
|
965
|
+
Alternatively you can omit forking and run features like this:
|
966
|
+
|
967
|
+
RAILS_ENV=test rake cucumber
|
968
|
+
|
969
|
+
However, setting the RAILS_ENV is easy to forget, so I don't recommend relying on this.
|
970
|
+
|
971
|
+
=== Bugfixes
|
972
|
+
* Hooks (World, Before, After) are no longer executed when --dry-run (Aslak Hellesøy)
|
973
|
+
* Proper UTF8 use in HTML formatter (Herminio Torres)
|
974
|
+
* Problem with multiple terms in languages.yml (#321 Aslak Hellesøy)
|
975
|
+
|
976
|
+
=== New features
|
977
|
+
* New JUnit formatter (Gareth Jones)
|
978
|
+
* Support for Vietnamese (Ngoc Dao)
|
979
|
+
* Added aliases for Feature and But in Japanese (Leonard Chin)
|
980
|
+
* Support for Catalan (Francesc Esplugas)
|
981
|
+
|
982
|
+
=== Changed features
|
983
|
+
* --exclude flag now works on ruby files in addition to feature files (#312 Ben Mabey)
|
984
|
+
* The Java example under examples/java uses Ant instead of Rake - and the new JUnit formatter.
|
985
|
+
* Rake task should not shell out (#297 Aslak Hellesøy)
|
986
|
+
The Cucumber Rake task will run Cucumber in the same Ruby interpreter as Rake itself
|
987
|
+
unless explicitly told to fork a new interpreter. This is to increase speed. You can
|
988
|
+
force a new interpreter by setting fork=true or rcov=true in the task.
|
989
|
+
|
990
|
+
== 0.3.3 2009-05-10
|
991
|
+
|
992
|
+
Minor bugfix release, made specially for EuRuKo!
|
993
|
+
|
994
|
+
=== Bugfixes
|
995
|
+
* Summaries are no longer printed in an empty () if there are no scenarios/steps (Aslak Hellesøy)
|
996
|
+
* Background, Scenario Outline, Before Hook interaction (#309 Aslak Hellesøy)
|
997
|
+
* Multiline String snippets no longer give misleading info. It's a String, not a PyString that's sent to step def.
|
998
|
+
|
999
|
+
=== Removed/changed features
|
1000
|
+
* New aliases: --no-source/-s, --name/-n (#317 Lonnon Foster)
|
1001
|
+
|
1002
|
+
== 0.3.2 2009-05-05
|
1003
|
+
|
1004
|
+
This release has some minor bug fixes and new features.
|
1005
|
+
Nothing major, but we need a release for RailsConf'09 in Las Vegas!
|
1006
|
+
|
1007
|
+
=== Bugfixes
|
1008
|
+
* rake tasks with profiles not respecting --require flags (#311 Ben Mabey)
|
1009
|
+
* Step table with blank cell fails (#308 JohnnyT)
|
1010
|
+
* Fixed error where unused table cells in Examples where raising exceptions due to having no status (#302 Joseph Wilk)
|
1011
|
+
|
1012
|
+
=== New features
|
1013
|
+
* Support for Hebrew (Ido Kanner)
|
1014
|
+
* Summary should report scenarios (#32 Aslak Hellesøy)
|
1015
|
+
* Examples and the associated tables are indented one level deeper than Scenario Outline. (Aslak Hellesøy)
|
1016
|
+
* Added support for Examples selection when using --name. (#295 Joseph Wilk)
|
1017
|
+
|
1018
|
+
== 0.3.1 2009-04-26
|
1019
|
+
|
1020
|
+
This release has several minor bug fixes and new features. With the addition of Latvian and Hungarian Cucumber
|
1021
|
+
now supports 32(!!) languages.
|
1022
|
+
|
1023
|
+
=== New features
|
1024
|
+
* Support multiline names for Scenarios, Scenario Outlines, Backgrounds, Examples (#231 Joseph Wilk)
|
1025
|
+
* Added #headers to Cucumber::Ast::Table (Ben Mabey)
|
1026
|
+
* New translation for Latvian (Vitauts Stočka)
|
1027
|
+
* New translation for Hungarian (#287 Bence Golda)
|
1028
|
+
* Pick up failure on after hook (#272 Aslak Hellesøy)
|
1029
|
+
|
1030
|
+
=== Bugfixes
|
1031
|
+
* Pretty formatter not colouring Examples tables correctly (#304 Aslak Hellesøy)
|
1032
|
+
* Problem using --scenario and Scenario Outline (#298 Aslak Hellesøy)
|
1033
|
+
* Tag Hook gets executed always there is a background (#301 Aslak Hellesøy)
|
1034
|
+
* Feature which only has a Background with steps causes an exception (#306 Aslak Hellesøy)
|
1035
|
+
* Gem no longer depends on Hoe (Aslak Hellesøy)
|
1036
|
+
* Span html tags appear on HTML results with 0.3.0 (#299 Aslak Hellesøy)
|
1037
|
+
* Fixed incorrect colours in pretty formatter's table headers for outline tables (Aslak Hellesøy)
|
1038
|
+
* Exceptions from steps called within hooks are now reraised. (#294 Ben Mabey)
|
1039
|
+
|
1040
|
+
=== Removed/changed features
|
1041
|
+
* --scenario handle has been removed and replaced with --name which supports partial matches, regexp special characters, running named backgrounds (#295 Joseph Wilk)
|
1042
|
+
|
1043
|
+
== 0.3.0 2009-04-14
|
1044
|
+
|
1045
|
+
This release has some minor changes to the APIs, but big enough that a new major release is in order.
|
1046
|
+
The biggest change is the new semantics of the #World method. Previously you would call this method
|
1047
|
+
several times, passing a Proc and extending the world object of the previous one with a Ruby module.
|
1048
|
+
The problem was that there was no nice way to ensure the order in which these procs were called, which
|
1049
|
+
led to some unexpected situations. In this release you can only register a single World proc. If you
|
1050
|
+
want to extend a world with certain modules, you simply call the #World method with the module(s)
|
1051
|
+
you wish to extend the World with. The Sinatra example illustrates how to do this. Also check out
|
1052
|
+
the RDoc for Cucumber::StepMother#World.
|
1053
|
+
|
1054
|
+
The Visitor API (which is used for formatters) has also changed slightly. However, we have tried to
|
1055
|
+
do this in a backwards compatible way, so if you have custom formatters for Cucumber 0.2 they should
|
1056
|
+
still work.
|
1057
|
+
|
1058
|
+
One of the most significant new features is Tagged Hooks: http://wiki.github.com/aslakhellesoy/cucumber/hooks
|
1059
|
+
This lets you associate Before and After blocks with specific scenarios.
|
1060
|
+
|
1061
|
+
We are also deprecating the step_list, step_pattern, feature_list, and feature_pattern accessors on
|
1062
|
+
Cucumber::Rake::Task. These accessors will be completely removed in version 0.4. For complex settings
|
1063
|
+
please rely on cucumber profiles in your rake tasks:
|
1064
|
+
http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles
|
1065
|
+
|
1066
|
+
=== New features
|
1067
|
+
* Use Hooks with @tags (#229 Aslak Hellesøy)
|
1068
|
+
* Rake task supports cucumber.yml profiles (#187 Ben Mabey)
|
1069
|
+
* Field value steps for Webrat (Jack Chen)
|
1070
|
+
* Added translation for Bulgarian (Krasimir Angelov)
|
1071
|
+
* Updated translation for Polish (#273 Grzegorz Marszałek)
|
1072
|
+
* Only a single World proc can be registered. World extension now happens by calling #World with ruby modules.
|
1073
|
+
* Portuguese uses Funcionalidade in stead of Característica and accented words are aliased with unaccented ones (Alexandre da Silva and Felipe Coury).
|
1074
|
+
* The usage formatter also prints unused step definitions (Aslak Hellesøy)
|
1075
|
+
* Better exception if a World proc returns nil. (Aslak Hellesøy)
|
1076
|
+
* Allow Step Definitions to use |*varargs|, but only on Ruby 1.9. (Aslak Hellesøy)
|
1077
|
+
* Snippets for steps that use Step Tables or PyStrings include block param and object type hint comment (#247 Joseph Wilk)
|
1078
|
+
* Support description string for Backgrounds (#271 Joseph Wilk)
|
1079
|
+
|
1080
|
+
=== Bugfixes
|
1081
|
+
* After methods not being executed when Background fails (#288 Luismi Cavallé)
|
1082
|
+
* Fixed dependency on internal files in rspec breaks cucumber w/ rspec-1.2.4 (#291 Aslak Hellesøy)
|
1083
|
+
* Fix color use when using autotest on Linux. (Hans de Graaff)
|
1084
|
+
* Fixed incorrect calculation of pystring indentation (#279 Eugene Naydanov)
|
1085
|
+
* Fixed --format html leads to an error (#252 Aslak Hellesøy)
|
1086
|
+
* Fixed Background runs twice (#255 Aslak Hellesøy)
|
1087
|
+
* Fixed Background Transactions and :xx (#270 Aslak Hellesøy)
|
1088
|
+
* Fixed Autospec failing with cucumber 0.2 (#254 Aslak Hellesøy)
|
1089
|
+
* Sibling file detecting not working (#278 Aslak Hellesøy)
|
1090
|
+
|
1091
|
+
=== Removed/changed features
|
1092
|
+
* The visitor API has changed slightly:
|
1093
|
+
** #visit_step_name, #visit_multiline_arg and #visit_exception are no longer official API methods.
|
1094
|
+
** #visit_step_result replaces those 3 methods.
|
1095
|
+
** Table and PyString no longer hold status information. Each visitor subclass should store state in @state if needed.
|
1096
|
+
** #visit_py_string no longer takes a status argument.
|
1097
|
+
|
1098
|
+
== 0.2.3 2009-03-30
|
1099
|
+
|
1100
|
+
This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments
|
1101
|
+
in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables.
|
1102
|
+
|
1103
|
+
=== New features
|
1104
|
+
* Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth)
|
1105
|
+
* Use skipped_param color for examples table header (#266 Eugene Naydanov)
|
1106
|
+
* Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn)
|
1107
|
+
* Windows/JRuby users can now enjoy colourful output (via http://github.com/aslakhellesoy/ansicolor) (#166 Aslak Hellesøy)
|
1108
|
+
* Ambiguous step errors hint about --guess (unless --guess already on) (Aslak Hellesøy)
|
1109
|
+
* Added translation for Slovak (Ahmed Al Hafoudh)
|
1110
|
+
* Updated translation for Dutch (Bart Zonneveld)
|
1111
|
+
* Updated translation for Italian (Alessandro Baroni)
|
1112
|
+
* Updated translation for Japanese (KAKUTANI Shintaro)
|
1113
|
+
|
1114
|
+
=== Bugfixes
|
1115
|
+
* Fixed step name after step keyword without space (#265 Aslak Hellesøy)
|
1116
|
+
* Backtrace is back in HTML reports (Aslak Hellesøy)
|
1117
|
+
|
1118
|
+
== 0.2.2 2009-03-25
|
1119
|
+
|
1120
|
+
This release includes some minor changes to make Cucumber work with pure Java. Cucumber
|
1121
|
+
has already worked with Java for a while (using JRuby and step definitions in Ruby),
|
1122
|
+
but now you can write step definitions in pure Java!
|
1123
|
+
|
1124
|
+
Check out the Cucumber Java project for more details:
|
1125
|
+
http://github.com/aslakhellesoy/cucumber_java/tree/master
|
1126
|
+
|
1127
|
+
== 0.2.1 2009-03-25
|
1128
|
+
|
1129
|
+
This release fixes a few minor bugs and adds a couple of new features.
|
1130
|
+
|
1131
|
+
== Bugfixes
|
1132
|
+
* Fixed Cucumber, and rails controller error handling (#49 Matt Patterson)
|
1133
|
+
* HTML Formatter doesn't work correctly with scenario Outlines. (#260 Aslak Hellesøy)
|
1134
|
+
* After blocks are run in reverse order of registration. (#113 Aslak Hellesøy)
|
1135
|
+
* Snippets are showing 'Ands' (#249 Aslak Hellesøy)
|
1136
|
+
|
1137
|
+
=== New features
|
1138
|
+
* Snippets use a regexp and block arguments if the step name has "quoted" arguments. (Aslak Hellesøy)
|
1139
|
+
* Cucumber::Ast::Feature#to_sexp includes the file name. (Aslak Hellesøy)
|
1140
|
+
* support/env.rb is not loaded when --dry-run is specified. This is to increase performance. (Aslak Hellesøy)
|
1141
|
+
* New usage formatter. This is the foundation for editor autocompletion and navigation between steps and step definitions. (#209 Aslak Hellesøy)
|
1142
|
+
|
1143
|
+
=== Removed features
|
1144
|
+
* -S/--step-definitions option introduced in 0.2.0 is removed. Use --format usage [--dry-run] [--no-color].
|
1145
|
+
|
1146
|
+
== 0.2.0 2009-03-18
|
1147
|
+
|
1148
|
+
This release sports a bunch of new and exciting features, as well a major rewrite of Cucumber's internals.
|
1149
|
+
The rewrite was done to address technical debt and to have a code base that is easier to evolve and maintain.
|
1150
|
+
|
1151
|
+
There are some changes to the Gherkin language that breaks backwards compatible with the 0.1.x series.
|
1152
|
+
Most importantly, "GivenScenario" and "More Examples" no longer exist. See the "Removed features" section
|
1153
|
+
below for more details on how to use alternatives.
|
1154
|
+
|
1155
|
+
Since the grammar has changed, there are some new keywords. We have to rely on the community
|
1156
|
+
to provide updated translations. This is much easier than before - just update languages.yml.
|
1157
|
+
There is no static code generation anymore. To list all languages:
|
1158
|
+
|
1159
|
+
cucumber --lang help
|
1160
|
+
|
1161
|
+
And to list the keywords for a particular language:
|
1162
|
+
|
1163
|
+
cucumber --lang en-lol help
|
1164
|
+
|
1165
|
+
There are some really awesome new features in this release: Tagging, Autoformatting, automatic
|
1166
|
+
aliasing of keywords in all languages, full Ruby 1.9 support and improved output
|
1167
|
+
for multiline arguments are some of the highlights.
|
1168
|
+
|
1169
|
+
== Bugfixes
|
1170
|
+
* New StepInvocation breaks console formatter for pending steps. (#241 Jacob Radford)
|
1171
|
+
* Within Scenario Outlines when replacing with a nil in a step name use empty string instead. (#237 Joseph Wilk)
|
1172
|
+
* Fixed bug with Scenario Outlines incorrectly replacing values in step tables with nil. (#237 Joseph Wilk)
|
1173
|
+
* Within Scenario Outlines when replacing with a nil in multiline strings use empty string instead. (#238 Joseph Wilk)
|
1174
|
+
* Re-structure the ast: Feature -> Background -> (Scenario|ScenarioOutline)*. Fixes bug with background being called outside transactions. (#181 Joseph Wilk)
|
1175
|
+
* --strict always exits with status 1 (#230 Tim Cuthbertson)
|
1176
|
+
* Fix error with nil values in tables raising an exception (#227 Joseph Wilk)
|
1177
|
+
* Add support for using << in formatters to ensure the html formatter works (#210 Joseph Wilk)
|
1178
|
+
* Explicitly require env.rb files first to avoid potential load order problems. (#213, Ben Mabey, Randy Harmon)
|
1179
|
+
* Depend on polyglot version (0.2.4) to avoid masking require errors. (Aslak Hellesøy).
|
1180
|
+
* -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy)
|
1181
|
+
* Errors with rspec-rails matchers in cucumber 0.1.99 (#173 David Chelimsky)
|
1182
|
+
* Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy)
|
1183
|
+
* Really skip skipped steps (#90 Aslak Hellesøy)
|
1184
|
+
* No output for multi-line strings (#71 Aslak Hellesøy)
|
1185
|
+
* Fix cucumber/formatter/unicode flaws on Windows (#145 Michael)
|
1186
|
+
* Autotest-related Bugs: YAML missing (#136 Tobias Pape)
|
1187
|
+
* Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother)
|
1188
|
+
* Nested steps don't show mismatch (#116 Aslak Hellesøy)
|
1189
|
+
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)
|
1190
|
+
|
1191
|
+
=== New features
|
1192
|
+
* Australian translation (Josh Graham)
|
1193
|
+
* Added World#announce(announcment) which lets you output text to the formatted output (#222 Rob Kaufmann)
|
1194
|
+
* Added Table#transpose to to allow use of vertically aligned table keys (Torbjørn Vatn, Aslak Hellesøy)
|
1195
|
+
* Added Table#map_headers to to allow use of more readable headers (Rob Holland)
|
1196
|
+
* New -S/--step-definitions option. Useful (among other things) for tools that implement automcompletion. (#208 Aslak Hellesøy).
|
1197
|
+
* The cucumber.rake file defines a dummy :features task if Cucumber is not installed (#225 Josh Nichols)
|
1198
|
+
* Added Table#map_column! to ease casting of cell values into relevant types (#223 Rob Holland)
|
1199
|
+
* New --no-diff option (#218 Bryan Ash)
|
1200
|
+
* Rails generators supports testunit and rspec option, defaulting to rspec (#217 Josh Nichols)
|
1201
|
+
* Sinatra Example (#204 Rob Holland)
|
1202
|
+
* Keywords can be aliased in languages.yml. See English for an example (examples: Examples|Scenarios)
|
1203
|
+
* Adding support for Background (#153 Joseph Wilk)
|
1204
|
+
* Added Česky/Czech (Vojtech Salbaba)
|
1205
|
+
* New --no-multiline option to reduce noise in output. Useful if lots of features are failing. (Aslak Hellesøy)
|
1206
|
+
* Added ability to pass URIs to cucumber in addition to files and directories. Useful for troubleshooting! (Aslak Hellesøy)
|
1207
|
+
* Groups of tabular scenarios (#57 Aslak Hellesøy)
|
1208
|
+
* Tagging scenarios and features. Pick the ones to run with --tags (#54 Aslak Hellesøy)
|
1209
|
+
* Make the current scenario available to the steps. (#44 Aslak Hellesøy)
|
1210
|
+
* Step definition snippets contain a 'pending' call (#84 Aslak Hellesøy)
|
1211
|
+
* Call multiline steps from other steps (#144 Aslak Hellesøy)
|
1212
|
+
* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files. (Aslak Hellesøy)
|
1213
|
+
* New --strict option exits with an error code if there are undefined steps. (#52 Aslak Hellesøy)
|
1214
|
+
* Given, When, Then methods (used in step definitions) are automatically aliased to current language. Use $KCODE='u' in env.rb if needed.
|
1215
|
+
* Run cucumber --language help to see all supported languages. (Aslak Hellesøy)
|
1216
|
+
* Run cucumber --language LANG help to see keywords for a given language. (Aslak Hellesøy)
|
1217
|
+
* Multiline arguments (tables and """ strings) are printed in the output. (Aslak Hellesøy)
|
1218
|
+
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy)
|
1219
|
+
* New --guess option tries to guess the best step definition match instead of raising Cucumber::Multiple. (Jake Howerton)
|
1220
|
+
|
1221
|
+
=== Removed features
|
1222
|
+
* "GivenScenario" is gone. Instead you can call Steps from Step Definitions, or use the new Background feature (#153)
|
1223
|
+
* "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead.
|
1224
|
+
* Pure Ruby features are no longer supported.
|
1225
|
+
* Remove --color option in autotest. Can be added manually in cucumber.yml (#215 Jean-Michel Garnier)
|
1226
|
+
|
1227
|
+
== (0.1.16.4 aslakhellesoy-cucumber gem on GitHub)
|
1228
|
+
|
1229
|
+
Bugfix release.
|
1230
|
+
|
1231
|
+
IMPORTANT NOTE FOR RAILS USERS.
|
1232
|
+
The template used to generate your features/support/env.rb has changed. You have to apply a minor change
|
1233
|
+
manually for existing Rails projects when you upgrade to this version. Change this:
|
1234
|
+
|
1235
|
+
require 'webrat/rspec-rails'
|
1236
|
+
|
1237
|
+
to this:
|
1238
|
+
|
1239
|
+
require 'webrat/core/matchers'
|
1240
|
+
|
1241
|
+
=== New features
|
1242
|
+
* Finnish translation (Tero Tilus)
|
1243
|
+
* Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp)
|
1244
|
+
|
1245
|
+
== Bugfixes
|
1246
|
+
* Escaped quotes - \" - inside multiline strings will be unescaped.
|
1247
|
+
* Flush output in HTML formatter since JRuby doesnt do it automatically (Diego Carrion)
|
1248
|
+
* Better handling of ARGV (#169 David Chelimsky, Ben Mabey)
|
1249
|
+
* Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy)
|
1250
|
+
|
1251
|
+
== 0.1.16 2009-01-19
|
1252
|
+
|
1253
|
+
This is a small bugfix release. The most notable improvement is compatibility with Webrat 0.4. Rails/Webrat users should
|
1254
|
+
upgrade both Cucumber and Webrat gems.
|
1255
|
+
|
1256
|
+
=== New features
|
1257
|
+
* Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk)
|
1258
|
+
* Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy)
|
1259
|
+
* 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)
|
1260
|
+
* Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp)
|
1261
|
+
|
1262
|
+
=== Bugfixes
|
1263
|
+
* 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é)
|
1264
|
+
|
1265
|
+
=== Removed features
|
1266
|
+
|
1267
|
+
== 0.1.15 2009-01-08
|
1268
|
+
|
1269
|
+
Bugfix release
|
1270
|
+
|
1271
|
+
=== New features
|
1272
|
+
* 한국어! (Korean!) (John Hwang)
|
1273
|
+
|
1274
|
+
=== Bugfixes
|
1275
|
+
* --dry-run skips running before/after/steps (#147 Ian Dees)
|
1276
|
+
* Fix a minor bug in the console formatter's summary (David Chelimsky)
|
1277
|
+
* Better quoting of Scenario names in Autotest (Peter Jaros)
|
1278
|
+
* Added some small workarounds for unicode handling on Windows (Aslak Hellesøy)
|
1279
|
+
|
1280
|
+
== 0.1.14 2009-01-04
|
1281
|
+
|
1282
|
+
This is the first release of Cucumber that runs on Ruby 1.9. There are still some encoding-related issues
|
1283
|
+
with Arabic (ar), Japanese (ja) and Simplified Chinese (zh-CN). Patches are welcome. Other than that -
|
1284
|
+
a couple of minor bug fixes and polishing.
|
1285
|
+
|
1286
|
+
=== New features
|
1287
|
+
* Pretty formatter shows number of scenarios (#139 Joseph Wilk)
|
1288
|
+
* Rudimentary support for Ruby 1.9. Now it's ok to file Ruby 1.9-related bugs.
|
1289
|
+
|
1290
|
+
=== Bugfixes
|
1291
|
+
* Fixed "No such file or directory -- cucumber (LoadError)" bug with AutoTest (Aslak Hellesøy)
|
1292
|
+
* Fixed `load_missing_constant': uninitialized constant Dispatcher error with Rails (Aslak Hellesøy)
|
1293
|
+
|
1294
|
+
=== Removed features
|
1295
|
+
* The #binary= method is gone from the Rake task. It will always point to the binary in the current gem. (Aslak Hellesøy)
|
1296
|
+
|
1297
|
+
== 0.1.13 2008-12-20
|
1298
|
+
|
1299
|
+
It's time for some new features again. Output is now much better since you can use diffing, tweak
|
1300
|
+
the output colours and get the full --backtrace if you want. Managing your support/* files became
|
1301
|
+
a little easier since they are now always loaded before the step definitions. Life became easier
|
1302
|
+
for Windows users in Norway (and other countries using unicode in the features). Plus several other
|
1303
|
+
bug fixes.
|
1304
|
+
|
1305
|
+
Enjoy!
|
1306
|
+
|
1307
|
+
=== New features
|
1308
|
+
* Console output is no longer bold, but regular. Step arguments are bold instead of blold+underlined. (Aslak Hellesøy)
|
1309
|
+
* Console output can be configured with CUCUMBER_COLORS in your shell. (Aslak Hellesøy)
|
1310
|
+
* Added new --backtrace option to show full backtrace (Aslak Hellesøy)
|
1311
|
+
* Enable RSpec's diffing automatically if RSpec is loaded (Aslak Hellesøy)
|
1312
|
+
* Files in support directories are loaded before any other file (i.e. step definitions.) (#120, Ben Mabey)
|
1313
|
+
* The Rails features generator got some love and is now tested: http://github.com/aslakhellesoy/cucumber_rails (Aslak Hellesøy)
|
1314
|
+
* --language is aliased to -l instead of -a (-l became available when --line was refactored) (Aslak Hellesøy)
|
1315
|
+
* Scenario Outlines which through placeholders in the steps allow control of how scenario table values are used. (#57 Joseph Wilk)
|
1316
|
+
* Scenario Outlines are now usable in pure ruby (Joseph Wilk)
|
1317
|
+
* Add support for calling 'pending' from step definitions. (#112 Joseph Wilk)
|
1318
|
+
|
1319
|
+
=== Bugfixes
|
1320
|
+
* Make rails before filters work correctly (#122, #129 Guillermo Álvarez Fernández)
|
1321
|
+
* Proper Unicode support for Windows command shells: Just require cucumber/formatter/unicode in env.rb (Aslak Hellesøy)
|
1322
|
+
* Fixed disappearing "a" on Windows (#81 Aslak Hellesøy)
|
1323
|
+
* Fixed a bug where row step outlines were loosing step tables. (#121 Joseph Wilk, Ben Mabey)
|
1324
|
+
* The Cucumber Autotest plugin now launches JRuby if autotest is run with JRuby (Aslak Hellesøy)
|
1325
|
+
* Provide helpful and non-confusing error message when specified profile is blank. (#118, Ben Mabey)
|
1326
|
+
* Improve handling and error messages for malformed cucumber.yml files. (#117, Ben Mabey)
|
1327
|
+
* document :x run option in command line help (#114, Aslak Hellesøy)
|
1328
|
+
* Change 'visits' to 'visit' in features generator to comply with new Webrat API (Darius Roberts)
|
1329
|
+
|
1330
|
+
=== Removed features
|
1331
|
+
|
1332
|
+
== 0.1.12 2008-12-04
|
1333
|
+
|
1334
|
+
This is the "getting serious with IronRuby release" - largely based on
|
1335
|
+
"Patrick Gannon":http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx's
|
1336
|
+
blog entry.
|
1337
|
+
|
1338
|
+
== New features
|
1339
|
+
* Cucumber works with IronRuby/.NET - http://github.com/aslakhellesoy/cucumber/wikis/ironruby-and-net (Aslak Hellesøy)
|
1340
|
+
|
1341
|
+
== Bugfixes
|
1342
|
+
* Fixed bug which was preventing coloring under Autotest (#111, Alan Larkin)
|
1343
|
+
|
1344
|
+
== Removed features
|
1345
|
+
None
|
1346
|
+
|
1347
|
+
== 0.1.11 2008-12-02
|
1348
|
+
|
1349
|
+
Bugfix release with a couple of minor additional features to the command line options.
|
1350
|
+
|
1351
|
+
=== New features
|
1352
|
+
* Capture output from cucumber in Autotest (Alan Larkin)
|
1353
|
+
* Update cucumber generator to work with latest Webrat (Bryan Helkamp)
|
1354
|
+
* CUCUMBR LIKEZ 2 SPEEK WIF KATS. KTHXBAI (Aimee Daniells)
|
1355
|
+
* Support for dynamically pluggable formatters (#99 Joseph Wilk)
|
1356
|
+
* --verbose mode to see ruby files and feature files loaded by Cucumber (#106 Joseph Wilk)
|
1357
|
+
|
1358
|
+
=== Bugfixes
|
1359
|
+
* The jcode library is not loaded on JRuby/Rails. Workaround for http://tinyurl.com/55uu3u. (Aslak Hellesøy)
|
1360
|
+
* Support including modules for class passed to --format (#109 Joseph Wilk)
|
1361
|
+
|
1362
|
+
=== Removed features
|
1363
|
+
* The cucumber gem no longer depends on the rspec gem. It must be downloaded manually if RSpec is used. (Jeff Rafter)
|
1364
|
+
|
1365
|
+
== 0.1.10 2008-11-25
|
1366
|
+
|
1367
|
+
This release mostly has smaller bugfixes. The most significant new feature is how
|
1368
|
+
line numbers are specified. You can now run multiple features at specific lines numbers like this:
|
1369
|
+
|
1370
|
+
cucumber foo.feature:15 bar.feature:6:45:111
|
1371
|
+
|
1372
|
+
This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
|
1373
|
+
|
1374
|
+
=== New features
|
1375
|
+
* Added example showing how to use Cucumber with Test::Unit + Matchy instead of RSpec (Aslak Hellesøy)
|
1376
|
+
* Yield existing world object to World block (#87 Aslak Hellesøy)
|
1377
|
+
* AUTOFEATURE=tRue works (case insensitive) (Aslak Hellesøy)
|
1378
|
+
* Initial support for .NET via IronRuby. (Aslak Hellesøy)
|
1379
|
+
* Lithuanian translation (sauliusgrigaitis)
|
1380
|
+
* New webrat step defintions to wrap the new selects_time, selects_date, and selects_datetime methods. (Ben Mabey)
|
1381
|
+
* Try to load webrat gem if it's not installed as a plugin (Aslak Hellesøy)
|
1382
|
+
* Support example.feature:20 or example.feature:10:20:30 syntax for running features at specific line number(s). (#88 Joseph Wilk)
|
1383
|
+
|
1384
|
+
=== Bugfixes
|
1385
|
+
* Windows - all the 'a' characters in the output have gone on strike (#81 Luis Lavena, Joseph Wilk, Aslak Hellesøy)
|
1386
|
+
* Raise a nice error when encountering step definition without block (#95 Aslak Hellesøy)
|
1387
|
+
* Features written using Ruby where breaking due to missing a line number (#91 Joseph Wilk)
|
1388
|
+
* Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk)
|
1389
|
+
|
1390
|
+
=== Removed features
|
1391
|
+
* $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb.
|
1392
|
+
* Step definition without a block being treated as pending (#64 Joseph Wilk)
|
1393
|
+
* The --line option has been removed. Use the new file.feature:line format instead.
|
1394
|
+
|
1395
|
+
== 0.1.9 2008-11-12
|
1396
|
+
|
1397
|
+
With this release Cucumber supports 19 (!) natural languages:
|
1398
|
+
|
1399
|
+
* Arabic
|
1400
|
+
* Chinese Simplified
|
1401
|
+
* Danish
|
1402
|
+
* Dutch
|
1403
|
+
* Estonian
|
1404
|
+
* French
|
1405
|
+
* German
|
1406
|
+
* Italian
|
1407
|
+
* Japanese
|
1408
|
+
* Malay
|
1409
|
+
* Norwegian
|
1410
|
+
* Polish
|
1411
|
+
* Portuguese
|
1412
|
+
* Romanian
|
1413
|
+
* Russian
|
1414
|
+
* Spanish
|
1415
|
+
* Swedish
|
1416
|
+
* Texan
|
1417
|
+
* Welsh
|
1418
|
+
|
1419
|
+
Thanks a lot to everyone who has contributed translations. If you don't see your language here, please
|
1420
|
+
add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages
|
1421
|
+
|
1422
|
+
Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration
|
1423
|
+
support and how multiline strings work in feature files:
|
1424
|
+
|
1425
|
+
# In your .feature file
|
1426
|
+
Then I should see
|
1427
|
+
"""
|
1428
|
+
A string
|
1429
|
+
that "indents"
|
1430
|
+
and spans
|
1431
|
+
several lines
|
1432
|
+
|
1433
|
+
"""
|
1434
|
+
|
1435
|
+
# In your steps.rb file
|
1436
|
+
Then 'I should see' do |text|
|
1437
|
+
text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n"
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away
|
1441
|
+
in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first
|
1442
|
+
spaces removed too.
|
1443
|
+
|
1444
|
+
=== New features
|
1445
|
+
* Added --[no-]color option to force color on or off (Peter Jaros)
|
1446
|
+
* Step definition without a block will be treated as pending (#64 Joseph Wilk)
|
1447
|
+
* Added support for Welsh (improvements welcome) (Joseph Wilk)
|
1448
|
+
* Added --quiet option to hide all development aid output when using Pretty formatter (#69 Joseph Wilk)
|
1449
|
+
* Added --no-snippets option to hide snippets for pending steps when using Pretty formatter (#69 Joseph Wilk)
|
1450
|
+
* Added error messages concerning cucumber.yml. (#70 Ben Mabey)
|
1451
|
+
* Added Autotest support - work in progress... (Peter Jaros)
|
1452
|
+
* Added new --exclude option (Bryan Helkamp)
|
1453
|
+
* Added new --scenario option (Peter Jaros)
|
1454
|
+
* Renamed common_webrat.rb to webrat_steps.rb (Ben Mabey, Aslak Hellesøy)
|
1455
|
+
* Added new feature[:feature_path] task (Roman Gonzalez)
|
1456
|
+
* Added support for Polish (Joseph Wilk)
|
1457
|
+
* Support specifying multiple formatters and multiple outputs (#47 Joseph Wilk)
|
1458
|
+
* Added support for Japanese. (Kakutani Shintaro)
|
1459
|
+
* Added support for Texan (improvements welcome). (Aslak Hellesøy)
|
1460
|
+
|
1461
|
+
=== Bugfixes
|
1462
|
+
* Pending step snippets should escape special Regexp characters (#82 Joseph Wilk)
|
1463
|
+
* Scenario without a body shouldn't show up as complete (#63 Josh Knowles)
|
1464
|
+
* Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk)
|
1465
|
+
* Fixed next_column_index not resetting after large tables (#60, Barry Mitchelson)
|
1466
|
+
* The HTML formatter was rendering everything twice. Cannot invoke visit_feature on formatters in executor (#72 Joseph Wilk)
|
1467
|
+
* Row Scenarios need to support pending? in order for the Profile formatter to work (Joseph Wilk)
|
1468
|
+
* Snippets are not shown for steps which already have a step definition (#65 Joseph Wilk)
|
1469
|
+
* Prevent feature/scenario/pending step comments from containing '//' when running features by specifying a directory with a trailing '/' (Joseph Wilk)
|
1470
|
+
* Scenario tables need spacing after them (#59 Joseph Wilk)
|
1471
|
+
* Support running scenario table rows when using --line argument (#55 Joseph Wilk)
|
1472
|
+
* Don't load cucumber.yml unless it exists (Aslak Hellesøy)
|
1473
|
+
* 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)
|
1474
|
+
|
1475
|
+
=== Removed features
|
1476
|
+
|
1477
|
+
|
1478
|
+
== 0.1.8 2008-10-18
|
1479
|
+
|
1480
|
+
This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL.
|
1481
|
+
In previous releases it has been possible to use tables to define "more examples" of a scenario in
|
1482
|
+
a FIT-style column fixture kind of way. Now you can also use tables as arguments to steps.
|
1483
|
+
|
1484
|
+
Tables used to define more examples after a scenario must now be prefixed. In English it looks like this:
|
1485
|
+
|
1486
|
+
Feature: Addition
|
1487
|
+
In order to avoid silly mistakes
|
1488
|
+
As a math idiot
|
1489
|
+
I want to be told the sum of two numbers
|
1490
|
+
|
1491
|
+
Scenario: Add two numbers
|
1492
|
+
Given I have entered 50 into the calculator
|
1493
|
+
And I have entered 70 into the calculator
|
1494
|
+
When I press add
|
1495
|
+
Then the result should be 120 on the screen
|
1496
|
+
|
1497
|
+
More Examples:
|
1498
|
+
| input_1 | input_2 | button | output |
|
1499
|
+
| 20 | 30 | add | 50 |
|
1500
|
+
| 2 | 5 | add | 7 |
|
1501
|
+
| 0 | 40 | add | 40 |
|
1502
|
+
|
1503
|
+
Languages that are not updated yet will have to use "More Examples" until we get the translations.
|
1504
|
+
|
1505
|
+
Tables can also be used as arguments to individual steps. In fact, steps now support a single argument
|
1506
|
+
that can span several lines. This can be a table or a string.
|
1507
|
+
|
1508
|
+
Example:
|
1509
|
+
|
1510
|
+
Given the following people exist:
|
1511
|
+
| name | email | phone |
|
1512
|
+
| Aslak | aslak@email.com | 123 |
|
1513
|
+
| Joe | joe@email.com | 234 |
|
1514
|
+
| Bryan | bryan@email.org | 456 |
|
1515
|
+
When I search for email.com
|
1516
|
+
Then I should see:
|
1517
|
+
| name | email | phone |
|
1518
|
+
| Aslak | aslak@email.com | 123 |
|
1519
|
+
| Joe | joe@email.com | 234 |
|
1520
|
+
And I should see:
|
1521
|
+
"Some text
|
1522
|
+
on several lines"
|
1523
|
+
|
1524
|
+
The step definitions for such multiline steps must define an extra block argument for the argument:
|
1525
|
+
|
1526
|
+
Given /the following people exist:/ do |people_table|
|
1527
|
+
# people_table is of type Cucumber::Model::Table
|
1528
|
+
# See RDoc for more info
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
Then /I should see:/ do |string|
|
1532
|
+
# string is a plain old ruby String with leading spaces on each line removed
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
=== New features
|
1536
|
+
* Added profile formatter. (#35, Joseph Wilk)
|
1537
|
+
* Added support for Chinese Simplified. (Liming Lian)
|
1538
|
+
* Added support for Dutch. (Sjoerd Tieleman)
|
1539
|
+
* Multiline steps are now supported. (#4, Aslak Hellesøy)
|
1540
|
+
* Tables used to define more examples for a scenario must be prefixed "More Examples" (see languages.yml for other languages)
|
1541
|
+
* Show the file and line number for scenarios as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
1542
|
+
* Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
1543
|
+
* Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
1544
|
+
|
1545
|
+
=== Bugfixes
|
1546
|
+
* Fixed speling errors in Spanish (Daniel Cadenas)
|
1547
|
+
* ActionMailer delivery_method should not be set to test (#41, Luke Melia)
|
1548
|
+
* Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky)
|
1549
|
+
* Support comments above the first scenario (#31, Aslak Hellesøy)
|
1550
|
+
* Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk)
|
1551
|
+
|
1552
|
+
=== Removed features
|
1553
|
+
* Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value.
|
1554
|
+
|
1555
|
+
=== New features
|
1556
|
+
* Added new --out option to make it easier to specify output from Rake and cucumber.yml
|
1557
|
+
|
1558
|
+
== 0.1.7 2008-10-05
|
1559
|
+
|
1560
|
+
This release fixes a few bugs and adds some new features. The most notable features are:
|
1561
|
+
|
1562
|
+
=== Calling steps from steps
|
1563
|
+
|
1564
|
+
Step definitions are a little bit closer to having regular method semantics.
|
1565
|
+
You define them, but now you can also call them from other steps. Here is an
|
1566
|
+
example:
|
1567
|
+
|
1568
|
+
Given /I am logged in as an (.*) named (.*)$/ do |role, name|
|
1569
|
+
Given "I am registered as #{role}, #{name}, secret"
|
1570
|
+
When "I log in with #{name}, secret"
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
Given /I am registered as (.*), (.*), (.*)/ do |role, name, password|
|
1574
|
+
# (Code removed for brevity)
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
When /I log in with (.*), (.*)/ do |name, password|
|
1578
|
+
# (Code removed for brevity)
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
This means that steps can be reused in other steps. The GivenScenario feature achieves a similar
|
1582
|
+
effect (on the scenario level), but this feature is something we're not very happy with, mostly
|
1583
|
+
because it's not parameterisable. Calling steps from steps is.
|
1584
|
+
|
1585
|
+
GivenScenario will still be working several releases, but the plan is to remove it completely in
|
1586
|
+
the 0.3.0 release.
|
1587
|
+
|
1588
|
+
=== Seeing where a step is defined
|
1589
|
+
|
1590
|
+
Prior to this release it could be hard to find out where the ruby step definition matching
|
1591
|
+
a plain text step is defined. Not anymore! Cucumber will now output this:
|
1592
|
+
|
1593
|
+
Scenario: Regular numbers
|
1594
|
+
Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12
|
1595
|
+
And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12
|
1596
|
+
When I press divide # features/steps/calculator_steps.rb:16
|
1597
|
+
Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20
|
1598
|
+
And the result class should be Float # features/steps/calculator_steps.rb:24
|
1599
|
+
|
1600
|
+
=== Bugfixes
|
1601
|
+
* Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk)
|
1602
|
+
* Fixed a bug in Webrat selects (Tim Glen)
|
1603
|
+
* Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy)
|
1604
|
+
|
1605
|
+
=== New features
|
1606
|
+
* Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy)
|
1607
|
+
* Added But keyword to all languages (#21, Aslak Hellesøy)
|
1608
|
+
* Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy)
|
1609
|
+
* Added more Webrat steps (#25, Tim Glen)
|
1610
|
+
|
1611
|
+
== 0.1.6 2008-10-01
|
1612
|
+
|
1613
|
+
First gem release!
|