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