pezra-cucumber 0.3.94.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. data/History.txt +984 -0
  2. data/License.txt +20 -0
  3. data/Manifest.txt +429 -0
  4. data/README.txt +4 -0
  5. data/Rakefile +9 -0
  6. data/bin/cucumber +17 -0
  7. data/config/hoe.rb +77 -0
  8. data/config/requirements.rb +15 -0
  9. data/cucumber.yml +2 -0
  10. data/examples/cs/README.textile +1 -0
  11. data/examples/cs/Rakefile +12 -0
  12. data/examples/cs/compile.bat +1 -0
  13. data/examples/cs/features/addition.feature +16 -0
  14. data/examples/cs/features/step_definitons/calculator_steps.rb +19 -0
  15. data/examples/cs/src/demo/Calculator.cs +20 -0
  16. data/examples/dos_line_endings/Rakefile +6 -0
  17. data/examples/dos_line_endings/features/dos_line_endings.feature +9 -0
  18. data/examples/i18n/README.textile +18 -0
  19. data/examples/i18n/Rakefile +30 -0
  20. data/examples/i18n/ar/Rakefile +6 -0
  21. data/examples/i18n/ar/features/addition.feature +17 -0
  22. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +24 -0
  23. data/examples/i18n/ar/lib/calculator.rb +11 -0
  24. data/examples/i18n/bg/Rakefile +6 -0
  25. data/examples/i18n/bg/features/addition.feature +12 -0
  26. data/examples/i18n/bg/features/consecutive_calculations.feature +19 -0
  27. data/examples/i18n/bg/features/division.feature +17 -0
  28. data/examples/i18n/bg/features/step_definitons/calculator_steps.rb +24 -0
  29. data/examples/i18n/bg/features/support/env.rb +6 -0
  30. data/examples/i18n/bg/features/support/world.rb +8 -0
  31. data/examples/i18n/bg/lib/calculator.rb +24 -0
  32. data/examples/i18n/cat/Rakefile +6 -0
  33. data/examples/i18n/cat/features/step_definitons/calculator_steps.rb +21 -0
  34. data/examples/i18n/cat/features/suma.feature +17 -0
  35. data/examples/i18n/cat/lib/calculadora.rb +16 -0
  36. data/examples/i18n/da/Rakefile +6 -0
  37. data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +24 -0
  38. data/examples/i18n/da/features/summering.feature +18 -0
  39. data/examples/i18n/da/lib/kalkulator.rb +11 -0
  40. data/examples/i18n/de/Rakefile +6 -0
  41. data/examples/i18n/de/features/addition.feature +17 -0
  42. data/examples/i18n/de/features/division.feature +10 -0
  43. data/examples/i18n/de/features/step_definitons/calculator_steps.rb +24 -0
  44. data/examples/i18n/de/lib/calculator.rb +14 -0
  45. data/examples/i18n/en-lol/Rakefile +6 -0
  46. data/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +16 -0
  47. data/examples/i18n/en-lol/features/stuffing.feature +8 -0
  48. data/examples/i18n/en-lol/features/support/env.rb +8 -0
  49. data/examples/i18n/en-lol/lib/basket.rb +12 -0
  50. data/examples/i18n/en-lol/lib/belly.rb +11 -0
  51. data/examples/i18n/en/Rakefile +6 -0
  52. data/examples/i18n/en/features/addition.feature +17 -0
  53. data/examples/i18n/en/features/division.feature +10 -0
  54. data/examples/i18n/en/features/step_definitons/calculator_steps.rb +24 -0
  55. data/examples/i18n/en/lib/calculator.rb +14 -0
  56. data/examples/i18n/es/Rakefile +6 -0
  57. data/examples/i18n/es/features/adicion.feature +17 -0
  58. data/examples/i18n/es/features/step_definitons/calculador_steps.rb +21 -0
  59. data/examples/i18n/es/lib/calculador.rb +14 -0
  60. data/examples/i18n/et/Rakefile +6 -0
  61. data/examples/i18n/et/features/jagamine.feature +10 -0
  62. data/examples/i18n/et/features/liitmine.feature +17 -0
  63. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +24 -0
  64. data/examples/i18n/et/lib/kalkulaator.rb +14 -0
  65. data/examples/i18n/fi/Rakefile +6 -0
  66. data/examples/i18n/fi/features/jakolasku.feature +10 -0
  67. data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
  68. data/examples/i18n/fi/features/yhteenlasku.feature +16 -0
  69. data/examples/i18n/fi/lib/laskin.rb +14 -0
  70. data/examples/i18n/fr/Rakefile +6 -0
  71. data/examples/i18n/fr/features/addition.feature +18 -0
  72. data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +25 -0
  73. data/examples/i18n/fr/lib/calculatrice.rb +10 -0
  74. data/examples/i18n/he/Rakefile +6 -0
  75. data/examples/i18n/he/features/addition.feature +17 -0
  76. data/examples/i18n/he/features/division.feature +10 -0
  77. data/examples/i18n/he/features/step_definitons/calculator_steps.rb +24 -0
  78. data/examples/i18n/he/lib/calculator.rb +14 -0
  79. data/examples/i18n/hu/Rakefile +6 -0
  80. data/examples/i18n/hu/features/addition.feature +17 -0
  81. data/examples/i18n/hu/features/division.feature +10 -0
  82. data/examples/i18n/hu/features/step_definitons/calculator_steps.rb +25 -0
  83. data/examples/i18n/hu/lib/calculator.rb +14 -0
  84. data/examples/i18n/id/Rakefile +6 -0
  85. data/examples/i18n/id/features/addition.feature +17 -0
  86. data/examples/i18n/id/features/division.feature +10 -0
  87. data/examples/i18n/id/features/step_definitons/calculator_steps.rb +24 -0
  88. data/examples/i18n/id/lib/calculator.rb +14 -0
  89. data/examples/i18n/it/Rakefile +6 -0
  90. data/examples/i18n/it/features/somma.feature +11 -0
  91. data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +24 -0
  92. data/examples/i18n/it/lib/calcolatrice.rb +11 -0
  93. data/examples/i18n/ja/Rakefile +6 -0
  94. data/examples/i18n/ja/features/addition.feature +17 -0
  95. data/examples/i18n/ja/features/division.feature +10 -0
  96. data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +24 -0
  97. data/examples/i18n/ja/lib/calculator.rb +14 -0
  98. data/examples/i18n/ko/Rakefile +6 -0
  99. data/examples/i18n/ko/features/addition.feature +17 -0
  100. data/examples/i18n/ko/features/division.feature +11 -0
  101. data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +24 -0
  102. data/examples/i18n/ko/lib/calculator.rb +14 -0
  103. data/examples/i18n/lt/Rakefile +6 -0
  104. data/examples/i18n/lt/features/addition.feature +17 -0
  105. data/examples/i18n/lt/features/division.feature +10 -0
  106. data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +24 -0
  107. data/examples/i18n/lt/lib/calculator.rb +14 -0
  108. data/examples/i18n/lv/Rakefile +6 -0
  109. data/examples/i18n/lv/features/addition.feature +17 -0
  110. data/examples/i18n/lv/features/division.feature +10 -0
  111. data/examples/i18n/lv/features/step_definitons/calculator_steps.rb +24 -0
  112. data/examples/i18n/lv/lib/calculator.rb +14 -0
  113. data/examples/i18n/no/Rakefile +6 -0
  114. data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +17 -0
  115. data/examples/i18n/no/features/summering.feature +19 -0
  116. data/examples/i18n/no/features/support/env.rb +6 -0
  117. data/examples/i18n/no/lib/kalkulator.rb +11 -0
  118. data/examples/i18n/pl/Rakefile +6 -0
  119. data/examples/i18n/pl/features/addition.feature +17 -0
  120. data/examples/i18n/pl/features/division.feature +10 -0
  121. data/examples/i18n/pl/features/step_definitons/calculator_steps.rb +24 -0
  122. data/examples/i18n/pl/features/support/env.rb +6 -0
  123. data/examples/i18n/pl/lib/calculator.rb +14 -0
  124. data/examples/i18n/pt/Rakefile +6 -0
  125. data/examples/i18n/pt/features/adicao.feature +11 -0
  126. data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +20 -0
  127. data/examples/i18n/pt/features/support/env.rb +6 -0
  128. data/examples/i18n/pt/lib/calculadora.rb +10 -0
  129. data/examples/i18n/ro/Rakefile +6 -0
  130. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +24 -0
  131. data/examples/i18n/ro/features/suma.feature +11 -0
  132. data/examples/i18n/ro/lib/calculator.rb +11 -0
  133. data/examples/i18n/ru/Rakefile +6 -0
  134. data/examples/i18n/ru/features/addition.feature +11 -0
  135. data/examples/i18n/ru/features/consecutive_calculations.feature +17 -0
  136. data/examples/i18n/ru/features/division.feature +16 -0
  137. data/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
  138. data/examples/i18n/ru/features/support/env.rb +6 -0
  139. data/examples/i18n/ru/features/support/world.rb +8 -0
  140. data/examples/i18n/ru/lib/calculator.rb +24 -0
  141. data/examples/i18n/se/Rakefile +6 -0
  142. data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +24 -0
  143. data/examples/i18n/se/features/summering.feature +18 -0
  144. data/examples/i18n/se/lib/kalkulator.rb +11 -0
  145. data/examples/i18n/sk/Rakefile +6 -0
  146. data/examples/i18n/sk/features/addition.feature +17 -0
  147. data/examples/i18n/sk/features/division.feature +10 -0
  148. data/examples/i18n/sk/features/step_definitons/calculator_steps.rb +24 -0
  149. data/examples/i18n/sk/lib/calculator.rb +14 -0
  150. data/examples/i18n/zh-CN/Rakefile +6 -0
  151. data/examples/i18n/zh-CN/features/addition.feature +18 -0
  152. data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +26 -0
  153. data/examples/i18n/zh-CN/lib/calculator.rb +10 -0
  154. data/examples/i18n/zh-TW/Rakefile +6 -0
  155. data/examples/i18n/zh-TW/features/addition.feature +17 -0
  156. data/examples/i18n/zh-TW/features/division.feature +11 -0
  157. data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +24 -0
  158. data/examples/i18n/zh-TW/lib/calculator.rb +14 -0
  159. data/examples/java/README.textile +18 -0
  160. data/examples/java/build.xml +33 -0
  161. data/examples/java/features/hello.feature +11 -0
  162. data/examples/java/features/step_definitons/hello_steps.rb +23 -0
  163. data/examples/java/features/step_definitons/tree_steps.rb +14 -0
  164. data/examples/java/features/tree.feature +9 -0
  165. data/examples/java/src/cucumber/demo/Hello.java +16 -0
  166. data/examples/junit/features/one_passing_one_failing.feature +8 -0
  167. data/examples/junit/features/pending.feature +5 -0
  168. data/examples/junit/features/step_definitions/steps.rb +11 -0
  169. data/examples/pure_java/README.textile +5 -0
  170. data/examples/python/features/fibonacci.feature +19 -0
  171. data/examples/python/features/step_definitions/fib_steps.rb +7 -0
  172. data/examples/python/features/support/env.rb +21 -0
  173. data/examples/python/lib/fib.py +7 -0
  174. data/examples/selenium/Rakefile +6 -0
  175. data/examples/selenium/features/search.feature +9 -0
  176. data/examples/selenium/features/step_definitons/search_steps.rb +13 -0
  177. data/examples/selenium/features/support/env.rb +19 -0
  178. data/examples/selenium_webrat/Rakefile +6 -0
  179. data/examples/selenium_webrat/config.ru +0 -0
  180. data/examples/selenium_webrat/features/search.feature +9 -0
  181. data/examples/selenium_webrat/features/step_definitons/search_steps.rb +13 -0
  182. data/examples/selenium_webrat/features/support/env.rb +45 -0
  183. data/examples/self_test/README.textile +6 -0
  184. data/examples/self_test/Rakefile +6 -0
  185. data/examples/self_test/features/background/background_tagged_before_on_outline.feature +12 -0
  186. data/examples/self_test/features/background/background_with_name.feature +7 -0
  187. data/examples/self_test/features/background/failing_background.feature +12 -0
  188. data/examples/self_test/features/background/failing_background_after_success.feature +11 -0
  189. data/examples/self_test/features/background/multiline_args_background.feature +32 -0
  190. data/examples/self_test/features/background/passing_background.feature +10 -0
  191. data/examples/self_test/features/background/pending_background.feature +10 -0
  192. data/examples/self_test/features/background/scenario_outline_failing_background.feature +16 -0
  193. data/examples/self_test/features/background/scenario_outline_passing_background.feature +16 -0
  194. data/examples/self_test/features/call_undefined_step_from_step_def.feature +7 -0
  195. data/examples/self_test/features/failing_expectation.feature +4 -0
  196. data/examples/self_test/features/lots_of_undefined.feature +8 -0
  197. data/examples/self_test/features/multiline_name.feature +27 -0
  198. data/examples/self_test/features/outline_sample.feature +15 -0
  199. data/examples/self_test/features/sample.feature +21 -0
  200. data/examples/self_test/features/search_sample.feature +32 -0
  201. data/examples/self_test/features/step_definitions/sample_steps.rb +81 -0
  202. data/examples/self_test/features/support/env.rb +18 -0
  203. data/examples/self_test/features/tags_sample.feature +17 -0
  204. data/examples/self_test/features/tons_of_cukes.feature +52 -0
  205. data/examples/self_test/features/undefined_multiline_args.feature +12 -0
  206. data/examples/sinatra/README.textile +13 -0
  207. data/examples/sinatra/Rakefile +6 -0
  208. data/examples/sinatra/app.rb +14 -0
  209. data/examples/sinatra/features/add.feature +11 -0
  210. data/examples/sinatra/features/step_definitions/add_steps.rb +15 -0
  211. data/examples/sinatra/features/support/env.rb +34 -0
  212. data/examples/sinatra/views/add.erb +5 -0
  213. data/examples/sinatra/views/layout.erb +8 -0
  214. data/examples/steps_library/features/step_definitions/steps_lib1.rb +8 -0
  215. data/examples/steps_library/features/step_definitions/steps_lib2.rb +8 -0
  216. data/examples/test_unit/Rakefile +6 -0
  217. data/examples/test_unit/features/step_definitions/test_unit_steps.rb +23 -0
  218. data/examples/test_unit/features/test_unit.feature +9 -0
  219. data/examples/tickets/Rakefile +16 -0
  220. data/examples/tickets/features/172.feature +28 -0
  221. data/examples/tickets/features/177/1.feature +29 -0
  222. data/examples/tickets/features/177/2.feature +21 -0
  223. data/examples/tickets/features/177/3.feature +18 -0
  224. data/examples/tickets/features/180.feature +7 -0
  225. data/examples/tickets/features/229/tagged_hooks.feature +8 -0
  226. data/examples/tickets/features/229/tagged_hooks.rb +14 -0
  227. data/examples/tickets/features/236.feature +13 -0
  228. data/examples/tickets/features/241.feature +13 -0
  229. data/examples/tickets/features/246.feature +4 -0
  230. data/examples/tickets/features/248.feature +11 -0
  231. data/examples/tickets/features/270/back.feature +14 -0
  232. data/examples/tickets/features/270/back.steps.rb +14 -0
  233. data/examples/tickets/features/272/hooks.feature +26 -0
  234. data/examples/tickets/features/272/hooks_steps.rb +53 -0
  235. data/examples/tickets/features/279/py_string_indent.feature +25 -0
  236. data/examples/tickets/features/279/py_string_indent.steps.rb +12 -0
  237. data/examples/tickets/features/279/wrong.feature_ +11 -0
  238. data/examples/tickets/features/301/filter_background_tagged_hooks.feature +6 -0
  239. data/examples/tickets/features/301/filter_background_tagged_hooks_steps.rb +12 -0
  240. data/examples/tickets/features/306/only_background.feature +4 -0
  241. data/examples/tickets/features/lib/eatting_machine.rb +18 -0
  242. data/examples/tickets/features/lib/pantry.rb +20 -0
  243. data/examples/tickets/features/scenario_outline.feature +95 -0
  244. data/examples/tickets/features/step_definitons/246_steps.rb +3 -0
  245. data/examples/tickets/features/step_definitons/248_steps.rb +15 -0
  246. data/examples/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
  247. data/examples/tickets/features/step_definitons/tickets_steps.rb +81 -0
  248. data/examples/tickets/features/table_diffing.feature +13 -0
  249. data/examples/tickets/features/tickets.feature +28 -0
  250. data/examples/watir/README.textile +16 -0
  251. data/examples/watir/Rakefile +6 -0
  252. data/examples/watir/features/search.feature +12 -0
  253. data/examples/watir/features/step_definitons/search_steps.rb +26 -0
  254. data/examples/watir/features/support/env.rb +32 -0
  255. data/features/after_block_exceptions.feature +102 -0
  256. data/features/after_step_block_exceptions.feature +104 -0
  257. data/features/background.feature +311 -0
  258. data/features/bug_371.feature +32 -0
  259. data/features/cucumber_cli.feature +631 -0
  260. data/features/cucumber_cli_diff_disabled.feature +54 -0
  261. data/features/cucumber_cli_outlines.feature +109 -0
  262. data/features/custom_formatter.feature +11 -0
  263. data/features/drb_server_integration.feature +120 -0
  264. data/features/exclude_files.feature +20 -0
  265. data/features/expand.feature +49 -0
  266. data/features/html_formatter.feature +7 -0
  267. data/features/html_formatter/a.html +183 -0
  268. data/features/junit_formatter.feature +78 -0
  269. data/features/language_from_header.feature +30 -0
  270. data/features/multiline_names.feature +43 -0
  271. data/features/profiles.feature +99 -0
  272. data/features/rake_task.feature +178 -0
  273. data/features/report_called_undefined_steps.feature +35 -0
  274. data/features/snippet.feature +22 -0
  275. data/features/step_definitions/cucumber_steps.rb +143 -0
  276. data/features/step_definitions/extra_steps.rb +2 -0
  277. data/features/steps_formatter.feature +25 -0
  278. data/features/support/env.rb +124 -0
  279. data/features/table_diffing.feature +45 -0
  280. data/features/unicode_table.feature +35 -0
  281. data/features/usage.feature +126 -0
  282. data/features/work_in_progress.feature +158 -0
  283. data/gem_tasks/contributors.rake +4 -0
  284. data/gem_tasks/deployment.rake +11 -0
  285. data/gem_tasks/environment.rake +7 -0
  286. data/gem_tasks/features.rake +10 -0
  287. data/gem_tasks/fix_cr_lf.rake +10 -0
  288. data/gem_tasks/flog.rake +4 -0
  289. data/gem_tasks/gemspec.rake +10 -0
  290. data/gem_tasks/rspec.rake +45 -0
  291. data/gem_tasks/sass.rake +4 -0
  292. data/gem_tasks/yard.rake +8 -0
  293. data/lib/autotest/cucumber.rb +6 -0
  294. data/lib/autotest/cucumber_mixin.rb +125 -0
  295. data/lib/autotest/cucumber_rails.rb +6 -0
  296. data/lib/autotest/cucumber_rails_rspec.rb +6 -0
  297. data/lib/autotest/cucumber_rspec.rb +6 -0
  298. data/lib/autotest/discover.rb +9 -0
  299. data/lib/cucumber.rb +11 -0
  300. data/lib/cucumber/ast.rb +29 -0
  301. data/lib/cucumber/ast/background.rb +63 -0
  302. data/lib/cucumber/ast/comment.rb +31 -0
  303. data/lib/cucumber/ast/examples.rb +27 -0
  304. data/lib/cucumber/ast/feature.rb +81 -0
  305. data/lib/cucumber/ast/feature_element.rb +61 -0
  306. data/lib/cucumber/ast/features.rb +40 -0
  307. data/lib/cucumber/ast/outline_table.rb +146 -0
  308. data/lib/cucumber/ast/py_string.rb +57 -0
  309. data/lib/cucumber/ast/scenario.rb +84 -0
  310. data/lib/cucumber/ast/scenario_outline.rb +95 -0
  311. data/lib/cucumber/ast/step.rb +116 -0
  312. data/lib/cucumber/ast/step_collection.rb +76 -0
  313. data/lib/cucumber/ast/step_invocation.rb +137 -0
  314. data/lib/cucumber/ast/table.rb +588 -0
  315. data/lib/cucumber/ast/tags.rb +42 -0
  316. data/lib/cucumber/ast/visitor.rb +117 -0
  317. data/lib/cucumber/broadcaster.rb +13 -0
  318. data/lib/cucumber/cli/configuration.rb +175 -0
  319. data/lib/cucumber/cli/drb_client.rb +22 -0
  320. data/lib/cucumber/cli/language_help_formatter.rb +61 -0
  321. data/lib/cucumber/cli/main.rb +167 -0
  322. data/lib/cucumber/cli/options.rb +384 -0
  323. data/lib/cucumber/cli/profile_loader.rb +63 -0
  324. data/lib/cucumber/core_ext/exception.rb +53 -0
  325. data/lib/cucumber/core_ext/instance_exec.rb +70 -0
  326. data/lib/cucumber/core_ext/proc.rb +29 -0
  327. data/lib/cucumber/core_ext/string.rb +48 -0
  328. data/lib/cucumber/feature_file.rb +53 -0
  329. data/lib/cucumber/filter.rb +51 -0
  330. data/lib/cucumber/formatter/ansicolor.rb +142 -0
  331. data/lib/cucumber/formatter/color_io.rb +23 -0
  332. data/lib/cucumber/formatter/console.rb +183 -0
  333. data/lib/cucumber/formatter/cucumber.css +132 -0
  334. data/lib/cucumber/formatter/cucumber.sass +139 -0
  335. data/lib/cucumber/formatter/duration.rb +10 -0
  336. data/lib/cucumber/formatter/html.rb +260 -0
  337. data/lib/cucumber/formatter/junit.rb +116 -0
  338. data/lib/cucumber/formatter/ordered_xml_markup.rb +24 -0
  339. data/lib/cucumber/formatter/pretty.rb +208 -0
  340. data/lib/cucumber/formatter/profile.rb +77 -0
  341. data/lib/cucumber/formatter/progress.rb +66 -0
  342. data/lib/cucumber/formatter/rerun.rb +44 -0
  343. data/lib/cucumber/formatter/steps.rb +49 -0
  344. data/lib/cucumber/formatter/tag_cloud.rb +28 -0
  345. data/lib/cucumber/formatter/unicode.rb +35 -0
  346. data/lib/cucumber/formatter/usage.rb +85 -0
  347. data/lib/cucumber/formatters/unicode.rb +7 -0
  348. data/lib/cucumber/languages.yml +532 -0
  349. data/lib/cucumber/parser.rb +6 -0
  350. data/lib/cucumber/parser/feature.rb +1814 -0
  351. data/lib/cucumber/parser/feature.tt +351 -0
  352. data/lib/cucumber/parser/i18n.tt +42 -0
  353. data/lib/cucumber/parser/i18n/language.rb +87 -0
  354. data/lib/cucumber/parser/table.rb +414 -0
  355. data/lib/cucumber/parser/table.tt +71 -0
  356. data/lib/cucumber/parser/treetop_ext.rb +52 -0
  357. data/lib/cucumber/platform.rb +23 -0
  358. data/lib/cucumber/rails/rspec.rb +10 -0
  359. data/lib/cucumber/rails/world.rb +99 -0
  360. data/lib/cucumber/rake/task.rb +239 -0
  361. data/lib/cucumber/rspec_neuter.rb +23 -0
  362. data/lib/cucumber/step_definition.rb +122 -0
  363. data/lib/cucumber/step_match.rb +61 -0
  364. data/lib/cucumber/step_mother.rb +368 -0
  365. data/lib/cucumber/version.rb +10 -0
  366. data/lib/cucumber/webrat/element_locator.rb +87 -0
  367. data/lib/cucumber/webrat/table_locator.rb +1 -0
  368. data/lib/cucumber/world.rb +69 -0
  369. data/rails_generators/cucumber/USAGE +11 -0
  370. data/rails_generators/cucumber/cucumber_generator.rb +70 -0
  371. data/rails_generators/cucumber/templates/cucumber +9 -0
  372. data/rails_generators/cucumber/templates/cucumber.rake +34 -0
  373. data/rails_generators/cucumber/templates/cucumber_environment.rb +26 -0
  374. data/rails_generators/cucumber/templates/env.rb +27 -0
  375. data/rails_generators/cucumber/templates/paths.rb +27 -0
  376. data/rails_generators/cucumber/templates/spork_env.rb +37 -0
  377. data/rails_generators/cucumber/templates/webrat_steps.rb +173 -0
  378. data/rails_generators/feature/USAGE +12 -0
  379. data/rails_generators/feature/feature_generator.rb +40 -0
  380. data/rails_generators/feature/templates/feature.erb +31 -0
  381. data/rails_generators/feature/templates/steps.erb +14 -0
  382. data/spec/cucumber/ast/background_spec.rb +50 -0
  383. data/spec/cucumber/ast/feature_element_spec.rb +40 -0
  384. data/spec/cucumber/ast/feature_factory.rb +63 -0
  385. data/spec/cucumber/ast/feature_spec.rb +38 -0
  386. data/spec/cucumber/ast/py_string_spec.rb +51 -0
  387. data/spec/cucumber/ast/scenario_outline_spec.rb +67 -0
  388. data/spec/cucumber/ast/scenario_spec.rb +38 -0
  389. data/spec/cucumber/ast/step_collection_spec.rb +17 -0
  390. data/spec/cucumber/ast/step_spec.rb +66 -0
  391. data/spec/cucumber/ast/table_spec.rb +355 -0
  392. data/spec/cucumber/ast/visitor_spec.rb +27 -0
  393. data/spec/cucumber/broadcaster_spec.rb +15 -0
  394. data/spec/cucumber/cli/configuration_spec.rb +380 -0
  395. data/spec/cucumber/cli/drb_client_spec.rb +43 -0
  396. data/spec/cucumber/cli/main_spec.rb +150 -0
  397. data/spec/cucumber/cli/options_spec.rb +325 -0
  398. data/spec/cucumber/cli/profile_loader_spec.rb +10 -0
  399. data/spec/cucumber/core_ext/proc_spec.rb +68 -0
  400. data/spec/cucumber/core_ext/string_spec.rb +42 -0
  401. data/spec/cucumber/formatter/ansicolor_spec.rb +35 -0
  402. data/spec/cucumber/formatter/color_io_spec.rb +27 -0
  403. data/spec/cucumber/formatter/duration_spec.rb +22 -0
  404. data/spec/cucumber/formatter/html_spec.rb +18 -0
  405. data/spec/cucumber/formatter/progress_spec.rb +36 -0
  406. data/spec/cucumber/parser/feature_parser_spec.rb +387 -0
  407. data/spec/cucumber/parser/table_parser_spec.rb +48 -0
  408. data/spec/cucumber/rails/stubs/mini_rails.rb +18 -0
  409. data/spec/cucumber/rails/stubs/test_help.rb +1 -0
  410. data/spec/cucumber/rails/world_spec.rb +11 -0
  411. data/spec/cucumber/sell_cucumbers.feature +19 -0
  412. data/spec/cucumber/step_definition_spec.rb +101 -0
  413. data/spec/cucumber/step_mother_spec.rb +163 -0
  414. data/spec/cucumber/treetop_parser/empty_feature.feature +4 -0
  415. data/spec/cucumber/treetop_parser/empty_scenario.feature +9 -0
  416. data/spec/cucumber/treetop_parser/empty_scenario_outline.feature +3 -0
  417. data/spec/cucumber/treetop_parser/fit_scenario.feature +8 -0
  418. data/spec/cucumber/treetop_parser/given_scenario.feature +9 -0
  419. data/spec/cucumber/treetop_parser/invalid_scenario_outlines.feature +7 -0
  420. data/spec/cucumber/treetop_parser/multiline_steps.feature +17 -0
  421. data/spec/cucumber/treetop_parser/multiple_tables.feature +27 -0
  422. data/spec/cucumber/treetop_parser/scenario_outline.feature +16 -0
  423. data/spec/cucumber/treetop_parser/spaces.feature +12 -0
  424. data/spec/cucumber/treetop_parser/test_dos.feature +25 -0
  425. data/spec/cucumber/treetop_parser/with_comments.feature +10 -0
  426. data/spec/cucumber/treetop_parser/with_tags.feature +18 -0
  427. data/spec/cucumber/world/pending_spec.rb +47 -0
  428. data/spec/spec.opts +4 -0
  429. data/spec/spec_helper.rb +13 -0
  430. metadata +526 -0
