aslakhellesoy-cucumber 0.1.5 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. data/History.txt +228 -0
  2. data/License.txt +20 -0
  3. data/Manifest.txt +226 -0
  4. data/README.txt +41 -0
  5. data/Rakefile +9 -0
  6. data/TODO.txt +26 -0
  7. data/bin/cucumber +5 -0
  8. data/config/hoe.rb +69 -0
  9. data/config/requirements.rb +15 -0
  10. data/cucumber.yml +1 -0
  11. data/examples/calculator_ruby_features/Rakefile +6 -0
  12. data/examples/calculator_ruby_features/features/addition.rb +23 -0
  13. data/examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb +43 -0
  14. data/examples/cs/README.textile +22 -0
  15. data/examples/cs/Rakefile +12 -0
  16. data/examples/cs/features/hello.feature +11 -0
  17. data/examples/cs/features/step_definitons/hello_steps.rb +25 -0
  18. data/examples/cs/features/step_definitons/tree_steps.rb +14 -0
  19. data/examples/cs/features/tree.feature +9 -0
  20. data/examples/cs/src/Hello.cs +18 -0
  21. data/examples/dos_line_endings/Rakefile +6 -0
  22. data/examples/dos_line_endings/features/dos_line_endings.feature +9 -0
  23. data/examples/i18n/README.textile +18 -0
  24. data/examples/i18n/Rakefile +16 -0
  25. data/examples/i18n/ar/Rakefile +6 -0
  26. data/examples/i18n/ar/features/addition.feature +17 -0
  27. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +31 -0
  28. data/examples/i18n/ar/lib/calculator.rb +10 -0
  29. data/examples/i18n/da/Rakefile +6 -0
  30. data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +22 -0
  31. data/examples/i18n/da/features/summering.feature +17 -0
  32. data/examples/i18n/da/lib/kalkulator.rb +11 -0
  33. data/examples/i18n/en/Rakefile +5 -0
  34. data/examples/i18n/en/features/addition.feature +17 -0
  35. data/examples/i18n/en/features/division.feature +10 -0
  36. data/examples/i18n/en/features/step_definitons/calculator_steps.rb +31 -0
  37. data/examples/i18n/en/lib/calculator.rb +14 -0
  38. data/examples/i18n/es/Rakefile +6 -0
  39. data/examples/i18n/es/features/adicion.feature +17 -0
  40. data/examples/i18n/es/features/step_definitons/calculador_steps.rb +22 -0
  41. data/examples/i18n/es/lib/calculador.rb +11 -0
  42. data/examples/i18n/et/Rakefile +6 -0
  43. data/examples/i18n/et/features/liitmine.feature +17 -0
  44. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +26 -0
  45. data/examples/i18n/et/lib/kalkulaator.rb +10 -0
  46. data/examples/i18n/fr/Rakefile +6 -0
  47. data/examples/i18n/fr/features/addition.feature +13 -0
  48. data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +22 -0
  49. data/examples/i18n/fr/lib/calculatrice.rb +10 -0
  50. data/examples/i18n/id/Rakefile +6 -0
  51. data/examples/i18n/id/features/addition.feature +17 -0
  52. data/examples/i18n/id/features/division.feature +10 -0
  53. data/examples/i18n/id/features/step_definitons/calculator_steps.rb +31 -0
  54. data/examples/i18n/id/lib/calculator.rb +14 -0
  55. data/examples/i18n/it/Rakefile +6 -0
  56. data/examples/i18n/it/features/somma.feature +10 -0
  57. data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +22 -0
  58. data/examples/i18n/it/lib/calcolatrice.rb +11 -0
  59. data/examples/i18n/ja/README.txt +5 -0
  60. data/examples/i18n/ja/Rakefile +6 -0
  61. data/examples/i18n/ja/features/addition.feature +17 -0
  62. data/examples/i18n/ja/features/division.feature +10 -0
  63. data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +30 -0
  64. data/examples/i18n/ja/lib/calculator.rb +14 -0
  65. data/examples/i18n/no/Rakefile +6 -0
  66. data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +22 -0
  67. data/examples/i18n/no/features/summering.feature +17 -0
  68. data/examples/i18n/no/lib/kalkulator.rb +11 -0
  69. data/examples/i18n/pt/Rakefile +6 -0
  70. data/examples/i18n/pt/features/adicao.feature +10 -0
  71. data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +22 -0
  72. data/examples/i18n/pt/lib/calculadora.rb +10 -0
  73. data/examples/i18n/ro/Rakefile +6 -0
  74. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +22 -0
  75. data/examples/i18n/ro/features/suma.feature +10 -0
  76. data/examples/i18n/ro/lib/calculator.rb +11 -0
  77. data/examples/i18n/se/Rakefile +6 -0
  78. data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +22 -0
  79. data/examples/i18n/se/features/summering.feature +17 -0
  80. data/examples/i18n/se/lib/kalkulator.rb +11 -0
  81. data/examples/i18n/zh-CN/Rakefile +6 -0
  82. data/examples/i18n/zh-CN/features/addition.feature +17 -0
  83. data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +24 -0
  84. data/examples/i18n/zh-CN/lib/calculator.rb +10 -0
  85. data/examples/java/README.textile +22 -0
  86. data/examples/java/Rakefile +12 -0
  87. data/examples/java/features/hello.feature +11 -0
  88. data/examples/java/features/step_definitons/hello_steps.rb +25 -0
  89. data/examples/java/features/step_definitons/tree_steps.rb +14 -0
  90. data/examples/java/features/tree.feature +9 -0
  91. data/examples/java/src/cucumber/demo/Hello.java +16 -0
  92. data/examples/selenium/Rakefile +6 -0
  93. data/examples/selenium/features/search.feature +9 -0
  94. data/examples/selenium/features/step_definitons/stories_steps.rb +41 -0
  95. data/examples/tickets/Rakefile +11 -0
  96. data/examples/tickets/cucumber.yml +2 -0
  97. data/examples/tickets/features/step_definitons/tickets_steps.rb +32 -0
  98. data/examples/tickets/features/tickets.feature +22 -0
  99. data/examples/watir/Rakefile +6 -0
  100. data/examples/watir/features/search.feature +9 -0
  101. data/examples/watir/features/step_definitons/stories_steps.rb +51 -0
  102. data/features/see_features.feature +8 -0
  103. data/features/steps/features_steps.rb +9 -0
  104. data/gem_tasks/deployment.rake +34 -0
  105. data/gem_tasks/environment.rake +7 -0
  106. data/gem_tasks/features.rake +6 -0
  107. data/gem_tasks/fix_cr_lf.rake +10 -0
  108. data/gem_tasks/flog.rake +4 -0
  109. data/gem_tasks/gemspec.rake +6 -0
  110. data/gem_tasks/rspec.rake +21 -0
  111. data/gem_tasks/treetop.rake +41 -0
  112. data/lib/autotest/cucumber.rb +6 -0
  113. data/lib/autotest/cucumber_mixin.rb +109 -0
  114. data/lib/autotest/cucumber_rails.rb +6 -0
  115. data/lib/autotest/cucumber_rails_rspec.rb +6 -0
  116. data/lib/autotest/cucumber_rspec.rb +6 -0
  117. data/lib/autotest/discover.rb +9 -0
  118. data/lib/cucumber.rb +39 -0
  119. data/lib/cucumber/broadcaster.rb +20 -0
  120. data/lib/cucumber/cli.rb +269 -0
  121. data/lib/cucumber/core_ext/proc.rb +54 -0
  122. data/lib/cucumber/core_ext/string.rb +22 -0
  123. data/lib/cucumber/executor.rb +170 -0
  124. data/lib/cucumber/formatters.rb +1 -0
  125. data/lib/cucumber/formatters/ansicolor.rb +111 -0
  126. data/lib/cucumber/formatters/autotest_formatter.rb +23 -0
  127. data/lib/cucumber/formatters/cucumber.css +132 -0
  128. data/lib/cucumber/formatters/cucumber.js +11 -0
  129. data/lib/cucumber/formatters/html_formatter.rb +128 -0
  130. data/lib/cucumber/formatters/jquery.js +32 -0
  131. data/lib/cucumber/formatters/pretty_formatter.rb +234 -0
  132. data/lib/cucumber/formatters/profile_formatter.rb +92 -0
  133. data/lib/cucumber/formatters/progress_formatter.rb +58 -0
  134. data/lib/cucumber/languages.yml +235 -0
  135. data/lib/cucumber/model.rb +1 -0
  136. data/lib/cucumber/model/table.rb +28 -0
  137. data/lib/cucumber/rails/rspec.rb +12 -0
  138. data/lib/cucumber/rails/world.rb +73 -0
  139. data/lib/cucumber/rake/task.rb +101 -0
  140. data/lib/cucumber/step_methods.rb +49 -0
  141. data/lib/cucumber/step_mother.rb +89 -0
  142. data/lib/cucumber/tree.rb +18 -0
  143. data/lib/cucumber/tree/feature.rb +61 -0
  144. data/lib/cucumber/tree/features.rb +21 -0
  145. data/lib/cucumber/tree/given_scenario.rb +13 -0
  146. data/lib/cucumber/tree/scenario.rb +158 -0
  147. data/lib/cucumber/tree/step.rb +134 -0
  148. data/lib/cucumber/tree/table.rb +26 -0
  149. data/lib/cucumber/tree/top_down_visitor.rb +23 -0
  150. data/lib/cucumber/treetop_parser/feature.treetop.erb +206 -0
  151. data/lib/cucumber/treetop_parser/feature_ar.rb +1591 -0
  152. data/lib/cucumber/treetop_parser/feature_cy.rb +1591 -0
  153. data/lib/cucumber/treetop_parser/feature_da.rb +1591 -0
  154. data/lib/cucumber/treetop_parser/feature_de.rb +1591 -0
  155. data/lib/cucumber/treetop_parser/feature_en-tx.rb +1591 -0
  156. data/lib/cucumber/treetop_parser/feature_en.rb +1591 -0
  157. data/lib/cucumber/treetop_parser/feature_es.rb +1591 -0
  158. data/lib/cucumber/treetop_parser/feature_et.rb +1591 -0
  159. data/lib/cucumber/treetop_parser/feature_fr.rb +1591 -0
  160. data/lib/cucumber/treetop_parser/feature_id.rb +1591 -0
  161. data/lib/cucumber/treetop_parser/feature_it.rb +1591 -0
  162. data/lib/cucumber/treetop_parser/feature_ja.rb +1591 -0
  163. data/lib/cucumber/treetop_parser/feature_nl.rb +1591 -0
  164. data/lib/cucumber/treetop_parser/feature_no.rb +1591 -0
  165. data/lib/cucumber/treetop_parser/feature_parser.rb +34 -0
  166. data/lib/cucumber/treetop_parser/feature_pl.rb +1591 -0
  167. data/lib/cucumber/treetop_parser/feature_pt.rb +1591 -0
  168. data/lib/cucumber/treetop_parser/feature_ro.rb +1591 -0
  169. data/lib/cucumber/treetop_parser/feature_ro2.rb +1591 -0
  170. data/lib/cucumber/treetop_parser/feature_ru.rb +1591 -0
  171. data/lib/cucumber/treetop_parser/feature_se.rb +1591 -0
  172. data/lib/cucumber/treetop_parser/feature_zh-CN.rb +1591 -0
  173. data/lib/cucumber/version.rb +9 -0
  174. data/rails_generators/cucumber/USAGE +11 -0
  175. data/rails_generators/cucumber/cucumber_generator.rb +30 -0
  176. data/rails_generators/cucumber/templates/cucumber +7 -0
  177. data/rails_generators/cucumber/templates/cucumber.rake +7 -0
  178. data/rails_generators/cucumber/templates/env.rb +8 -0
  179. data/rails_generators/cucumber/templates/webrat_steps.rb +46 -0
  180. data/rails_generators/feature/USAGE +12 -0
  181. data/rails_generators/feature/feature_generator.rb +16 -0
  182. data/rails_generators/feature/templates/feature.erb +28 -0
  183. data/rails_generators/feature/templates/steps.erb +22 -0
  184. data/script/console +10 -0
  185. data/script/console.cmd +1 -0
  186. data/script/destroy +14 -0
  187. data/script/destroy.cmd +1 -0
  188. data/script/generate +14 -0
  189. data/script/generate.cmd +1 -0
  190. data/script/txt2html +74 -0
  191. data/script/txt2html.cmd +1 -0
  192. data/setup.rb +1585 -0
  193. data/spec/cucumber/broadcaster_spec.rb +27 -0
  194. data/spec/cucumber/cli_spec.rb +242 -0
  195. data/spec/cucumber/core_ext/proc_spec.rb +45 -0
  196. data/spec/cucumber/core_ext/string_spec.rb +34 -0
  197. data/spec/cucumber/executor_spec.rb +222 -0
  198. data/spec/cucumber/formatters/ansicolor_spec.rb +35 -0
  199. data/spec/cucumber/formatters/autotest_formatter_spec.rb +26 -0
  200. data/spec/cucumber/formatters/features.html +269 -0
  201. data/spec/cucumber/formatters/html_formatter_spec.rb +74 -0
  202. data/spec/cucumber/formatters/pretty_formatter_spec.rb +204 -0
  203. data/spec/cucumber/formatters/profile_formatter_spec.rb +192 -0
  204. data/spec/cucumber/formatters/progress_formatter_spec.rb +65 -0
  205. data/spec/cucumber/model/table_spec.rb +20 -0
  206. data/spec/cucumber/rails/stubs/mini_rails.rb +17 -0
  207. data/spec/cucumber/rails/stubs/test_help.rb +1 -0
  208. data/spec/cucumber/rails/world_spec.rb +11 -0
  209. data/spec/cucumber/sell_cucumbers.feature +19 -0
  210. data/spec/cucumber/step_mother_spec.rb +74 -0
  211. data/spec/cucumber/tree/feature_spec.rb +12 -0
  212. data/spec/cucumber/tree/row_scenario_spec.rb +25 -0
  213. data/spec/cucumber/tree/scenario_spec.rb +76 -0
  214. data/spec/cucumber/tree/step_spec.rb +50 -0
  215. data/spec/cucumber/treetop_parser/empty_feature.feature +4 -0
  216. data/spec/cucumber/treetop_parser/empty_scenario.feature +9 -0
  217. data/spec/cucumber/treetop_parser/feature_parser_spec.rb +98 -0
  218. data/spec/cucumber/treetop_parser/fit_scenario.feature +8 -0
  219. data/spec/cucumber/treetop_parser/given_scenario.feature +9 -0
  220. data/spec/cucumber/treetop_parser/multiline_steps.feature +17 -0
  221. data/spec/cucumber/treetop_parser/multiple_tables.feature +29 -0
  222. data/spec/cucumber/treetop_parser/spaces.feature +10 -0
  223. data/spec/cucumber/treetop_parser/test_dos.feature +25 -0
  224. data/spec/cucumber/treetop_parser/with_comments.feature +10 -0
  225. data/spec/spec.opts +2 -0
  226. data/spec/spec_helper.rb +19 -0
  227. metadata +151 -35
