aslakhellesoy-cucumber 0.1.16.4 → 0.1.16.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +75 -1
- data/Manifest.txt +58 -65
- data/examples/cs/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/Rakefile +3 -3
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -6
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/de/features/addition.feature +6 -6
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/i18n/en/features/addition.feature +6 -6
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +1 -1
- data/examples/i18n/et/features/liitmine.feature +7 -6
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
- data/examples/i18n/fi/features/yhteenlasku.feature +2 -2
- data/examples/i18n/fr/features/addition.feature +2 -2
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +1 -1
- data/examples/i18n/id/features/addition.feature +6 -6
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +2 -3
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/lt/features/addition.feature +7 -6
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +7 -7
- data/examples/i18n/no/features/summering.feature +1 -0
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +1 -1
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +2 -2
- 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/self_test/README.textile +4 -1
- data/examples/self_test/features/call_undefined_step_from_step_def.feature +7 -0
- data/examples/self_test/features/lots_of_undefined.feature +8 -0
- data/examples/self_test/features/outline_sample.feature +8 -5
- data/examples/self_test/features/sample.feature +5 -3
- data/examples/self_test/features/step_definitions/sample_steps.rb +15 -3
- data/features/cucumber_cli.feature +199 -97
- data/features/cucumber_cli_outlines.feature +46 -38
- data/features/report_called_undefined_steps.feature +31 -0
- data/features/step_definitions/cucumber_steps.rb +7 -3
- data/features/step_definitions/extra_steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/gem_tasks/features.rake +1 -1
- data/gem_tasks/flog.rake +1 -1
- data/lib/autotest/cucumber_mixin.rb +16 -23
- data/lib/cucumber/ast/comment.rb +26 -0
- data/lib/cucumber/ast/examples.rb +22 -0
- data/lib/cucumber/ast/feature.rb +60 -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 +91 -0
- data/lib/cucumber/ast/scenario_outline.rb +83 -0
- data/lib/cucumber/ast/step.rb +130 -0
- data/lib/cucumber/ast/table.rb +214 -0
- data/lib/cucumber/ast/tags.rb +33 -0
- data/lib/cucumber/ast/visitor.rb +93 -0
- data/lib/cucumber/ast.rb +27 -0
- data/lib/cucumber/broadcaster.rb +1 -6
- data/lib/cucumber/cli.rb +178 -128
- data/lib/cucumber/core_ext/exception.rb +41 -8
- data/lib/cucumber/core_ext/instance_exec.rb +54 -0
- data/lib/cucumber/core_ext/proc.rb +29 -65
- data/lib/cucumber/core_ext/string.rb +19 -0
- data/lib/cucumber/{formatters → formatter}/ansicolor.rb +11 -10
- data/lib/cucumber/formatter/console.rb +116 -0
- data/lib/cucumber/formatter/pretty.rb +158 -0
- data/lib/cucumber/formatter/profile.rb +77 -0
- data/lib/cucumber/formatter/progress.rb +68 -0
- data/lib/cucumber/formatter.rb +1 -0
- data/lib/cucumber/formatters/autotest_formatter.rb +0 -2
- data/lib/cucumber/formatters/html_formatter.rb +4 -3
- data/lib/cucumber/formatters/pretty_formatter.rb +1 -1
- data/lib/cucumber/formatters/unicode.rb +3 -3
- data/lib/cucumber/jbehave.rb +104 -0
- data/lib/cucumber/languages.yml +100 -73
- data/lib/cucumber/parser/basic.rb +0 -0
- data/lib/cucumber/parser/feature.rb +1694 -0
- data/lib/cucumber/parser/feature.tt +206 -0
- data/lib/cucumber/parser/file_parser.rb +50 -0
- data/lib/cucumber/parser/i18n.tt +26 -0
- data/lib/cucumber/parser/treetop_ext.rb +9 -0
- data/lib/cucumber/parser.rb +27 -0
- data/lib/cucumber/platform.rb +3 -17
- data/lib/cucumber/step_definition.rb +83 -0
- data/lib/cucumber/step_mother.rb +128 -72
- data/lib/cucumber/version.rb +1 -1
- data/lib/cucumber.rb +56 -9
- 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 +81 -0
- data/spec/cucumber/broadcaster_spec.rb +4 -17
- data/spec/cucumber/cli_spec.rb +43 -148
- data/spec/cucumber/core_ext/proc_spec.rb +27 -35
- data/spec/cucumber/core_ext/string_spec.rb +8 -0
- data/spec/cucumber/{formatters → formatter}/ansicolor_spec.rb +2 -2
- data/spec/cucumber/formatter/html/cucumber.css +37 -0
- data/spec/cucumber/formatter/html/cucumber.js +11 -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/autotest_formatter_spec.rb +1 -0
- data/spec/cucumber/formatters/profile_formatter_spec.rb +17 -16
- data/spec/cucumber/parser/feature_parser_spec.rb +247 -0
- data/spec/cucumber/parser/table_parser_spec.rb +48 -0
- data/spec/cucumber/step_definition_spec.rb +62 -0
- data/spec/cucumber/step_mom_spec.rb +49 -0
- data/spec/cucumber/treetop_parser/empty_feature.feature +1 -1
- data/spec/cucumber/treetop_parser/spaces.feature +3 -1
- data/spec/cucumber/treetop_parser/with_comments.feature +1 -1
- data/spec/cucumber/treetop_parser/with_tags.feature +18 -0
- data/spec/cucumber/world/pending_spec.rb +13 -12
- data/spec/spec_helper.rb +1 -1
- metadata +59 -67
- data/examples/calculator_ruby_features/Rakefile +0 -6
- data/examples/calculator_ruby_features/features/addition.rb +0 -39
- data/examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb +0 -43
- data/gem_tasks/treetop.rake +0 -41
- data/lib/cucumber/executor.rb +0 -205
- data/lib/cucumber/formatters/profile_formatter.rb +0 -92
- data/lib/cucumber/formatters/progress_formatter.rb +0 -61
- data/lib/cucumber/formatters.rb +0 -1
- data/lib/cucumber/model/table.rb +0 -32
- data/lib/cucumber/model.rb +0 -1
- data/lib/cucumber/step_methods.rb +0 -49
- data/lib/cucumber/tree/feature.rb +0 -105
- data/lib/cucumber/tree/features.rb +0 -21
- data/lib/cucumber/tree/given_scenario.rb +0 -13
- data/lib/cucumber/tree/scenario.rb +0 -240
- data/lib/cucumber/tree/step.rb +0 -173
- data/lib/cucumber/tree/table.rb +0 -26
- data/lib/cucumber/tree/top_down_visitor.rb +0 -23
- data/lib/cucumber/tree.rb +0 -16
- data/lib/cucumber/treetop_parser/feature.treetop.erb +0 -254
- data/lib/cucumber/treetop_parser/feature_ar.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_cy.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_da.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_de.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_en-lol.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_en-tx.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_en.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_es.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_et.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_fr.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_id.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_it.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_ja.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_ko.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_lt.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_nl.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_no.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_parser.rb +0 -36
- data/lib/cucumber/treetop_parser/feature_pl.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_pt.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_ro.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_ro2.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_ru.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_se.rb +0 -1951
- data/lib/cucumber/treetop_parser/feature_zh-CN.rb +0 -1951
- data/lib/cucumber/world/pending.rb +0 -22
- data/lib/cucumber/world.rb +0 -1
- data/setup.rb +0 -1585
- data/spec/cucumber/executor_spec.rb +0 -382
- data/spec/cucumber/formatters/html_formatter_spec.rb +0 -104
- data/spec/cucumber/formatters/pretty_formatter_spec.rb +0 -410
- data/spec/cucumber/formatters/progress_formatter_spec.rb +0 -81
- data/spec/cucumber/model/table_spec.rb +0 -32
- data/spec/cucumber/step_mother_spec.rb +0 -74
- data/spec/cucumber/tree/feature_spec.rb +0 -122
- data/spec/cucumber/tree/row_scenario_outline_spec.rb +0 -73
- data/spec/cucumber/tree/row_scenario_spec.rb +0 -55
- data/spec/cucumber/tree/row_step_outline_spec.rb +0 -38
- data/spec/cucumber/tree/scenario_outline_spec.rb +0 -50
- data/spec/cucumber/tree/scenario_spec.rb +0 -134
- data/spec/cucumber/tree/step_outline_spec.rb +0 -17
- data/spec/cucumber/tree/step_spec.rb +0 -59
- data/spec/cucumber/treetop_parser/feature_parser_spec.rb +0 -120
data/History.txt
CHANGED
@@ -1,4 +1,75 @@
|
|
1
|
-
== 0.
|
1
|
+
== Git (ast - future 0.2)
|
2
|
+
|
3
|
+
This is a major rewrite of Cucumber's internals. The rewrite was done to address technical
|
4
|
+
debt and to have a codebase 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. You
|
6
|
+
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.
|
14
|
+
|
15
|
+
There are some exciting new feaqtures, so upgrading is not in vain. Tagging, Autoformatting,
|
16
|
+
Auto aliasing of keywords in all languages, much better Ruby 1.9 support and improved output
|
17
|
+
for multiline arguments should make the upgrade worthwhile.
|
18
|
+
|
19
|
+
This version also brings Cucumber even closer to Java. Although it has been possible to
|
20
|
+
run Cucumber on JRuby since v0.1.11, it has required that step definitions be defined
|
21
|
+
in Ruby code. This has been a barrier for many Java developers who don't know Ruby.
|
22
|
+
|
23
|
+
With this version you can write step definitions in pure Java code! Java step definitions
|
24
|
+
are implemented simply by subclassing org.jbehave.scenario.steps.Steps. Example:
|
25
|
+
|
26
|
+
package super.duper;
|
27
|
+
|
28
|
+
public class MyJavaSteps extends Steps {
|
29
|
+
@Given("I have %count cucumbers in my belly")
|
30
|
+
public void cucumbersInTheBelly(int count) {
|
31
|
+
// talk to the Belly class
|
32
|
+
}
|
33
|
+
|
34
|
+
@Then("I should not be hungry for %n hours")
|
35
|
+
public void shouldNotBeHungry(int n) {
|
36
|
+
// Make assertions with JUnit or Hamcrest
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
The only Ruby code you have to write is a little wiring in your env.rb file:
|
41
|
+
|
42
|
+
require 'cucumber/jbehave'
|
43
|
+
JBehave(super.duper.MyJavaSteps.new)
|
44
|
+
|
45
|
+
You might be wondering what this brings over just using the whole JBehave tool
|
46
|
+
standalone. Well, it gives you access to the Gherkin language in your features,
|
47
|
+
which is a richer DSL than JBehave's language. -Over 20 spoken languages, Tables,
|
48
|
+
Scenario Outlines, the rich command line, the nice output format and everything
|
49
|
+
pure Ruby users have been enjoying for a while.
|
50
|
+
|
51
|
+
== Bugfixes
|
52
|
+
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)
|
53
|
+
|
54
|
+
=== New features
|
55
|
+
* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files.
|
56
|
+
* New --strict option exits with an error code if there are undefined or pending steps.
|
57
|
+
* Filtering with --tags. If you put @various @tags on your features and scenarios, --tags lets you run a subset of them.
|
58
|
+
* Given, When, Then are automatically aliased to current language.
|
59
|
+
Ruby 1.8 doesn't allow non-ascii method names in the source, so unless you're on 1.9
|
60
|
+
you will have to use Given, When, Then or set up your own aliases. Here is Norwegian:
|
61
|
+
Cucumber.alias_steps(%w{Naar Saa}) # Når, Så already aliased, but can't be called.
|
62
|
+
* Run cucumber --language help to see all supported languages.
|
63
|
+
* Run cucumber --language LANG help to see keywords for a given language.
|
64
|
+
* Multiline arguments (tables and """ strings) are printed in the output
|
65
|
+
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime.
|
66
|
+
|
67
|
+
=== Removed features
|
68
|
+
* "GivenScenario" is gone. Instead you can use "Background" or call Steps from Steps.
|
69
|
+
* "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead.
|
70
|
+
* Pure Ruby features are no longer supported
|
71
|
+
|
72
|
+
== 0.1.16.x (Master)
|
2
73
|
|
3
74
|
Bugfix release.
|
4
75
|
|
@@ -17,6 +88,7 @@ to this:
|
|
17
88
|
* Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp)
|
18
89
|
|
19
90
|
== Bugfixes
|
91
|
+
* Flush output in HTML formatter since JRuby doesnt do it automatically (Diego Carrion)
|
20
92
|
* Better handling of ARGV (#169 David Chelimsky)
|
21
93
|
* Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy)
|
22
94
|
|
@@ -26,6 +98,8 @@ This is a small bugfix release. The most notable improvement is compatibility wi
|
|
26
98
|
upgrade both Cucumber and Webrat gems.
|
27
99
|
|
28
100
|
=== New features
|
101
|
+
* Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk)
|
102
|
+
* Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy)
|
29
103
|
* 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)
|
30
104
|
* Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp)
|
31
105
|
|
data/Manifest.txt
CHANGED
@@ -7,9 +7,6 @@ bin/cucumber
|
|
7
7
|
config/hoe.rb
|
8
8
|
config/requirements.rb
|
9
9
|
cucumber.yml
|
10
|
-
examples/calculator_ruby_features/Rakefile
|
11
|
-
examples/calculator_ruby_features/features/addition.rb
|
12
|
-
examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb
|
13
10
|
examples/cs/README.textile
|
14
11
|
examples/cs/Rakefile
|
15
12
|
examples/cs/compile.bat
|
@@ -106,10 +103,17 @@ examples/java/features/hello.feature
|
|
106
103
|
examples/java/features/step_definitons/hello_steps.rb
|
107
104
|
examples/java/features/step_definitons/tree_steps.rb
|
108
105
|
examples/java/features/tree.feature
|
106
|
+
examples/jbehave/README.textile
|
107
|
+
examples/jbehave/features/support/env.rb
|
108
|
+
examples/jbehave/features/trading.feature
|
109
|
+
examples/jbehave/pom.xml
|
110
|
+
examples/jbehave/target/maven-archiver/pom.properties
|
109
111
|
examples/selenium/Rakefile
|
110
112
|
examples/selenium/features/search.feature
|
111
113
|
examples/selenium/features/step_definitons/stories_steps.rb
|
112
114
|
examples/self_test/README.textile
|
115
|
+
examples/self_test/features/call_undefined_step_from_step_def.feature
|
116
|
+
examples/self_test/features/lots_of_undefined.feature
|
113
117
|
examples/self_test/features/outline_sample.feature
|
114
118
|
examples/self_test/features/sample.feature
|
115
119
|
examples/self_test/features/step_definitions/sample_steps.rb
|
@@ -131,6 +135,7 @@ examples/watir/features/step_definitons/search_steps.rb
|
|
131
135
|
examples/watir/features/support/env.rb
|
132
136
|
features/cucumber_cli.feature
|
133
137
|
features/cucumber_cli_outlines.feature
|
138
|
+
features/report_called_undefined_steps.feature
|
134
139
|
features/step_definitions/cucumber_steps.rb
|
135
140
|
features/step_definitions/extra_steps.rb
|
136
141
|
features/support/env.rb
|
@@ -141,7 +146,6 @@ gem_tasks/fix_cr_lf.rake
|
|
141
146
|
gem_tasks/flog.rake
|
142
147
|
gem_tasks/gemspec.rake
|
143
148
|
gem_tasks/rspec.rake
|
144
|
-
gem_tasks/treetop.rake
|
145
149
|
gem_tasks/yard.rake
|
146
150
|
lib/autotest/cucumber.rb
|
147
151
|
lib/autotest/cucumber_mixin.rb
|
@@ -150,70 +154,58 @@ lib/autotest/cucumber_rails_rspec.rb
|
|
150
154
|
lib/autotest/cucumber_rspec.rb
|
151
155
|
lib/autotest/discover.rb
|
152
156
|
lib/cucumber.rb
|
157
|
+
lib/cucumber/ast.rb
|
158
|
+
lib/cucumber/ast/comment.rb
|
159
|
+
lib/cucumber/ast/examples.rb
|
160
|
+
lib/cucumber/ast/feature.rb
|
161
|
+
lib/cucumber/ast/features.rb
|
162
|
+
lib/cucumber/ast/filter.rb
|
163
|
+
lib/cucumber/ast/outline_table.rb
|
164
|
+
lib/cucumber/ast/py_string.rb
|
165
|
+
lib/cucumber/ast/scenario.rb
|
166
|
+
lib/cucumber/ast/scenario_outline.rb
|
167
|
+
lib/cucumber/ast/step.rb
|
168
|
+
lib/cucumber/ast/table.rb
|
169
|
+
lib/cucumber/ast/tags.rb
|
170
|
+
lib/cucumber/ast/visitor.rb
|
153
171
|
lib/cucumber/broadcaster.rb
|
154
172
|
lib/cucumber/cli.rb
|
155
173
|
lib/cucumber/core_ext/exception.rb
|
174
|
+
lib/cucumber/core_ext/instance_exec.rb
|
156
175
|
lib/cucumber/core_ext/proc.rb
|
157
176
|
lib/cucumber/core_ext/string.rb
|
158
|
-
lib/cucumber/
|
159
|
-
lib/cucumber/
|
160
|
-
lib/cucumber/
|
177
|
+
lib/cucumber/formatter.rb
|
178
|
+
lib/cucumber/formatter/ansicolor.rb
|
179
|
+
lib/cucumber/formatter/console.rb
|
180
|
+
lib/cucumber/formatter/pretty.rb
|
181
|
+
lib/cucumber/formatter/profile.rb
|
182
|
+
lib/cucumber/formatter/progress.rb
|
183
|
+
lib/cucumber/formatter/rerun.rb
|
161
184
|
lib/cucumber/formatters/autotest_formatter.rb
|
162
185
|
lib/cucumber/formatters/cucumber.css
|
163
186
|
lib/cucumber/formatters/cucumber.js
|
164
187
|
lib/cucumber/formatters/html_formatter.rb
|
165
188
|
lib/cucumber/formatters/jquery.js
|
166
189
|
lib/cucumber/formatters/pretty_formatter.rb
|
167
|
-
lib/cucumber/formatters/profile_formatter.rb
|
168
|
-
lib/cucumber/formatters/progress_formatter.rb
|
169
190
|
lib/cucumber/formatters/unicode.rb
|
191
|
+
lib/cucumber/jbehave.rb
|
170
192
|
lib/cucumber/languages.yml
|
171
|
-
lib/cucumber/
|
172
|
-
lib/cucumber/
|
193
|
+
lib/cucumber/parser.rb
|
194
|
+
lib/cucumber/parser/basic.rb
|
195
|
+
lib/cucumber/parser/feature.rb
|
196
|
+
lib/cucumber/parser/feature.tt
|
197
|
+
lib/cucumber/parser/file_parser.rb
|
198
|
+
lib/cucumber/parser/i18n.tt
|
199
|
+
lib/cucumber/parser/treetop_ext.rb
|
173
200
|
lib/cucumber/platform.rb
|
174
201
|
lib/cucumber/rails/rspec.rb
|
175
202
|
lib/cucumber/rails/world.rb
|
176
203
|
lib/cucumber/rake/task.rb
|
177
|
-
lib/cucumber/
|
204
|
+
lib/cucumber/step_definition.rb
|
178
205
|
lib/cucumber/step_mother.rb
|
179
|
-
lib/cucumber/tree.rb
|
180
|
-
lib/cucumber/tree/feature.rb
|
181
|
-
lib/cucumber/tree/features.rb
|
182
|
-
lib/cucumber/tree/given_scenario.rb
|
183
|
-
lib/cucumber/tree/scenario.rb
|
184
|
-
lib/cucumber/tree/step.rb
|
185
|
-
lib/cucumber/tree/table.rb
|
186
|
-
lib/cucumber/tree/top_down_visitor.rb
|
187
|
-
lib/cucumber/treetop_parser/feature.treetop.erb
|
188
|
-
lib/cucumber/treetop_parser/feature_ar.rb
|
189
|
-
lib/cucumber/treetop_parser/feature_cy.rb
|
190
|
-
lib/cucumber/treetop_parser/feature_da.rb
|
191
|
-
lib/cucumber/treetop_parser/feature_de.rb
|
192
|
-
lib/cucumber/treetop_parser/feature_en-lol.rb
|
193
|
-
lib/cucumber/treetop_parser/feature_en-tx.rb
|
194
|
-
lib/cucumber/treetop_parser/feature_en.rb
|
195
|
-
lib/cucumber/treetop_parser/feature_es.rb
|
196
|
-
lib/cucumber/treetop_parser/feature_et.rb
|
197
206
|
lib/cucumber/treetop_parser/feature_fi.rb
|
198
|
-
lib/cucumber/treetop_parser/feature_fr.rb
|
199
|
-
lib/cucumber/treetop_parser/feature_id.rb
|
200
|
-
lib/cucumber/treetop_parser/feature_it.rb
|
201
|
-
lib/cucumber/treetop_parser/feature_ja.rb
|
202
|
-
lib/cucumber/treetop_parser/feature_ko.rb
|
203
|
-
lib/cucumber/treetop_parser/feature_lt.rb
|
204
|
-
lib/cucumber/treetop_parser/feature_nl.rb
|
205
|
-
lib/cucumber/treetop_parser/feature_no.rb
|
206
|
-
lib/cucumber/treetop_parser/feature_parser.rb
|
207
|
-
lib/cucumber/treetop_parser/feature_pl.rb
|
208
|
-
lib/cucumber/treetop_parser/feature_pt.rb
|
209
|
-
lib/cucumber/treetop_parser/feature_ro.rb
|
210
|
-
lib/cucumber/treetop_parser/feature_ro2.rb
|
211
|
-
lib/cucumber/treetop_parser/feature_ru.rb
|
212
|
-
lib/cucumber/treetop_parser/feature_se.rb
|
213
|
-
lib/cucumber/treetop_parser/feature_zh-CN.rb
|
214
207
|
lib/cucumber/version.rb
|
215
|
-
|
216
|
-
lib/cucumber/world/pending.rb
|
208
|
+
pretty.txt
|
217
209
|
rails_generators/cucumber/USAGE
|
218
210
|
rails_generators/cucumber/cucumber_generator.rb
|
219
211
|
rails_generators/cucumber/templates/cucumber
|
@@ -225,37 +217,37 @@ rails_generators/feature/USAGE
|
|
225
217
|
rails_generators/feature/feature_generator.rb
|
226
218
|
rails_generators/feature/templates/feature.erb
|
227
219
|
rails_generators/feature/templates/steps.erb
|
228
|
-
|
220
|
+
spec/cucumber/ast/feature_factory.rb
|
221
|
+
spec/cucumber/ast/feature_spec.rb
|
222
|
+
spec/cucumber/ast/py_string_spec.rb
|
223
|
+
spec/cucumber/ast/scenario_outline_spec.rb
|
224
|
+
spec/cucumber/ast/scenario_spec.rb
|
225
|
+
spec/cucumber/ast/step_spec.rb
|
226
|
+
spec/cucumber/ast/table_spec.rb
|
229
227
|
spec/cucumber/broadcaster_spec.rb
|
230
228
|
spec/cucumber/cli_spec.rb
|
231
229
|
spec/cucumber/core_ext/proc_spec.rb
|
232
230
|
spec/cucumber/core_ext/string_spec.rb
|
233
|
-
spec/cucumber/
|
234
|
-
spec/cucumber/
|
231
|
+
spec/cucumber/formatter/ansicolor_spec.rb
|
232
|
+
spec/cucumber/formatter/html/cucumber.css
|
233
|
+
spec/cucumber/formatter/html/cucumber.js
|
234
|
+
spec/cucumber/formatter/html/index.html
|
235
|
+
spec/cucumber/formatter/html/jquery-1.3.min.js
|
236
|
+
spec/cucumber/formatter/html/jquery.uitableedit.js
|
235
237
|
spec/cucumber/formatters/autotest_formatter_spec.rb
|
236
238
|
spec/cucumber/formatters/features.html
|
237
|
-
spec/cucumber/formatters/html_formatter_spec.rb
|
238
|
-
spec/cucumber/formatters/pretty_formatter_spec.rb
|
239
239
|
spec/cucumber/formatters/profile_formatter_spec.rb
|
240
|
-
spec/cucumber/
|
241
|
-
spec/cucumber/
|
240
|
+
spec/cucumber/parser/feature_parser_spec.rb
|
241
|
+
spec/cucumber/parser/table_parser_spec.rb
|
242
242
|
spec/cucumber/rails/stubs/mini_rails.rb
|
243
243
|
spec/cucumber/rails/stubs/test_help.rb
|
244
244
|
spec/cucumber/rails/world_spec.rb
|
245
245
|
spec/cucumber/sell_cucumbers.feature
|
246
|
-
spec/cucumber/
|
247
|
-
spec/cucumber/
|
248
|
-
spec/cucumber/tree/row_scenario_outline_spec.rb
|
249
|
-
spec/cucumber/tree/row_scenario_spec.rb
|
250
|
-
spec/cucumber/tree/row_step_outline_spec.rb
|
251
|
-
spec/cucumber/tree/scenario_outline_spec.rb
|
252
|
-
spec/cucumber/tree/scenario_spec.rb
|
253
|
-
spec/cucumber/tree/step_outline_spec.rb
|
254
|
-
spec/cucumber/tree/step_spec.rb
|
246
|
+
spec/cucumber/step_definition_spec.rb
|
247
|
+
spec/cucumber/step_mom_spec.rb
|
255
248
|
spec/cucumber/treetop_parser/empty_feature.feature
|
256
249
|
spec/cucumber/treetop_parser/empty_scenario.feature
|
257
250
|
spec/cucumber/treetop_parser/empty_scenario_outline.feature
|
258
|
-
spec/cucumber/treetop_parser/feature_parser_spec.rb
|
259
251
|
spec/cucumber/treetop_parser/fit_scenario.feature
|
260
252
|
spec/cucumber/treetop_parser/given_scenario.feature
|
261
253
|
spec/cucumber/treetop_parser/invalid_scenario_outlines.feature
|
@@ -265,6 +257,7 @@ spec/cucumber/treetop_parser/scenario_outline.feature
|
|
265
257
|
spec/cucumber/treetop_parser/spaces.feature
|
266
258
|
spec/cucumber/treetop_parser/test_dos.feature
|
267
259
|
spec/cucumber/treetop_parser/with_comments.feature
|
260
|
+
spec/cucumber/treetop_parser/with_tags.feature
|
268
261
|
spec/cucumber/world/pending_spec.rb
|
269
262
|
spec/spec.opts
|
270
263
|
spec/spec_helper.rb
|
data/examples/i18n/Rakefile
CHANGED
@@ -11,7 +11,7 @@ task :i18n do
|
|
11
11
|
else
|
12
12
|
STDERR.puts %{
|
13
13
|
!!!!!
|
14
|
-
!!!!! SKIPPING #{lang} (
|
14
|
+
!!!!! SKIPPING #{lang} (Still needs some work)
|
15
15
|
!!!!!
|
16
16
|
}
|
17
17
|
end
|
@@ -23,10 +23,10 @@ def supported?(lang)
|
|
23
23
|
if RUBY_VERSION =~ /^1\.9/
|
24
24
|
!%w{ar ja ko zh-CN}.index(lang)
|
25
25
|
else
|
26
|
-
|
26
|
+
!%w{ar ja ko}.index(lang)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def rake(args)
|
31
|
-
ruby(
|
31
|
+
ruby($0, args) rescue nil
|
32
32
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
5
|
require 'calculator'
|
6
6
|
|
@@ -26,8 +26,3 @@ end
|
|
26
26
|
Then /يجب ان يكون (\w*)/ do |class_name|
|
27
27
|
@result.class.name.should == class_name
|
28
28
|
end
|
29
|
-
|
30
|
-
Given /it should rain on (\w+)/ do |day|
|
31
|
-
@calc.rain?(day).should == true
|
32
|
-
end
|
33
|
-
|
@@ -3,13 +3,13 @@ Funktionalität: Addition
|
|
3
3
|
möchte ich als Matheidiot
|
4
4
|
die Summe zweier Zahlen gesagt bekommen
|
5
5
|
|
6
|
-
|
7
|
-
Gegeben sei ich habe
|
8
|
-
Und ich habe
|
9
|
-
Wenn ich
|
10
|
-
Dann sollte das Ergebniss auf dem Bildschirm
|
6
|
+
Szenariogrundriss: Zwei Zahlen hinzufügen
|
7
|
+
Gegeben sei ich habe <Eingabe_1> in den Taschenrechner eingegeben
|
8
|
+
Und ich habe <Eingabe_2> in den Taschenrechner eingegeben
|
9
|
+
Wenn ich <Knopf> drücke
|
10
|
+
Dann sollte das Ergebniss auf dem Bildschirm <Ausgabe> sein
|
11
11
|
|
12
|
-
|
12
|
+
Beispiele:
|
13
13
|
| Eingabe_1 | Eingabe_2 | Knopf | Ausgabe |
|
14
14
|
| 20 | 30 | add | 50 |
|
15
15
|
| 2 | 5 | add | 7 |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
5
|
require 'calculator'
|
6
6
|
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
After do
|
12
12
|
end
|
13
13
|
|
14
|
-
Given
|
14
|
+
Given /ich habe (\d+) in den Taschenrechner eingegeben/ do |n|
|
15
15
|
@calc.push n.to_i
|
16
16
|
end
|
17
17
|
|
@@ -3,13 +3,13 @@ Feature: Addition
|
|
3
3
|
As a math idiot
|
4
4
|
I want to be told the sum of two numbers
|
5
5
|
|
6
|
-
Scenario: Add two numbers
|
7
|
-
Given I have entered
|
8
|
-
And I have entered
|
9
|
-
When I press
|
10
|
-
Then the result should be
|
6
|
+
Scenario Outline: Add two numbers
|
7
|
+
Given I have entered <input_1> into the calculator
|
8
|
+
And I have entered <input_2> into the calculator
|
9
|
+
When I press <button>
|
10
|
+
Then the result should be <output> on the screen
|
11
11
|
|
12
|
-
|
12
|
+
Examples:
|
13
13
|
| input_1 | input_2 | button | output |
|
14
14
|
| 20 | 30 | add | 50 |
|
15
15
|
| 2 | 5 | add | 7 |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
5
|
require 'calculator'
|
6
6
|
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
After do
|
12
12
|
end
|
13
13
|
|
14
|
-
Given
|
14
|
+
Given /I have entered (\d+) into the calculator/ do |n|
|
15
15
|
@calc.push n.to_i
|
16
16
|
end
|
17
17
|
|
@@ -3,13 +3,14 @@ Omadus: Liitmine
|
|
3
3
|
Olles matemaatika-puupea
|
4
4
|
Tahan et mulle öeldaks kahe numbri summa
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
# Someone please translate this in languages.yml
|
7
|
+
Scenario Outline: Liida kaks numbrit
|
8
|
+
Eeldades et olen sisestanud kalkulaatorisse numbri <input_1>
|
9
|
+
Ja olen sisestanud kalkulaatorisse numbri <input_2>
|
10
|
+
Kui ma vajutan <button>
|
11
|
+
Siis vastuseks peab ekraanil kuvatama <output>
|
11
12
|
|
12
|
-
|
13
|
+
Examples:
|
13
14
|
| input_1 | input_2 | button | output |
|
14
15
|
| 20 | 30 | liida | 50 |
|
15
16
|
| 2 | 5 | liida | 7 |
|
@@ -3,13 +3,13 @@ Ominaisuus: Yhteenlasku
|
|
3
3
|
Koska olen laskutaidoton
|
4
4
|
Haluan että yhteenlaskut lasketaan puolestani
|
5
5
|
|
6
|
-
|
6
|
+
Tapausaihio: Kahden luvun summa
|
7
7
|
Oletetaan että olen syöttänyt laskimeen luvun 50
|
8
8
|
Ja että olen syöttänyt laskimeen luvun 70
|
9
9
|
Kun painan "summaa"
|
10
10
|
Niin laskimen ruudulla pitäisi näkyä tulos 120
|
11
11
|
|
12
|
-
|
12
|
+
Tapaukset:
|
13
13
|
| luku_1 | luku_2 | nappi | tulos |
|
14
14
|
| 20 | 30 | summaa | 50 |
|
15
15
|
| 2 | 5 | summaa | 7 |
|
@@ -3,13 +3,13 @@ Fonctionnalité: Addition
|
|
3
3
|
En tant que trader
|
4
4
|
Je souhaite pouvoir additionner 2 chiffres
|
5
5
|
|
6
|
-
Scénario: Addition de produits dérivés
|
6
|
+
Scénario esquisse: Addition de produits dérivés
|
7
7
|
Etant donné que je tape 2
|
8
8
|
Et que je tape 1
|
9
9
|
Lorsque je tape additionner
|
10
10
|
Alors le résultat doit être 3
|
11
11
|
|
12
|
-
|
12
|
+
Exemples:
|
13
13
|
| a | b | sum |
|
14
14
|
| 2 | 2 | 4 |
|
15
15
|
| 2 | 3 | 5 |
|
@@ -3,13 +3,13 @@ Fitur: Addition
|
|
3
3
|
Sebagai orang yang gak bisa matematika
|
4
4
|
Aku ingin diberi tahu jumlah dua bilangan
|
5
5
|
|
6
|
-
Skenario: Menjumlahkan dua bilangan
|
7
|
-
Dengan aku sudah masukkan
|
8
|
-
Dan aku sudah masukkan
|
9
|
-
Ketika aku tekan
|
10
|
-
Maka hasilnya harus
|
6
|
+
Skenario konsep: Menjumlahkan dua bilangan
|
7
|
+
Dengan aku sudah masukkan <input_1> ke kalkulator
|
8
|
+
Dan aku sudah masukkan <input_2> ke kalkulator
|
9
|
+
Ketika aku tekan <button>
|
10
|
+
Maka hasilnya harus <output> di layar
|
11
11
|
|
12
|
-
Contoh
|
12
|
+
Contoh:
|
13
13
|
| input_1 | input_2 | button | output |
|
14
14
|
| 20 | 30 | add | 50 |
|
15
15
|
| 2 | 5 | add | 7 |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
5
|
require 'calculator'
|
6
6
|
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
After do
|
12
12
|
end
|
13
13
|
|
14
|
-
Given
|
14
|
+
Given /aku sudah masukkan (\d+) ke kalkulator/ do |n|
|
15
15
|
@calc.push n.to_i
|
16
16
|
end
|
17
17
|
|
@@ -1,8 +1,7 @@
|
|
1
|
-
# encoding:
|
1
|
+
# encoding: Shift_JIS
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
|
-
$KCODE = 'e'
|
6
5
|
require 'calculator'
|
7
6
|
|
8
7
|
Before do
|
@@ -3,13 +3,14 @@ Sąvybė: Sudėtis
|
|
3
3
|
Kaip matematinis idiotas
|
4
4
|
Aš noriu, kad man pasakytų dviejų skaičių sumą
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
# Someone please translate this in languages.yml please
|
7
|
+
Scenario Outline: dviejų skaičių sudėtis
|
8
|
+
Duota aš įvedžiau <įvestis_1> į skaičiuotuvą
|
9
|
+
Ir aš įvedžiau <įvestis_2> į skaičiuotuvą
|
10
|
+
Kai aš paspaudžiu "<mygtukas>"
|
11
|
+
Tada rezultatas ekrane turi būti <išvestis>
|
11
12
|
|
12
|
-
|
13
|
+
Pavyzdžių
|
13
14
|
| įvestis_1 | įvestis_2 | mygtukas | išvestis |
|
14
15
|
| 20 | 30 | add | 50 |
|
15
16
|
| 2 | 5 | add | 7 |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
4
|
require 'cucumber/formatters/unicode'
|
5
5
|
require 'calculator'
|
6
6
|
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
After do
|
12
12
|
end
|
13
13
|
|
14
|
-
Given
|
14
|
+
Given /aš įvedžiau (\d+) į skaičiuotuvą/ do |n|
|
15
15
|
@calc.push n.to_i
|
16
16
|
end
|
17
17
|
|