data/History.txt ADDED
@@ -0,0 +1,984 @@
1
+ == (In Git)
2
+
3
+ This release improves Webrat support for table-like HTML markup. This means that you can easily get the
4
+ 2-dimensional data from HTML table, dl, ol and ul elements. This is particularly useful for comparing
5
+ data in your HTML with a Cucumber table using Cucumber::Ast::Table#diff!
6
+
7
+ This release also fixes several bugs related to --drb (Spork) and profiles (cucumber.yml)
8
+
9
+ === Bug Fixes
10
+ * --guess will always prefer the longest regexp with no groups if they exist.
11
+ * Prevent delays if a NoMethodError is raise in a step definition. Define a light #inspect in World. (#374 Aslak Hellesøy)
12
+ * Restore 'features' as the default feature running path. (#412 Ben Mabey)
13
+ * --drb degrades gracefully when no drb server is running and no formatter is provided. (#410 Ben Mabey)
14
+ * --language picked up from profiles again. (#409 Ben Mabey)
15
+ * Resolved infinite loop problem when --drb was defined in a profile. (#408 Ben Mabey)
16
+
17
+ === New Features
18
+ * The object returned by element_at (Webrat::Element) has a #to_table that works for table, dl, ol and ul. (Aslak Hellesøy)
19
+ * An explanation of why failures are ok is printed when --wip is used. (Aslak Hellesøy)
20
+ * Added cucumber alias for cucumber:ok in Rails Rake tasks. (Aslak Hellesøy)
21
+
22
+ === Changed features
23
+ * element_at('table').to_table should be used instead of table_at('table').to_a. The old way is deprecated but still works. (Aslak Hellesøy)
24
+ * element_at (and the depracated table_at) no longer takes a DOM id, only CSS selectors. Change "my_id" to "#my_id". (Aslak Hellesøy)
25
+
26
+ == 0.3.94 2009-08-06
27
+
28
+ Kanban take II.
29
+
30
+ Release 0.3.6 introduced a new --wip switch that can be used to limit work in progress
31
+ (WIP). Limiting WIP is central for Kanban Software Development (http://www.infoq.com/articles/hiranabe-lean-agile-kanban).
32
+
33
+ However, this feature went mostly unnoticed, and because we think it's so great we have decided
34
+ to make it the default for Rails projects. When you bootstrap your Rails project for Cucumber
35
+ you will now get 2 Cucumber Rake tasks for Kanban development:
36
+
37
+ cucumber:ok : Run features that should pass. This runs your "good,old" features
38
+ cucumber:wip : Run the features you're working on that don't pass yet. Tag them with @wip. Max 2!
39
+
40
+ So upgrade today and get into the habit of tagging new features with @wip (or invent your own tags).
41
+ You'll achieve better flow this way.
42
+
43
+ === New features
44
+ * Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
45
+ * script/generate cucumber sets up 'cucumber:ok' and 'cucumber:wip' tasks and deprecates 'features'. More Kanban love. (#344 Aslak Hellesøy)
46
+ * Better JUnit formatter: feature->testsuite, scenario->testcase. Better timing and support for background and scenario outline. (Mads Buus Westmark)
47
+ * Added examples/python that uses rubypython. (Aslak Hellesøy)
48
+ * Checks the number of available colors on the terminal with ruby-terminfo if ruby-terminfo is installed.
49
+ This prevents Apple's Terminal.app from stalling (Yugui - Yuki Sonoda).
50
+ * Set 'xterm-256color' to TERM if your terminal supports grey.
51
+ * ruby-terminfo is available as genki-ruby-terminfo gem from github.
52
+ * Document builtin formatters with --help. (#406 Aslak Hellesøy)
53
+ * Added support for using regular expressions when mapping table headers. (Peter Williams)
54
+
55
+ == 0.3.93 2009-08-03
56
+
57
+ Highlights in this release: Improved profile handling (cucumber.yml) and a fix for cucumber hanging.
58
+
59
+ === New features
60
+ * script/generate cucumber --spork now sets up a spork gem dependency in the cucumber.rb environment. (Aslak Hellesøy)
61
+ * Feature files defined on the command line override any that are present in profiles. (#344 Ben Mabey)
62
+ * Default (STDOUT) formatter defined in profile can be overridden from the command line. (#344 Ben Mabey)
63
+ * Displays which profile, if any, is being used. (Ben Mabey)
64
+ * click_link_within(parent, link) webrat step (Joakim Kolsjö)
65
+
66
+ === Bugfixes
67
+ * script/cucumber correctly loads the gem's binary if the plugin isn't installed.
68
+ * Cucumber hangs waiting for Ctrl+C if an Error is raised. (#374 Aslak Hellesøy)
69
+
70
+ == 0.3.92 2009-07-29
71
+
72
+ This release has some minor improvements to the new Table.diff! functionality. For example,
73
+ if you're using Webrat and you want to compare a feature table with a HTML table containing
74
+ links in one of the columns, you can do:
75
+
76
+ actual = Cucumber::Ast::Table.new(table_at('table').to_a)
77
+ actual.map_column!('Name') { |text| text.strip.match(/>(.*)</)[1] }
78
+ table.diff!(actual)
79
+
80
+ === New features
81
+ * Allow Step Definitions to accept mix of required & optional args (Niels Ganser)
82
+ * table_a.diff!(table_b) now uses column conversions from both tables (Table#map_column!) (Aslak Hellesøy)
83
+
84
+ === Bugfixes
85
+ * Upgrade Sinatra example to work with rack-test 0.3.0 and aslakhellesoy-webrat 0.4.4.1 (Aslak Hellesøy)
86
+ * require 'cucumber/webrat/table_locator' added to Spork environment for Rails (Anders Furseth)
87
+
88
+ === Changed Features
89
+ * The 'default' profile is now ALWAYS used unless you specify another profile or use the -P or --no-profile flag. (#344 Ben Mabey)
90
+
91
+ == 0.3.91 2009-07-27
92
+
93
+ === New Features
94
+ * CTRL-C will exit immediately instead of carrying on until all features are run. (Aslak Hellesøy)
95
+ * Run can be stopped programmatically by setting $cucumber_interrupted = true, for example in an After block. (Aslak Hellesøy)
96
+ * Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
97
+ * Table support for cuke4duke
98
+
99
+ == 0.3.90 2009-07-22
100
+
101
+ The Hot summer release
102
+
103
+ This is a hot summer in Norway, and Cucumbers are growing in abundance. To celebrate this we give you
104
+ a new release with lots of new features and bugfixes. This is also one of the last releases in the 0.3 series
105
+ (hence the 0.3.90 number), so 0.4 (or maybe 1.0!) will be coming up soon. The highlights of this release are:
106
+
107
+ === Egality
108
+
109
+ English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
110
+ --language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
111
+ to your .feature files:
112
+
113
+ # language: fr
114
+ # Cucumber understands that this is French
115
+ Fonctionnalité: Trou de boulette
116
+
117
+ If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
118
+ or default to English if no --language option was specified. A nice side effect of this is that you can now
119
+ have features in several languages side by side and run them in the same cucumber. (Not recommended unless
120
+ you want to take polyglot programming to an extreme level).
121
+
122
+ === Table diffing (experimental)
123
+
124
+ When you pass a table as an argument to your Then steps you often want to compare that table
125
+ to some actual values. In previous releases you had to iterate over the table's values and manually
126
+ compare each row using cell.should equal('foo') or assert_equal('foo', cell). If a discrepancy was found
127
+ you'd get an error, but it was hard to see how the entire expected data set was different from the actual one.
128
+
129
+ With this release you have a much more powerful way to compare expected tables with actual data. An
130
+ Ast::Table object now has a new #diff!(table) method that you can invoke in your step definitions
131
+ that take table arguments. If the table you pass in is different from the expected table (from your
132
+ plain text step), Cucumber will print the difference for each of the row or column and fail your step.
133
+
134
+ The Table#diff! method expects an Array of Array, Array of Hash (similar to what you'd get from table#hashes)
135
+ or simply another Ast::Table object. Here is a simple example:
136
+
137
+ Then /^I should see the following cukes:$/ do |expected_cukes_table|
138
+ actual_table = ... # For example [['Latin', 'English'], ['Cucumis sativus', 'Cucumber'], ['Cucumis anguria', 'Burr Gherkin']]
139
+ expected_cukes_table.diff!(actual_table)
140
+ end
141
+
142
+ As an extra bonus we provide Webrat users with a new #table_at(selector) method that you can use to transform
143
+ an HTML table into an Array of Array, so that you can easily compare the contents of your HTML table to
144
+ expected data passed to a step. Here is an example:
145
+
146
+ Then /^I should see the following cukes:$/ do |expected_cukes_table|
147
+ expected_cukes_table.diff!(table_at('#cuke_table').to_a)
148
+ end
149
+
150
+ You can do the same trick to compare data from a Rails ActiveRecord table (although this is not a
151
+ recommended practice - your Then steps should compare against what users *see*, not what's in the
152
+ database):
153
+
154
+ # This requires that you use the column names in the header of the plain text expected table
155
+ Then /^I should have the following cukes in the database:$/ do |expected_cukes_table|
156
+ expected_cukes_table.diff!(Cuke.find(:all).map(&attributes))
157
+ end
158
+
159
+ === Environment variables
160
+
161
+ Another useful new feature is the ability to define environment variables on Cucumber's command line (just
162
+ like you can with Rake). Example:
163
+
164
+ cucumber FOO=BAR --format progress features
165
+
166
+ You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
167
+ for example enabling your super hack that validates all HTTP responses for XHTML validity.
168
+
169
+ This release also has several bugfixes related to --format and Before/After hooks.
170
+
171
+ === Bugfixes
172
+ * Fix some misspellings which affect test fail for Korean example (#373 Dongju Kim)
173
+ * Make it possible to write non-localized step definitions (#377 Aslak Hellesøy)
174
+ * Table cells containing unicode are rendered incorrectly (#386 Stefan Kanev)
175
+ * Before and After hooks run after everything is finished when there are 2+ --format options (#371 Aslak Hellesøy)
176
+ * When using --out and two --format the first is not delivered inline with execution of features (#361 Aslak Hellesøy)
177
+ * Profile Formatter broken (#370 Aslak Hellesøy)
178
+ * Default profile usage with --drb flag degrades gracefully with no server. (#367 Ben Mabey)
179
+ * JUnit formatter uses original file name instead of narrative to avoid accidental duplicate XML files (Aslak Hellesøy)
180
+ * rake gems no longer lists cucumber as a [F]ramework gem (David Chelimsky)
181
+ * CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
182
+ * Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
183
+ * Fixed bug with rake task raising errors with feature files with spaces (#380 Joseph Wilk)
184
+
185
+ === New Features
186
+ * I should see should support regexes (#382 John Ferlito)
187
+ * Access to scenario outline name from After hook scenario parameter (#342 Aslak Hellesøy)
188
+ * Allow multiple --tags switches to be passed
189
+ * Load step definitions from vendored gems and plugins (#388 Mike Burns)
190
+ * New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes)
191
+ * Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
192
+ * Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
193
+ * Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
194
+
195
+ === Changed Features
196
+ * When using --tags, positive tags are &&'ed while negative tags are ||'ed (John Wilger)
197
+ * The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
198
+ * Visitor.visit_table_cell_value(value, col_width, status) is now visitor.visit_table_cell_value(value, status)
199
+
200
+ == 0.3.11 2009-06-05
201
+
202
+ This release just fixes a tiny bug in the formatter to fix an incompatibility
203
+ with the latest RedMine release. It should have been included in 0.3.10, but
204
+ was forgotten.
205
+
206
+ === Bugfixes
207
+ * Formatter API was broken in 0.3.9 (Roman Chernyatchik)
208
+
209
+ == 0.3.10 2009-06-05
210
+
211
+ The Spork Release!
212
+
213
+ This release has an exciting new feature - a new --drb switch! This magic switch lets you run your
214
+ features much faster than before, because you can eliminate the startup time for your code. This is
215
+ thanks to a brand new gem called Spork by Tim Harper and Ben Mabey. (You can find out more about Spork
216
+ here: http://github.com/timcharper/spork/tree/master). You can start Spork and have it preload your
217
+ application in a separate process. Spork listens for DRb connections, and when you run cucumber with
218
+ --drb the features will run inside the Spork server instead. Spork provides two simple hooks for preloading
219
+ your application - one for framework/stable code (Spork.prefork) and one for the code that *you* write and
220
+ change often (Spork.each_run). Keep in mind that all World, Before, and other Cucumber hooks need to be
221
+ in the Spork.each_run block. Using Spork works great for Ruby on Rails, which can take a while to load,
222
+ but --drb and Spork aren't tied to Rails at all. The new --drb switch also works great alongside autotest
223
+ (just add --drb to your autotest profile in cucumber.yml), so now you can get even faster feedback.
224
+
225
+ Cucumber's built-in cucumber generator now has a new --spork switch, so when you bootstrap your Rails
226
+ application for cucumber, you can have spork configuration set up out of the box. (It's just a
227
+ slightly different env.rb.)
228
+
229
+ Although Spork was in mind when the --drb switch was added it is important to realize that all that was added
230
+ to Cucumber was a DRb client. Any DRb server that adheres to this protocol can be used with Cucumber's --drb
231
+ switch. While Spork is geared towards removing the load time to give you a faster feedback loop you could
232
+ just as easily use this client with a server that distributes your features to run in parallel. Someone just
233
+ needs to write such a server. ;)
234
+
235
+ This release also has some minor bugfixes related to RSpec and Rails interop.
236
+
237
+ === Bugfixes
238
+ * RSpec's be_* matchers did not work in 0.3.9 and probably earlier versions. Now they do. (Aslak Hellesøy)
239
+ * The Rails cucumber environment won't declare gem dependencies if the plugin exists. (Aslak Hellesøy)
240
+ * The Rails cucumber generator will no longer declare gem dependencies on rspec if you use --testunit. (Aslak Hellesøy)
241
+
242
+ === New features
243
+ * Spork support via --drb. (Ben Mabey)
244
+ * Added a Ast::Feature#name method for convenience. (Aslak Hellesøy)
245
+
246
+ === Changed features
247
+ * The HTML formatter wraps examples in a div, and distinguishes between Scenario and Scenario Outline. (Aslak Hellesøy)
248
+
249
+ == 0.3.9 2009-05-27
250
+
251
+ Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber
252
+ generator which is fixed in 0.3.9.
253
+
254
+ === Bugfixes
255
+ * Fix broken Rails cucumber generator (Tim Glen)
256
+ * The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy)
257
+
258
+ == 0.3.8 2009-05-27
259
+
260
+ This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you
261
+ use Cucumber with a Rails app we *strongly* recommend you bootstrap Cucumber again:
262
+
263
+ ruby script/generate cucumber
264
+
265
+ === New Features
266
+ * Rails cucumber generator sets up default gem dependencies in cucumber environment.
267
+ * The duration of a run is reported by formatters - same format as the Linux time command (#228 Aslak Hellesøy)
268
+ * Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
269
+ * Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
270
+ * HTML formatter renders @tags (but the CSS is still ugly)
271
+
272
+ === Removed/changed features
273
+ * The Cucumber Rake task will again fork by default (as 0.3.3 and earlier). Forking must be turned off explicitly. (Aslak Hellesøy)
274
+
275
+ === Bugfixes
276
+ * Better coexistence with RSpec - Cucumber now *neuters* the part of RSpec that tries to parse ARGV.
277
+ * The differ= exception is gone (#325, #340 Aslak Hellesøy)
278
+
279
+ == 0.3.7 2009-05-22
280
+
281
+ This is the "Help JetBrains RubyMine" release!
282
+
283
+ === New Features
284
+ * Added new Given alias for Catalan: Donat|Donada (Lleïr Borràs Metje)
285
+ * New --expand option. This will print Scenario Outlines once for each Example row - with values expanded. (#327 Aslak Hellesøy)
286
+ * You can override the formatter in Rails-generated rake tasks with the CUCUMBER_FORMAT environment variable (#335 Aslak Hellesøy)
287
+
288
+ === Bugfixes
289
+ * 'specs' folder needs to be renamed back to 'spec' (#339 Aslak Hellesøy)
290
+ * CUCUMBER_OPTS doesn't work for cucumber rake tasks (#336 Aslak Hellesøy)
291
+
292
+ == 0.3.6 2009-05-20
293
+
294
+ Kanban! With this release you can tag features or scenarios that are work in progress
295
+ with a tag and use the new --wip switch.
296
+
297
+ Another handy feature in this release is that you can package your own formatters in RubyGems.
298
+
299
+ === New features
300
+ * New --wip switch. See http://www.jroller.com/perryn/entry/bdd_on_a_multi_disciplined (Perryn Fowler)
301
+ * Added a AfterStep hook (Luke Melia)
302
+ * New aliases for Vietnamese (Ngoc Dao)
303
+ * Automatic require of custom formatters. --require is no longer needed to load them, and they can be in Ruby gems. (Aslak Hellesøy)
304
+ * Lazy loading of built-in formatters. Should improve startup time a little bit.
305
+
306
+ === Bugfixes
307
+ * Gracefully handle exceptions in After block (#330 Matt Wynne)
308
+ * Feature with only Background doesn't run hooks (#314, #329 Aslak Hellesøy)
309
+
310
+ == 0.3.5 2009-05-14
311
+
312
+ Let's make a new release today because two annoying bugs are fixed.
313
+
314
+ === Bugfixes
315
+ * Allow feature element names to contain Gherkin keywords as long as they are not the first word on a newline (#319, #307 Joseph Wilk)
316
+
317
+ == 0.3.4 2009-05-14
318
+
319
+ A couple of great new features in this release. Running with Rake is faster than before,
320
+ and there is a brand new JUnit formatter - great for Continuous Integration reports!
321
+
322
+ This release was made especially for the Oslo XP Meetup today.
323
+
324
+ ** IMPORTANT UPGRADE NOTES FOR RAILS USERS **
325
+
326
+ Running Cucumber features in the same Ruby interpreter as Rake doesn't seem to work,
327
+ so you have to explicitly tell the task to fork (like it was doing by default in prior
328
+ versions). In lib/tasks/cucumber.rake:
329
+
330
+ Cucumber::Rake::Task.new(:features) do |t|
331
+ t.fork = true # Explicitly fork
332
+ t.cucumber_opts = %w{--format pretty}
333
+ end
334
+
335
+ (If you run script/generate cucumber this will be done for you).
336
+ Alternatively you can omit forking and run features like this:
337
+
338
+ RAILS_ENV=test rake features
339
+
340
+ However, setting the RAILS_ENV is easy to forget, so I don't recommend relying on this.
341
+
342
+ === Bugfixes
343
+ * Hooks (World, Before, After) are no longer executed when --dry-run (Aslak Hellesøy)
344
+ * Proper UTF8 use in HTML formatter (Herminio Torres)
345
+ * Problem with multiple terms in languages.yml (#321 Aslak Hellesøy)
346
+
347
+ === New features
348
+ * New JUnit formatter (Gareth Jones)
349
+ * Support for Vietnamese (Ngoc Dao)
350
+ * Added aliases for Feature and But in Japanese (Leonard Chin)
351
+ * Support for Catalan (Francesc Esplugas)
352
+
353
+ === Changed features
354
+ * --exclude flag now works on ruby files in addition to feature files (#312 Ben Mabey)
355
+ * The Java example under examples/java uses Ant instead of Rake - and the new JUnit formatter.
356
+ * Rake task should not shell out (#297 Aslak Hellesøy)
357
+ The Cucumber Rake task will run Cucumber in the same Ruby interpreter as Rake itself
358
+ unless explicitly told to fork a new interpreter. This is to increase speed. You can
359
+ force a new interpreter by setting fork=true or rcov=true in the task.
360
+
361
+ == 0.3.3 2009-05-10
362
+
363
+ Minor bugfix release, made specially for EuRuKo!
364
+
365
+ === Bugfixes
366
+ * Summaries are no longer printed in an empty () if there are no scenarios/steps (Aslak Hellesøy)
367
+ * Background, Scenario Outline, Before Hook interaction (#309 Aslak Hellesøy)
368
+ * Multiline String snippets no longer give misleading info. It's a String, not a PyString that's sent to step def.
369
+
370
+ === Removed/changed features
371
+ * New aliases: --no-source/-s, --name/-n (#317 Lonnon Foster)
372
+
373
+ == 0.3.2 2009-05-05
374
+
375
+ This release has some minor bug fixes and new features.
376
+ Nothing major, but we need a release for RailsConf'09 in Las Vegas!
377
+
378
+ === Bugfixes
379
+ * rake tasks with profiles not respecting --require flags (#311 Ben Mabey)
380
+ * Step table with blank cell fails (#308 JohnnyT)
381
+ * Fixed error where unused table cells in Examples where raising exceptions due to having no status (#302 Joseph Wilk)
382
+
383
+ === New features
384
+ * Support for Hebrew (Ido Kanner)
385
+ * Summary should report scenarios (#32 Aslak Hellesøy)
386
+ * Examples and the associated tables are indented one level deeper than Scenario Outline. (Aslak Hellesøy)
387
+ * Added support for Examples selection when using --name. (#295 Joseph Wilk)
388
+
389
+ == 0.3.1 2009-04-26
390
+
391
+ This release has several minor bug fixes and new features. With the addition of Latvian and Hungarian Cucumber
392
+ now supports 32(!!) languages.
393
+
394
+ === New features
395
+ * Support multiline names for Scenarios, Scenario Outlines, Backgrounds, Examples (#231 Joseph Wilk)
396
+ * Added #headers to Cucumber::Ast::Table (Ben Mabey)
397
+ * New translation for Latvian (Vitauts Stočka)
398
+ * New translation for Hungarian (#287 Bence Golda)
399
+ * Pick up failure on after hook (#272 Aslak Hellesøy)
400
+
401
+ === Bugfixes
402
+ * Pretty formatter not colouring Examples tables correctly (#304 Aslak Hellesøy)
403
+ * Problem using --scenario and Scenario Outline (#298 Aslak Hellesøy)
404
+ * Tag Hook gets executed always there is a background (#301 Aslak Hellesøy)
405
+ * Feature which only has a Background with steps causes an exception (#306 Aslak Hellesøy)
406
+ * Gem no longer depends on Hoe (Aslak Hellesøy)
407
+ * Span html tags appear on HTML results with 0.3.0 (#299 Aslak Hellesøy)
408
+ * Fixed incorrect colours in pretty formatter's table headers for outline tables (Aslak Hellesøy)
409
+ * Exceptions from steps called within hooks are now reraised. (#294 Ben Mabey)
410
+
411
+ === Removed/changed features
412
+ * --scenario handle has been removed and replaced with --name which supports partial matches, regexp special characters, running named backgrounds (#295 Joseph Wilk)
413
+
414
+ == 0.3.0 2009-04-14
415
+
416
+ This release has some minor changes to the APIs, but big enough that a new major release is in order.
417
+ The biggest change is the new semantics of the #World method. Previously you would call this method
418
+ several times, passing a Proc and extending the world object of the previous one with a Ruby module.
419
+ The problem was that there was no nice way to ensure the order in which these procs were called, which
420
+ led to some unexpected situations. In this release you can only register a single World proc. If you
421
+ want to extend a world with certain modules, you simply call the #World method with the module(s)
422
+ you wish to extend the World with. The Sinatra example illustrates how to do this. Also check out
423
+ the RDoc for Cucumber::StepMother#World.
424
+
425
+ The Visitor API (which is used for formatters) has also changed slightly. However, we have tried to
426
+ do this in a backwards compatible way, so if you have custom formatters for Cucumber 0.2 they should
427
+ still work.
428
+
429
+ One of the most significant new features is Tagged Hooks: http://wiki.github.com/aslakhellesoy/cucumber/hooks
430
+ This lets you associate Before and After blocks with specific scenarios.
431
+
432
+ We are also deprecating the step_list, step_pattern, feature_list, and feature_pattern accessors on
433
+ Cucumber::Rake::Task. These accessors will be completely removed in version 0.4. For complex settings
434
+ please rely on cucumber profiles in your rake tasks:
435
+ http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles
436
+
437
+ === New features
438
+ * Use Hooks with @tags (#229 Aslak Hellesøy)
439
+ * Rake task supports cucumber.yml profiles (#187 Ben Mabey)
440
+ * Field value steps for Webrat (Jack Chen)
441
+ * Added translation for Bulgarian (Krasimir Angelov)
442
+ * Updated translation for Polish (#273 Grzegorz Marszałek)
443
+ * Only a single World proc can be registered. World extension now happens by calling #World with ruby modules.
444
+ * Portuguese uses Funcionalidade in stead of Característica and accented words are aliased with unaccented ones (Alexandre da Silva and Felipe Coury).
445
+ * The usage formatter also prints unused step definitions (Aslak Hellesøy)
446
+ * Better exception if a World proc returns nil. (Aslak Hellesøy)
447
+ * Allow Step Definitions to use |*varargs|, but only on Ruby 1.9. (Aslak Hellesøy)
448
+ * Snippets for steps that use Step Tables or PyStrings include block param and object type hint comment (#247 Joseph Wilk)
449
+ * Support description string for Backgrounds (#271 Joseph Wilk)
450
+
451
+ === Bugfixes
452
+ * After methods not being executed when Background fails (#288 Luismi Cavallé)
453
+ * Fixed dependency on internal files in rspec breaks cucumber w/ rspec-1.2.4 (#291 Aslak Hellesøy)
454
+ * Fix color use when using autotest on Linux. (Hans de Graaff)
455
+ * Fixed incorrect calculation of pystring indentation (#279 Eugene Naydanov)
456
+ * Fixed --format html leads to an error (#252 Aslak Hellesøy)
457
+ * Fixed Background runs twice (#255 Aslak Hellesøy)
458
+ * Fixed Background Transactions and :xx (#270 Aslak Hellesøy)
459
+ * Fixed Autospec failing with cucumber 0.2 (#254 Aslak Hellesøy)
460
+ * Sibling file detecting not working (#278 Aslak Hellesøy)
461
+
462
+ === Removed/changed features
463
+ * The visitor API has changed slightly:
464
+ ** #visit_step_name, #visit_multiline_arg and #visit_exception are no longer official API methods.
465
+ ** #visit_step_result replaces those 3 methods.
466
+ ** Table and PyString no longer hold status information. Each visitor subclass should store state in @state if needed.
467
+ ** #visit_py_string no longer takes a status argument.
468
+
469
+ == 0.2.3 2009-03-30
470
+
471
+ This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments
472
+ in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables.
473
+
474
+ === New features
475
+ * Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth)
476
+ * Use skipped_param color for examples table header (#266 Eugene Naydanov)
477
+ * Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn)
478
+ * Windows/JRuby users can now enjoy colourful output (via http://github.com/aslakhellesoy/ansicolor) (#166 Aslak Hellesøy)
479
+ * Ambiguous step errors hint about --guess (unless --guess already on) (Aslak Hellesøy)
480
+ * Added translation for Slovak (Ahmed Al Hafoudh)
481
+ * Updated translation for Dutch (Bart Zonneveld)
482
+ * Updated translation for Italian (Alessandro Baroni)
483
+ * Updated translation for Japanese (KAKUTANI Shintaro)
484
+
485
+ === Bugfixes
486
+ * Fixed step name after step keyword without space (#265 Aslak Hellesøy)
487
+ * Backtrace is back in HTML reports (Aslak Hellesøy)
488
+
489
+ == 0.2.2 2009-03-25
490
+
491
+ This release includes some minor changes to make Cucumber work with pure Java. Cucumber
492
+ has already worked with Java for a while (using JRuby and step definitions in Ruby),
493
+ but now you can write step definitions in pure Java!
494
+
495
+ Check out the Cucumber Java project for more details:
496
+ http://github.com/aslakhellesoy/cucumber_java/tree/master
497
+
498
+ == 0.2.1 2009-03-25
499
+
500
+ This release fixes a few minor bugs and adds a couple of new features.
501
+
502
+ == Bugfixes
503
+ * Fixed Cucumber, and rails controller error handling (#49 Matt Patterson)
504
+ * HTML Formatter doesn't work correctly with scenario Outlines. (#260 Aslak Hellesøy)
505
+ * After blocks are run in reverse order of registration. (#113 Aslak Hellesøy)
506
+ * Snippets are showing 'Ands' (#249 Aslak Hellesøy)
507
+
508
+ === New features
509
+ * Snippets use a regexp and block arguments if the step name has "quoted" arguments. (Aslak Hellesøy)
510
+ * Cucumber::Ast::Feature#to_sexp includes the file name. (Aslak Hellesøy)
511
+ * support/env.rb is not loaded when --dry-run is specified. This is to increase performance. (Aslak Hellesøy)
512
+ * New usage formatter. This is the foundation for editor autocompletion and navigation between steps and step definitions. (#209 Aslak Hellesøy)
513
+
514
+ === Removed features
515
+ * -S/--step-definitions option introduced in 0.2.0 is removed. Use --format usage [--dry-run] [--no-color].
516
+
517
+ == 0.2.0 2009-03-18
518
+
519
+ This release sports a bunch of new and exciting features, as well a major rewrite of Cucumber's internals.
520
+ The rewrite was done to address technical debt and to have a code base that is easier to evolve and maintain.
521
+
522
+ There are some changes to the Gherkin language that breaks backwards compatible with the 0.1.x series.
523
+ Most importantly, "GivenScenario" and "More Examples" no longer exist. See the "Removed features" section
524
+ below for more details on how to use alternatives.
525
+
526
+ Since the grammar has changed, there are some new keywords. We have to rely on the community
527
+ to provide updated translations. This is much easier than before - just update languages.yml.
528
+ There is no static code generation anymore. To list all languages:
529
+
530
+ cucumber --lang help
531
+
532
+ And to list the keywords for a particular language:
533
+
534
+ cucumber --lang en-lol help
535
+
536
+ There are some really awesome new features in this release: Tagging, Autoformatting, automatic
537
+ aliasing of keywords in all languages, full Ruby 1.9 support and improved output
538
+ for multiline arguments are some of the highlights.
539
+
540
+ == Bugfixes
541
+ * New StepInvocation breaks console formatter for pending steps. (#241 Jacob Radford)
542
+ * Within Scenario Outlines when replacing with a nil in a step name use empty string instead. (#237 Joseph Wilk)
543
+ * Fixed bug with Scenario Outlines incorrectly replacing values in step tables with nil. (#237 Joseph Wilk)
544
+ * Within Scenario Outlines when replacing with a nil in multiline strings use empty string instead. (#238 Joseph Wilk)
545
+ * Re-structure the ast: Feature -> Background -> (Scenario|ScenarioOutline)*. Fixes bug with background being called outside transactions. (#181 Joseph Wilk)
546
+ * --strict always exits with status 1 (#230 Tim Cuthbertson)
547
+ * Fix error with nil values in tables raising an exception (#227 Joseph Wilk)
548
+ * Add support for using << in formatters to ensure the html formatter works (#210 Joseph Wilk)
549
+ * Explicitly require env.rb files first to avoid potential load order problems. (#213, Ben Mabey, Randy Harmon)
550
+ * Depend on polyglot version (0.2.4) to avoid masking require errors. (Aslak Hellesøy).
551
+ * -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy)
552
+ * Errors with rspec-rails matchers in cucumber 0.1.99 (#173 David Chelimsky)
553
+ * Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy)
554
+ * Really skip skipped steps (#90 Aslak Hellesøy)
555
+ * No output for multi-line strings (#71 Aslak Hellesøy)
556
+ * Fix cucumber/formatter/unicode flaws on Windows (#145 Michael)
557
+ * Autotest-related Bugs: YAML missing (#136 Tobias Pape)
558
+ * Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother)
559
+ * Nested steps don't show mismatch (#116 Aslak Hellesøy)
560
+ * Pending steps in > steps called from steps (#65 Aslak Hellesøy)
561
+
562
+ === New features
563
+ * Australian translation (Josh Graham)
564
+ * Added World#announce(announcment) which lets you output text to the formatted output (#222 Rob Kaufmann)
565
+ * Added Table#transpose to to allow use of vertically aligned table keys (Torbjørn Vatn, Aslak Hellesøy)
566
+ * Added Table#map_headers to to allow use of more readable headers (Rob Holland)
567
+ * New -S/--step-definitions option. Useful (among other things) for tools that implement automcompletion. (#208 Aslak Hellesøy).
568
+ * The cucumber.rake file defines a dummy :features task if Cucumber is not installed (#225 Josh Nichols)
569
+ * Added Table#map_column! to ease casting of cell values into relevant types (#223 Rob Holland)
570
+ * New --no-diff option (#218 Bryan Ash)
571
+ * Rails generators supports testunit and rspec option, defaulting to rspec (#217 Josh Nichols)
572
+ * Sinatra Example (#204 Rob Holland)
573
+ * Keywords can be aliased in languages.yml. See English for an example (examples: Examples|Scenarios)
574
+ * Adding support for Background (#153 Joseph Wilk)
575
+ * Added Česky/Czech (Vojtech Salbaba)
576
+ * New --no-multiline option to reduce noise in output. Useful if lots of features are failing. (Aslak Hellesøy)
577
+ * Added ability to pass URIs to cucumber in addition to files and directories. Useful for troubleshooting! (Aslak Hellesøy)
578
+ * Groups of tabular scenarios (#57 Aslak Hellesøy)
579
+ * Tagging scenarios and features. Pick the ones to run with --tags (#54 Aslak Hellesøy)
580
+ * Make the current scenario available to the steps. (#44 Aslak Hellesøy)
581
+ * Step definition snippets contain a 'pending' call (#84 Aslak Hellesøy)
582
+ * Call multiline steps from other steps (#144 Aslak Hellesøy)
583
+ * Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files. (Aslak Hellesøy)
584
+ * New --strict option exits with an error code if there are undefined steps. (#52 Aslak Hellesøy)
585
+ * Given, When, Then methods (used in step definitions) are automatically aliased to current language. Use $KCODE='u' in env.rb if needed.
586
+ * Run cucumber --language help to see all supported languages. (Aslak Hellesøy)
587
+ * Run cucumber --language LANG help to see keywords for a given language. (Aslak Hellesøy)
588
+ * Multiline arguments (tables and """ strings) are printed in the output. (Aslak Hellesøy)
589
+ * It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy)
590
+ * New --guess option tries to guess the best step definition match instead of raising Cucumber::Multiple. (Jake Howerton)
591
+
592
+ === Removed features
593
+ * "GivenScenario" is gone. Instead you can call Steps from Step Definitions, or use the new Background feature (#153)
594
+ * "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead.
595
+ * Pure Ruby features are no longer supported.
596
+ * Remove --color option in autotest. Can be added manually in cucumber.yml (#215 Jean-Michel Garnier)
597
+
598
+ == (0.1.16.4 aslakhellesoy-cucumber gem on GitHub)
599
+
600
+ Bugfix release.
601
+
602
+ IMPORTANT NOTE FOR RAILS USERS.
603
+ The template used to generate your features/support/env.rb has changed. You have to apply a minor change
604
+ manually for existing Rails projects when you upgrade to this version. Change this:
605
+
606
+ require 'webrat/rspec-rails'
607
+
608
+ to this:
609
+
610
+ require 'webrat/core/matchers'
611
+
612
+ === New features
613
+ * Finnish translation (Tero Tilus)
614
+ * Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp)
615
+
616
+ == Bugfixes
617
+ * Escaped quotes - \" - inside multiline strings will be unescaped.
618
+ * Flush output in HTML formatter since JRuby doesnt do it automatically (Diego Carrion)
619
+ * Better handling of ARGV (#169 David Chelimsky, Ben Mabey)
620
+ * Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy)
621
+
622
+ == 0.1.16 2009-01-19
623
+
624
+ This is a small bugfix release. The most notable improvement is compatibility with Webrat 0.4. Rails/Webrat users should
625
+ upgrade both Cucumber and Webrat gems.
626
+
627
+ === New features
628
+ * Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk)
629
+ * Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy)
630
+ * 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)
631
+ * Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp)
632
+
633
+ === Bugfixes
634
+ * 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é)
635
+
636
+ === Removed features
637
+
638
+ == 0.1.15 2009-01-08
639
+
640
+ Bugfix release
641
+
642
+ === New features
643
+ * 한국어! (Korean!) (John Hwang)
644
+
645
+ === Bugfixes
646
+ * --dry-run skips running before/after/steps (#147 Ian Dees)
647
+ * Fix a minor bug in the console formatter's summary (David Chelimsky)
648
+ * Better quoting of Scenario names in Autotest (Peter Jaros)
649
+ * Added some small workarounds for unicode handling on Windows (Aslak Hellesøy)
650
+
651
+ == 0.1.14 2009-01-04
652
+
653
+ This is the first release of Cucumber that runs on Ruby 1.9. There are still some encoding-related issues
654
+ with Arabic (ar), Japanese (ja) and Simplified Chinese (zh-CN). Patches are welcome. Other than that -
655
+ a couple of minor bug fixes and polishing.
656
+
657
+ === New features
658
+ * Pretty formatter shows number of scenarios (#139 Joseph Wilk)
659
+ * Rudimentary support for Ruby 1.9. Now it's ok to file Ruby 1.9-related bugs.
660
+
661
+ === Bugfixes
662
+ * Fixed "No such file or directory -- cucumber (LoadError)" bug with AutoTest (Aslak Hellesøy)
663
+ * Fixed `load_missing_constant': uninitialized constant Dispatcher error with Rails (Aslak Hellesøy)
664
+
665
+ === Removed features
666
+ * The #binary= method is gone from the Rake task. It will always point to the binary in the current gem. (Aslak Hellesøy)
667
+
668
+ == 0.1.13 2008-12-20
669
+
670
+ It's time for some new features again. Output is now much better since you can use diffing, tweak
671
+ the output colours and get the full --backtrace if you want. Managing your support/* files became
672
+ a little easier since they are now always loaded before the step definitions. Life became easier
673
+ for Windows users in Norway (and other countries using unicode in the features). Plus several other
674
+ bug fixes.
675
+
676
+ Enjoy!
677
+
678
+ === New features
679
+ * Console output is no longer bold, but regular. Step arguments are bold instead of blold+underlined. (Aslak Hellesøy)
680
+ * Console output can be configured with CUCUMBER_COLORS in your shell. (Aslak Hellesøy)
681
+ * Added new --backtrace option to show full backtrace (Aslak Hellesøy)
682
+ * Enable RSpec's diffing automatically if RSpec is loaded (Aslak Hellesøy)
683
+ * Files in support directories are loaded before any other file (i.e. step definitions.) (#120, Ben Mabey)
684
+ * The Rails features generator got some love and is now tested: http://github.com/aslakhellesoy/cucumber_rails (Aslak Hellesøy)
685
+ * --language is aliased to -l instead of -a (-l became available when --line was refactored) (Aslak Hellesøy)
686
+ * Scenario Outlines which through placeholders in the steps allow control of how scenario table values are used. (#57 Joseph Wilk)
687
+ * Scenario Outlines are now usable in pure ruby (Joseph Wilk)
688
+ * Add support for calling 'pending' from step definitions. (#112 Joseph Wilk)
689
+
690
+ === Bugfixes
691
+ * Make rails before filters work correctly (#122, #129 Guillermo Álvarez Fernández)
692
+ * Proper Unicode support for Windows command shells: Just require cucumber/formatter/unicode in env.rb (Aslak Hellesøy)
693
+ * Fixed disappearing "a" on Windows (#81 Aslak Hellesøy)
694
+ * Fixed a bug where row step outlines were loosing step tables. (#121 Joseph Wilk, Ben Mabey)
695
+ * The Cucumber Autotest plugin now launches JRuby if autotest is run with JRuby (Aslak Hellesøy)
696
+ * Provide helpful and non-confusing error message when specified profile is blank. (#118, Ben Mabey)
697
+ * Improve handling and error messages for malformed cucumber.yml files. (#117, Ben Mabey)
698
+ * document :x run option in command line help (#114, Aslak Hellesøy)
699
+ * Change 'visits' to 'visit' in features generator to comply with new Webrat API (Darius Roberts)
700
+
701
+ === Removed features
702
+
703
+ == 0.1.12 2008-12-04
704
+
705
+ This is the "getting serious with IronRuby release" - largely based on
706
+ "Patrick Gannon":http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx's
707
+ blog entry.
708
+
709
+ == New features
710
+ * Cucumber works with IronRuby/.NET - http://github.com/aslakhellesoy/cucumber/wikis/ironruby-and-net (Aslak Hellesøy)
711
+
712
+ == Bugfixes
713
+ * Fixed bug which was preventing coloring under Autotest (#111, Alan Larkin)
714
+
715
+ == Removed features
716
+ None
717
+
718
+ == 0.1.11 2008-12-02
719
+
720
+ Bugfix release with a couple of minor additional features to the command line options.
721
+
722
+ === New features
723
+ * Capture output from cucumber in Autotest (Alan Larkin)
724
+ * Update cucumber generator to work with latest Webrat (Bryan Helkamp)
725
+ * CUCUMBR LIKEZ 2 SPEEK WIF KATS. KTHXBAI (Aimee Daniells)
726
+ * Support for dynamically pluggable formatters (#99 Joseph Wilk)
727
+ * --verbose mode to see ruby files and feature files loaded by Cucumber (#106 Joseph Wilk)
728
+
729
+ === Bugfixes
730
+ * The jcode library is not loaded on JRuby/Rails. Workaround for http://tinyurl.com/55uu3u. (Aslak Hellesøy)
731
+ * Support including modules for class passed to --format (#109 Joseph Wilk)
732
+
733
+ === Removed features
734
+ * The cucumber gem no longer depends on the rspec gem. It must be downloaded manually if RSpec is used. (Jeff Rafter)
735
+
736
+ == 0.1.10 2008-11-25
737
+
738
+ This release mostly has smaller bugfixes. The most significant new feature is how
739
+ line numbers are specified. You can now run multiple features at specific lines numbers like this:
740
+
741
+ cucumber foo.feature:15 bar.feature:6:45:111
742
+
743
+ This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
744
+
745
+ === New features
746
+ * Added example showing how to use Cucumber with Test::Unit + Matchy instead of RSpec (Aslak Hellesøy)
747
+ * Yield existing world object to World block (#87 Aslak Hellesøy)
748
+ * AUTOFEATURE=tRue works (case insensitive) (Aslak Hellesøy)
749
+ * Initial support for .NET via IronRuby. (Aslak Hellesøy)
750
+ * Lithuanian translation (sauliusgrigaitis)
751
+ * New webrat step defintions to wrap the new selects_time, selects_date, and selects_datetime methods. (Ben Mabey)
752
+ * Try to load webrat gem if it's not installed as a plugin (Aslak Hellesøy)
753
+ * Support example.feature:20 or example.feature:10:20:30 syntax for running features at specific line number(s). (#88 Joseph Wilk)
754
+
755
+ === Bugfixes
756
+ * Windows - all the 'a' characters in the output have gone on strike (#81 Luis Lavena, Joseph Wilk, Aslak Hellesøy)
757
+ * Raise a nice error when encountering step definition without block (#95 Aslak Hellesøy)
758
+ * Features written using Ruby where breaking due to missing a line number (#91 Joseph Wilk)
759
+ * Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk)
760
+
761
+ === Removed features
762
+ * $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb.
763
+ * Step definition without a block being treated as pending (#64 Joseph Wilk)
764
+ * The --line option has been removed. Use the new file.feature:line format instead.
765
+
766
+ == 0.1.9 2008-11-12
767
+
768
+ With this release Cucumber supports 19 (!) natural languages:
769
+
770
+ * Arabic
771
+ * Chinese Simplified
772
+ * Danish
773
+ * Dutch
774
+ * Estonian
775
+ * French
776
+ * German
777
+ * Italian
778
+ * Japanese
779
+ * Malay
780
+ * Norwegian
781
+ * Polish
782
+ * Portuguese
783
+ * Romanian
784
+ * Russian
785
+ * Spanish
786
+ * Swedish
787
+ * Texan
788
+ * Welsh
789
+
790
+ Thanks a lot to everyone who has contributed translations. If you don't see your language here, please
791
+ add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages
792
+
793
+ Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration
794
+ support and how multiline strings work in feature files:
795
+
796
+ # In your .feature file
797
+ Then I should see
798
+ """
799
+ A string
800
+ that "indents"
801
+ and spans
802
+ several lines
803
+
804
+ """
805
+
806
+ # In your steps.rb file
807
+ Then 'I should see' do |text|
808
+ text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n"
809
+ end
810
+
811
+ The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away
812
+ in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first
813
+ spaces removed too.
814
+
815
+ === New features
816
+ * Added --[no-]color option to force color on or off (Peter Jaros)
817
+ * Step definition without a block will be treated as pending (#64 Joseph Wilk)
818
+ * Added support for Welsh (improvements welcome) (Joseph Wilk)
819
+ * Added --quiet option to hide all development aid output when using Pretty formatter (#69 Joseph Wilk)
820
+ * Added --no-snippets option to hide snippets for pending steps when using Pretty formatter (#69 Joseph Wilk)
821
+ * Added error messages concerning cucumber.yml. (#70 Ben Mabey)
822
+ * Added Autotest support - work in progress... (Peter Jaros)
823
+ * Added new --exclude option (Bryan Helkamp)
824
+ * Added new --scenario option (Peter Jaros)
825
+ * Renamed common_webrat.rb to webrat_steps.rb (Ben Mabey, Aslak Hellesøy)
826
+ * Added new feature[:feature_path] task (Roman Gonzalez)
827
+ * Added support for Polish (Joseph Wilk)
828
+ * Support specifying multiple formatters and multiple outputs (#47 Joseph Wilk)
829
+ * Added support for Japanese. (Kakutani Shintaro)
830
+ * Added support for Texan (improvements welcome). (Aslak Hellesøy)
831
+
832
+ === Bugfixes
833
+ * Pending step snippets should escape special Regexp characters (#82 Joseph Wilk)
834
+ * Scenario without a body shouldn't show up as complete (#63 Josh Knowles)
835
+ * Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk)
836
+ * Fixed next_column_index not resetting after large tables (#60, Barry Mitchelson)
837
+ * The HTML formatter was rendering everything twice. Cannot invoke visit_feature on formatters in executor (#72 Joseph Wilk)
838
+ * Row Scenarios need to support pending? in order for the Profile formatter to work (Joseph Wilk)
839
+ * Snippets are not shown for steps which already have a step definition (#65 Joseph Wilk)
840
+ * Prevent feature/scenario/pending step comments from containing '//' when running features by specifying a directory with a trailing '/' (Joseph Wilk)
841
+ * Scenario tables need spacing after them (#59 Joseph Wilk)
842
+ * Support running scenario table rows when using --line argument (#55 Joseph Wilk)
843
+ * Don't load cucumber.yml unless it exists (Aslak Hellesøy)
844
+ * 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)
845
+
846
+ === Removed features
847
+
848
+
849
+ == 0.1.8 2008-10-18
850
+
851
+ This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL.
852
+ In previous releases it has been possible to use tables to define "more examples" of a scenario i
853
+ n a FIT-style column fixture kind of way. Now you can also use tables as arguments to steps.
854
+
855
+ Tables used to define more examples after a scenario must now be prefixed. In English it looks like this:
856
+
857
+ Feature: Addition
858
+ In order to avoid silly mistakes
859
+ As a math idiot
860
+ I want to be told the sum of two numbers
861
+
862
+ Scenario: Add two numbers
863
+ Given I have entered 50 into the calculator
864
+ And I have entered 70 into the calculator
865
+ When I press add
866
+ Then the result should be 120 on the screen
867
+
868
+ More Examples:
869
+ | input_1 | input_2 | button | output |
870
+ | 20 | 30 | add | 50 |
871
+ | 2 | 5 | add | 7 |
872
+ | 0 | 40 | add | 40 |
873
+
874
+ Languages that are not updated yet will have to use "More Examples" until we get the translations.
875
+
876
+ Tables can also be used as arguments to individual steps. In fact, steps now support a single argument
877
+ that can span several lines. This can be a table or a string.
878
+
879
+ Example:
880
+
881
+ Given the following people exist:
882
+ | name | email | phone |
883
+ | Aslak | aslak@email.com | 123 |
884
+ | Joe | joe@email.com | 234 |
885
+ | Bryan | bryan@email.org | 456 |
886
+ When I search for email.com
887
+ Then I should see:
888
+ | name | email | phone |
889
+ | Aslak | aslak@email.com | 123 |
890
+ | Joe | joe@email.com | 234 |
891
+ And I should see:
892
+ "Some text
893
+ on several lines"
894
+
895
+ The step definitions for such multiline steps must define an extra block argument for the argument:
896
+
897
+ Given /the following people exist:/ do |people_table|
898
+ # people_table is of type Cucumber::Model::Table
899
+ # See RDoc for more info
900
+ end
901
+
902
+ Then /I should see:/ do |string|
903
+ # string is a plain old ruby String with leading spaces on each line removed
904
+ end
905
+
906
+ === New features
907
+ * Added profile formatter. (#35, Joseph Wilk)
908
+ * Added support for Chinese Simplified. (Liming Lian)
909
+ * Added support for Dutch. (Sjoerd Tieleman)
910
+ * Multiline steps are now supported. (#4, Aslak Hellesøy)
911
+ * Tables used to define more examples for a scenario must be prefixed "More Examples" (see languages.yml for other languages)
912
+ * Show the file and line number for scenarios as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
913
+ * Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
914
+ * Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
915
+
916
+ === Bugfixes
917
+ * Fixed speling errors in Spanish (Daniel Cadenas)
918
+ * ActionMailer delivery_method should not be set to test (#41, Luke Melia)
919
+ * Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky)
920
+ * Support comments above the first scenario (#31, Aslak Hellesøy)
921
+ * Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk)
922
+
923
+ === Removed features
924
+ * Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value.
925
+
926
+ === New features
927
+ * Added new --out option to make it easier to specify output from Rake and cucumber.yml
928
+
929
+ == 0.1.7 2008-10-05
930
+
931
+ This release fixes a few bugs and adds some new features. The most notable features are:
932
+
933
+ === Calling steps from steps
934
+
935
+ Step definitions are a little bit closer to having regular method semantics.
936
+ You define them, but now you can also call them from other steps. Here is an
937
+ example:
938
+
939
+ Given /I am logged in as an (.*) named (.*)$/ do |role, name|
940
+ Given "I am registered as #{role}, #{name}, secret"
941
+ When "I log in with #{name}, secret"
942
+ end
943
+
944
+ Given /I am registered as (.*), (.*), (.*)/ do |role, name, password|
945
+ # (Code removed for brevity)
946
+ end
947
+
948
+ When /I log in with (.*), (.*)/ do |name, password|
949
+ # (Code removed for brevity)
950
+ end
951
+
952
+ This means that steps can be reused in other steps. The GivenScenario feature achieves a similar
953
+ effect (on the scenario level), but this feature is something we're not very happy with, mostly
954
+ because it's not parameterisable. Calling steps from steps is.
955
+
956
+ GivenScenario will still be working several releases, but the plan is to remove it completely in
957
+ the 0.3.0 release.
958
+
959
+ === Seeing where a step is defined
960
+
961
+ Prior to this release it could be hard to find out where the ruby step definition matching
962
+ a plain text step is defined. Not anymore! Cucumber will now output this:
963
+
964
+ Scenario: Regular numbers
965
+ Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12
966
+ And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12
967
+ When I press divide # features/steps/calculator_steps.rb:16
968
+ Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20
969
+ And the result class should be Float # features/steps/calculator_steps.rb:24
970
+
971
+ === Bugfixes
972
+ * Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk)
973
+ * Fixed a bug in Webrat selects (Tim Glen)
974
+ * Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy)
975
+
976
+ === New features
977
+ * Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy)
978
+ * Added But keyword to all languages (#21, Aslak Hellesøy)
979
+ * Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy)
980
+ * Added more Webrat steps (#25, Tim Glen)
981
+
982
+ == 0.1.6 2008-10-01
983
+
984
+ First gem release!