@@ -0,0 +1,228 @@
1
+ == 0.1.10 (In Git)
2
+
3
+ Blurb
4
+
5
+ === New features
6
+ === Bugfixes
7
+ === Removed features
8
+
9
+ == 0.1.9
10
+
11
+ With this release Cucumber supports 19 (!) natural languages:
12
+
13
+ * Arabic
14
+ * Chinese Simplified
15
+ * Danish
16
+ * Dutch
17
+ * Estonian
18
+ * French
19
+ * German
20
+ * Italian
21
+ * Japanese
22
+ * Malay
23
+ * Norwegian
24
+ * Polish
25
+ * Portuguese
26
+ * Romanian
27
+ * Russian
28
+ * Spanish
29
+ * Swedish
30
+ * Texan
31
+ * Welsh
32
+
33
+ Thanks a lot to everyone who has contributed translations. If you don't see your language here, please
34
+ add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages
35
+
36
+ Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration
37
+ support and how multiline strings work in feature files:
38
+
39
+ # In your .feature file
40
+ Then I should see
41
+ """
42
+ A string
43
+ that "indents"
44
+ and spans
45
+ several lines
46
+
47
+ """
48
+
49
+ # In your steps.rb file
50
+ Then 'I should see' do |text|
51
+ text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n"
52
+ end
53
+
54
+ The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away
55
+ in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first
56
+ spaces removed too.
57
+
58
+ === New features
59
+ * Added --[no-]color option to force color on or off (Peter Jaros)
60
+ * Step definition without a block will be treated as pending (#64 Joseph Wilk)
61
+ * Added support for Welsh (improvements welcome) (Joseph Wilk)
62
+ * Added --quiet option to hide all development aid output when using Pretty formatter (#69 Joseph Wilk)
63
+ * Added --no-snippets option to hide snippets for pending steps when using Pretty formatter (#69 Joseph Wilk)
64
+ * Added error messages concerning cucumber.yml. (#70 Ben Mabey)
65
+ * Added Autotest support - work in progress... (Peter Jaros)
66
+ * Added new --exclude option (Bryan Helkamp)
67
+ * Added new --scenario option (Peter Jaros)
68
+ * Renamed common_webrat.rb to webrat_steps.rb (Ben Mabey, Aslak Hellesøy)
69
+ * Added new feature[:feature_path] task (Roman Gonzalez)
70
+ * Added support for Polish (Joseph Wilk)
71
+ * Support specifying multiple formatters and multiple outputs (#47 Joseph Wilk)
72
+ * Added support for Japanese. (Kakutani Shintaro)
73
+ * Added support for Texan (improvements welcome). (Aslak Hellesøy)
74
+
75
+ === Bugfixes
76
+ * Pending step snippets should escape special Regexp characters (#82 Joseph Wilk)
77
+ * Scenario without a body shouldn't show up as complete (#63 Josh Knowles)
78
+ * Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk)
79
+ * Fixed next_column_index not resetting after large tables (#60, Barry Mitchelson)
80
+ * The HTML formatter was rendering everything twice. Cannot invoke visit_feature on formatters in executor (#72 Joseph Wilk)
81
+ * Row Scenarios need to support pending? in order for the Profile formatter to work (Joseph Wilk)
82
+ * Snippets are not shown for steps which already have a step definition (#65 Joseph Wilk)
83
+ * Prevent feature/scenario/pending step comments from containing '//' when running features by specifying a directory with a trailing '/' (Joseph Wilk)
84
+ * Scenario tables need spacing after them (#59 Joseph Wilk)
85
+ * Support running scenario table rows when using --line argument (#55 Joseph Wilk)
86
+ * Don't load cucumber.yml unless it exists (Aslak Hellesøy)
87
+ * 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)
88
+
89
+ === Removed features
90
+
91
+
92
+ == 0.1.8 2008-10-18
93
+
94
+ This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL.
95
+ In previous releases it has been possible to use tables to define "more examples" of a scenario i
96
+ n a FIT-style column fixture kind of way. Now you can also use tables as arguments to steps.
97
+
98
+ Tables used to define more examples after a scenario must now be prefixed. In English it looks like this:
99
+
100
+ Feature: Addition
101
+ In order to avoid silly mistakes
102
+ As a math idiot
103
+ I want to be told the sum of two numbers
104
+
105
+ Scenario: Add two numbers
106
+ Given I have entered 50 into the calculator
107
+ And I have entered 70 into the calculator
108
+ When I press add
109
+ Then the result should be 120 on the screen
110
+ And the result class should be Fixnum
111
+
112
+ More Examples:
113
+ | input_1 | input_2 | button | output | class |
114
+ | 20 | 30 | add | 50 | Fixnum |
115
+ | 2 | 5 | add | 7 | Fixnum |
116
+ | 0 | 40 | add | 40 | Fixnum |
117
+
118
+ Languages that are not updated yet will have to use "More Examples" until we get the translations.
119
+
120
+ Tables can also be used as arguments to individual steps. In fact, steps now support a single argument
121
+ that can span several lines. This can be a table or a string.
122
+
123
+ Example:
124
+
125
+ Given the following people exist:
126
+ | name | email | phone |
127
+ | Aslak | aslak@email.com | 123 |
128
+ | Joe | joe@email.com | 234 |
129
+ | Bryan | bryan@email.org | 456 |
130
+ When I search for email.com
131
+ Then I should see:
132
+ | name | email | phone |
133
+ | Aslak | aslak@email.com | 123 |
134
+ | Joe | joe@email.com | 234 |
135
+ And I should see:
136
+ "Some text
137
+ on several lines"
138
+
139
+ The step definitions for such multiline steps must define an extra block argument for the argument:
140
+
141
+ Given /the following people exist:/ do |people_table|
142
+ # people_table is of type Cucumber::Model::Table
143
+ # See RDoc for more info
144
+ end
145
+
146
+ Then /I should see:/ do |string|
147
+ # string is a plain old ruby String with leading spaces on each line removed
148
+ end
149
+
150
+ === New features
151
+ * Added profile formatter. (#35, Joseph Wilk)
152
+ * Added support for Chinese Simplified. (Liming Lian)
153
+ * Added support for Dutch. (Sjoerd Tieleman)
154
+ * Multiline steps are now supported. (#4, Aslak Hellesøy)
155
+ * Tables used to define more examples for a scenario must be prefixed "More Examples" (see languages.yml for other languages)
156
+ * Show the file and line number for scenarios as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
157
+ * Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
158
+ * Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
159
+
160
+ === Bugfixes
161
+ * Fixed speling errors in Spanish (Daniel Cadenas)
162
+ * ActionMailer delivery_method should not be set to test (#41, Luke Melia)
163
+ * Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky)
164
+ * Support comments above the first scenario (#31, Aslak Hellesøy)
165
+ * Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk)
166
+
167
+ === Removed features
168
+ * Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value.
169
+
170
+ === New features
171
+ * Added new --out option to make it easier to specify output from Rake and cucumber.yml
172
+
173
+ == 0.1.7 2008-10-05
174
+
175
+ This release fixes a few bugs and adds some new features. The most notable features are:
176
+
177
+ === Calling steps from steps
178
+
179
+ Step definitions are a little bit closer to having regular method semantics.
180
+ You define them, but now you can also call them from other steps. Here is an
181
+ example:
182
+
183
+ Given /I am logged in as an (.*) named (.*)$/ do |role, name|
184
+ Given "I am registered as #{role}, #{name}, secret"
185
+ When "I log in with #{name}, secret"
186
+ end
187
+
188
+ Given /I am registered as (.*), (.*), (.*)/ do |role, name, password|
189
+ # (Code removed for brevity)
190
+ end
191
+
192
+ When /I log in with (.*), (.*)/ do |name, password|
193
+ # (Code removed for brevity)
194
+ end
195
+
196
+ This means that steps can be reused in other steps. The GivenScenario feature achieves a similar
197
+ effect (on the scenario level), but this feature is something we're not very happy with, mostly
198
+ because it's not parameterisable. Calling steps from steps is.
199
+
200
+ GivenScenario will still be working several releases, but the plan is to remove it completely in
201
+ the 0.3.0 release.
202
+
203
+ === Seeing where a step is defined
204
+
205
+ Prior to this release it could be hard to find out where the ruby step definition matching
206
+ a plain text step is defined. Not anymore! Cucumber will now output this:
207
+
208
+ Scenario: Regular numbers
209
+ Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12
210
+ And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12
211
+ When I press divide # features/steps/calculator_steps.rb:16
212
+ Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20
213
+ And the result class should be Float # features/steps/calculator_steps.rb:24
214
+
215
+ === Bugfixes
216
+ * Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk)
217
+ * Fixed a bug in Webrat selects (Tim Glen)
218
+ * Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy)
219
+
220
+ === New features
221
+ * Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy)
222
+ * Added But keyword to all languages (#21, Aslak Hellesøy)
223
+ * Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy)
224
+ * Added more Webrat steps (#25, Tim Glen)
225
+
226
+ == 0.1.6 2008-10-01
227
+
228
+ First gem release!
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 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.
@@ -0,0 +1,226 @@
1
+ History.txt
2
+ License.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ TODO.txt
7
+ bin/cucumber
8
+ config/hoe.rb
9
+ config/requirements.rb
10
+ cucumber.yml
11
+ examples/calculator_ruby_features/Rakefile
12
+ examples/calculator_ruby_features/features/addition.rb
13
+ examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb
14
+ examples/cs/README.textile
15
+ examples/cs/Rakefile
16
+ examples/cs/features/hello.feature
17
+ examples/cs/features/step_definitons/hello_steps.rb
18
+ examples/cs/features/step_definitons/tree_steps.rb
19
+ examples/cs/features/tree.feature
20
+ examples/cs/src/Hello.cs
21
+ examples/dos_line_endings/Rakefile
22
+ examples/dos_line_endings/features/dos_line_endings.feature
23
+ examples/i18n/README.textile
24
+ examples/i18n/Rakefile
25
+ examples/i18n/ar/Rakefile
26
+ examples/i18n/ar/features/addition.feature
27
+ examples/i18n/ar/features/step_definitons/calculator_steps.rb
28
+ examples/i18n/ar/lib/calculator.rb
29
+ examples/i18n/da/Rakefile
30
+ examples/i18n/da/features/step_definitons/kalkulator_steps.rb
31
+ examples/i18n/da/features/summering.feature
32
+ examples/i18n/da/lib/kalkulator.rb
33
+ examples/i18n/en/Rakefile
34
+ examples/i18n/en/features/addition.feature
35
+ examples/i18n/en/features/division.feature
36
+ examples/i18n/en/features/step_definitons/calculator_steps.rb
37
+ examples/i18n/en/lib/calculator.rb
38
+ examples/i18n/es/Rakefile
39
+ examples/i18n/es/features/adicion.feature
40
+ examples/i18n/es/features/step_definitons/calculador_steps.rb
41
+ examples/i18n/es/lib/calculador.rb
42
+ examples/i18n/et/Rakefile
43
+ examples/i18n/et/features/liitmine.feature
44
+ examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
45
+ examples/i18n/et/lib/kalkulaator.rb
46
+ examples/i18n/fr/Rakefile
47
+ examples/i18n/fr/features/addition.feature
48
+ examples/i18n/fr/features/step_definitions/calculatrice_steps.rb
49
+ examples/i18n/fr/lib/calculatrice.rb
50
+ examples/i18n/id/Rakefile
51
+ examples/i18n/id/features/addition.feature
52
+ examples/i18n/id/features/division.feature
53
+ examples/i18n/id/features/step_definitons/calculator_steps.rb
54
+ examples/i18n/id/lib/calculator.rb
55
+ examples/i18n/it/Rakefile
56
+ examples/i18n/it/features/somma.feature
57
+ examples/i18n/it/features/step_definitons/calcolatrice_steps.rb
58
+ examples/i18n/it/lib/calcolatrice.rb
59
+ examples/i18n/ja/README.txt
60
+ examples/i18n/ja/Rakefile
61
+ examples/i18n/ja/features/addition.feature
62
+ examples/i18n/ja/features/division.feature
63
+ examples/i18n/ja/features/step_definitons/calculator_steps.rb
64
+ examples/i18n/ja/lib/calculator.rb
65
+ examples/i18n/no/Rakefile
66
+ examples/i18n/no/features/step_definitons/kalkulator_steps.rb
67
+ examples/i18n/no/features/summering.feature
68
+ examples/i18n/no/lib/kalkulator.rb
69
+ examples/i18n/pt/Rakefile
70
+ examples/i18n/pt/features/adicao.feature
71
+ examples/i18n/pt/features/step_definitions/calculadora_steps.rb
72
+ examples/i18n/pt/lib/calculadora.rb
73
+ examples/i18n/ro/Rakefile
74
+ examples/i18n/ro/features/step_definitons/calculator_steps.rb
75
+ examples/i18n/ro/features/suma.feature
76
+ examples/i18n/ro/lib/calculator.rb
77
+ examples/i18n/se/Rakefile
78
+ examples/i18n/se/features/step_definitons/kalkulator_steps.rb
79
+ examples/i18n/se/features/summering.feature
80
+ examples/i18n/se/lib/kalkulator.rb
81
+ examples/i18n/zh-CN/Rakefile
82
+ examples/i18n/zh-CN/features/addition.feature
83
+ examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb
84
+ examples/i18n/zh-CN/lib/calculator.rb
85
+ examples/java/README.textile
86
+ examples/java/Rakefile
87
+ examples/java/features/hello.feature
88
+ examples/java/features/step_definitons/hello_steps.rb
89
+ examples/java/features/step_definitons/tree_steps.rb
90
+ examples/java/features/tree.feature
91
+ examples/java/src/cucumber/demo/Hello.java
92
+ examples/selenium/Rakefile
93
+ examples/selenium/features/search.feature
94
+ examples/selenium/features/step_definitons/stories_steps.rb
95
+ examples/tickets/Rakefile
96
+ examples/tickets/cucumber.yml
97
+ examples/tickets/features/step_definitons/tickets_steps.rb
98
+ examples/tickets/features/tickets.feature
99
+ examples/watir/Rakefile
100
+ examples/watir/features/search.feature
101
+ examples/watir/features/step_definitons/stories_steps.rb
102
+ features/see_features.feature
103
+ features/steps/features_steps.rb
104
+ gem_tasks/deployment.rake
105
+ gem_tasks/environment.rake
106
+ gem_tasks/features.rake
107
+ gem_tasks/fix_cr_lf.rake
108
+ gem_tasks/flog.rake
109
+ gem_tasks/gemspec.rake
110
+ gem_tasks/rspec.rake
111
+ gem_tasks/treetop.rake
112
+ lib/autotest/cucumber.rb
113
+ lib/autotest/cucumber_mixin.rb
114
+ lib/autotest/cucumber_rails.rb
115
+ lib/autotest/cucumber_rails_rspec.rb
116
+ lib/autotest/cucumber_rspec.rb
117
+ lib/autotest/discover.rb
118
+ lib/cucumber.rb
119
+ lib/cucumber/broadcaster.rb
120
+ lib/cucumber/cli.rb
121
+ lib/cucumber/core_ext/proc.rb
122
+ lib/cucumber/core_ext/string.rb
123
+ lib/cucumber/executor.rb
124
+ lib/cucumber/formatters.rb
125
+ lib/cucumber/formatters/ansicolor.rb
126
+ lib/cucumber/formatters/autotest_formatter.rb
127
+ lib/cucumber/formatters/cucumber.css
128
+ lib/cucumber/formatters/cucumber.js
129
+ lib/cucumber/formatters/html_formatter.rb
130
+ lib/cucumber/formatters/jquery.js
131
+ lib/cucumber/formatters/pretty_formatter.rb
132
+ lib/cucumber/formatters/profile_formatter.rb
133
+ lib/cucumber/formatters/progress_formatter.rb
134
+ lib/cucumber/languages.yml
135
+ lib/cucumber/model.rb
136
+ lib/cucumber/model/table.rb
137
+ lib/cucumber/rails/rspec.rb
138
+ lib/cucumber/rails/world.rb
139
+ lib/cucumber/rake/task.rb
140
+ lib/cucumber/step_methods.rb
141
+ lib/cucumber/step_mother.rb
142
+ lib/cucumber/tree.rb
143
+ lib/cucumber/tree/feature.rb
144
+ lib/cucumber/tree/features.rb
145
+ lib/cucumber/tree/given_scenario.rb
146
+ lib/cucumber/tree/scenario.rb
147
+ lib/cucumber/tree/step.rb
148
+ lib/cucumber/tree/table.rb
149
+ lib/cucumber/tree/top_down_visitor.rb
150
+ lib/cucumber/treetop_parser/feature.treetop.erb
151
+ lib/cucumber/treetop_parser/feature_ar.rb
152
+ lib/cucumber/treetop_parser/feature_cy.rb
153
+ lib/cucumber/treetop_parser/feature_da.rb
154
+ lib/cucumber/treetop_parser/feature_de.rb
155
+ lib/cucumber/treetop_parser/feature_en-tx.rb
156
+ lib/cucumber/treetop_parser/feature_en.rb
157
+ lib/cucumber/treetop_parser/feature_es.rb
158
+ lib/cucumber/treetop_parser/feature_et.rb
159
+ lib/cucumber/treetop_parser/feature_fr.rb
160
+ lib/cucumber/treetop_parser/feature_id.rb
161
+ lib/cucumber/treetop_parser/feature_it.rb
162
+ lib/cucumber/treetop_parser/feature_ja.rb
163
+ lib/cucumber/treetop_parser/feature_nl.rb
164
+ lib/cucumber/treetop_parser/feature_no.rb
165
+ lib/cucumber/treetop_parser/feature_parser.rb
166
+ lib/cucumber/treetop_parser/feature_pl.rb
167
+ lib/cucumber/treetop_parser/feature_pt.rb
168
+ lib/cucumber/treetop_parser/feature_ro.rb
169
+ lib/cucumber/treetop_parser/feature_ro2.rb
170
+ lib/cucumber/treetop_parser/feature_ru.rb
171
+ lib/cucumber/treetop_parser/feature_se.rb
172
+ lib/cucumber/treetop_parser/feature_zh-CN.rb
173
+ lib/cucumber/version.rb
174
+ rails_generators/cucumber/USAGE
175
+ rails_generators/cucumber/cucumber_generator.rb
176
+ rails_generators/cucumber/templates/cucumber
177
+ rails_generators/cucumber/templates/cucumber.rake
178
+ rails_generators/cucumber/templates/env.rb
179
+ rails_generators/cucumber/templates/webrat_steps.rb
180
+ rails_generators/feature/USAGE
181
+ rails_generators/feature/feature_generator.rb
182
+ rails_generators/feature/templates/feature.erb
183
+ rails_generators/feature/templates/steps.erb
184
+ script/console
185
+ script/console.cmd
186
+ script/destroy
187
+ script/destroy.cmd
188
+ script/generate
189
+ script/generate.cmd
190
+ script/txt2html
191
+ script/txt2html.cmd
192
+ setup.rb
193
+ spec/cucumber/broadcaster_spec.rb
194
+ spec/cucumber/cli_spec.rb
195
+ spec/cucumber/core_ext/proc_spec.rb
196
+ spec/cucumber/core_ext/string_spec.rb
197
+ spec/cucumber/executor_spec.rb
198
+ spec/cucumber/formatters/ansicolor_spec.rb
199
+ spec/cucumber/formatters/autotest_formatter_spec.rb
200
+ spec/cucumber/formatters/features.html
201
+ spec/cucumber/formatters/html_formatter_spec.rb
202
+ spec/cucumber/formatters/pretty_formatter_spec.rb
203
+ spec/cucumber/formatters/profile_formatter_spec.rb
204
+ spec/cucumber/formatters/progress_formatter_spec.rb
205
+ spec/cucumber/model/table_spec.rb
206
+ spec/cucumber/rails/stubs/mini_rails.rb
207
+ spec/cucumber/rails/stubs/test_help.rb
208
+ spec/cucumber/rails/world_spec.rb
209
+ spec/cucumber/sell_cucumbers.feature
210
+ spec/cucumber/step_mother_spec.rb
211
+ spec/cucumber/tree/feature_spec.rb
212
+ spec/cucumber/tree/row_scenario_spec.rb
213
+ spec/cucumber/tree/scenario_spec.rb
214
+ spec/cucumber/tree/step_spec.rb
215
+ spec/cucumber/treetop_parser/empty_feature.feature
216
+ spec/cucumber/treetop_parser/empty_scenario.feature
217
+ spec/cucumber/treetop_parser/feature_parser_spec.rb
218
+ spec/cucumber/treetop_parser/fit_scenario.feature
219
+ spec/cucumber/treetop_parser/given_scenario.feature
220
+ spec/cucumber/treetop_parser/multiline_steps.feature
221
+ spec/cucumber/treetop_parser/multiple_tables.feature
222
+ spec/cucumber/treetop_parser/spaces.feature
223
+ spec/cucumber/treetop_parser/test_dos.feature
224
+ spec/cucumber/treetop_parser/with_comments.feature
225
+ spec/spec.opts
226
+ spec/spec_helper.rb