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