cucumber 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. data/.rvmrc +1 -1
  2. data/.travis.yml +3 -2
  3. data/DEVELOPERS.md +48 -0
  4. data/History.md +22 -3
  5. data/README.md +13 -31
  6. data/Rakefile +1 -0
  7. data/cucumber.gemspec +18 -17
  8. data/cucumber.yml +3 -2
  9. data/examples/i18n/cs/Rakefile +6 -0
  10. data/examples/i18n/cs/features/addition.feature +17 -0
  11. data/examples/i18n/cs/features/division.feature +11 -0
  12. data/examples/i18n/cs/features/step_definitons/calculator_steps.rb +24 -0
  13. data/examples/i18n/cs/lib/calculator.rb +14 -0
  14. data/examples/i18n/hi/Rakefile +6 -0
  15. data/examples/i18n/hi/features/addition.feature +16 -0
  16. data/examples/i18n/hi/features/division.feature +10 -0
  17. data/examples/i18n/hi/features/step_definitons/calculator_steps.rb +24 -0
  18. data/examples/i18n/hi/lib/calculator.rb +15 -0
  19. data/examples/python/README.textile +2 -1
  20. data/examples/ruby2python/README.textile +2 -1
  21. data/features/.cucumber/stepdefs.json +1688 -445
  22. data/features/assertions.feature +69 -0
  23. data/features/formatter_callbacks.feature +189 -0
  24. data/features/html_formatter.feature +19 -0
  25. data/features/json_formatter.feature +8 -4
  26. data/features/nested_steps_with_second_arg.feature +73 -0
  27. data/features/step_definitions.feature +65 -0
  28. data/features/step_definitions/cucumber_steps.rb +18 -3
  29. data/fixtures/self_test/features/support/env.rb +1 -1
  30. data/gem_tasks/cucumber.rake +5 -3
  31. data/gem_tasks/downloads.rb +3 -3
  32. data/gem_tasks/stats +4 -2
  33. data/gem_tasks/yard.rake +31 -13
  34. data/legacy_features/default_snippets.feature +3 -3
  35. data/legacy_features/language_help.feature +4 -0
  36. data/legacy_features/report_called_undefined_steps.feature +1 -1
  37. data/legacy_features/snippet.feature +3 -3
  38. data/legacy_features/snippets_when_using_star_keyword.feature +1 -1
  39. data/legacy_features/step_definitions/cucumber_steps.rb +4 -3
  40. data/legacy_features/support/env.rb +1 -1
  41. data/legacy_features/support/fake_wire_server.rb +9 -9
  42. data/lib/autotest/cucumber_mixin.rb +14 -14
  43. data/lib/autotest/discover.rb +2 -0
  44. data/lib/cucumber.rb +2 -2
  45. data/lib/cucumber/ast.rb +1 -1
  46. data/lib/cucumber/ast/background.rb +11 -7
  47. data/lib/cucumber/ast/comment.rb +2 -2
  48. data/lib/cucumber/ast/doc_string.rb +1 -1
  49. data/lib/cucumber/ast/examples.rb +1 -1
  50. data/lib/cucumber/ast/feature.rb +2 -2
  51. data/lib/cucumber/ast/feature_element.rb +1 -1
  52. data/lib/cucumber/ast/multiline_argument.rb +2 -2
  53. data/lib/cucumber/ast/names.rb +2 -2
  54. data/lib/cucumber/ast/outline_table.rb +4 -5
  55. data/lib/cucumber/ast/scenario.rb +14 -14
  56. data/lib/cucumber/ast/scenario_outline.rb +4 -4
  57. data/lib/cucumber/ast/step.rb +3 -3
  58. data/lib/cucumber/ast/step_collection.rb +5 -5
  59. data/lib/cucumber/ast/step_invocation.rb +8 -8
  60. data/lib/cucumber/ast/table.rb +40 -27
  61. data/lib/cucumber/ast/tree_walker.rb +9 -8
  62. data/lib/cucumber/ast/visitor.rb +1 -1
  63. data/lib/cucumber/cli/configuration.rb +10 -10
  64. data/lib/cucumber/cli/drb_client.rb +1 -1
  65. data/lib/cucumber/cli/main.rb +3 -3
  66. data/lib/cucumber/cli/options.rb +3 -2
  67. data/lib/cucumber/cli/profile_loader.rb +1 -1
  68. data/lib/cucumber/configuration.rb +12 -12
  69. data/lib/cucumber/constantize.rb +11 -2
  70. data/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb +1 -1
  71. data/lib/cucumber/core_ext/instance_exec.rb +4 -4
  72. data/lib/cucumber/core_ext/proc.rb +3 -3
  73. data/lib/cucumber/errors.rb +1 -1
  74. data/lib/cucumber/feature_file.rb +1 -1
  75. data/lib/cucumber/formatter/ansicolor.rb +36 -23
  76. data/lib/cucumber/formatter/console.rb +45 -25
  77. data/lib/cucumber/formatter/debug.rb +7 -7
  78. data/lib/cucumber/formatter/duration.rb +1 -1
  79. data/lib/cucumber/formatter/gherkin_formatter_adapter.rb +7 -0
  80. data/lib/cucumber/formatter/gpretty.rb +1 -1
  81. data/lib/cucumber/formatter/html.rb +52 -53
  82. data/lib/cucumber/formatter/interceptor.rb +2 -2
  83. data/lib/cucumber/formatter/json.rb +1 -1
  84. data/lib/cucumber/formatter/json_pretty.rb +2 -1
  85. data/lib/cucumber/formatter/junit.rb +1 -1
  86. data/lib/cucumber/formatter/ordered_xml_markup.rb +1 -1
  87. data/lib/cucumber/formatter/pretty.rb +12 -12
  88. data/lib/cucumber/formatter/progress.rb +5 -5
  89. data/lib/cucumber/formatter/rerun.rb +5 -5
  90. data/lib/cucumber/formatter/stepdefs.rb +1 -1
  91. data/lib/cucumber/formatter/steps.rb +6 -6
  92. data/lib/cucumber/formatter/summary.rb +6 -6
  93. data/lib/cucumber/formatter/unicode.rb +18 -18
  94. data/lib/cucumber/formatter/usage.rb +7 -7
  95. data/lib/cucumber/js_support/js_dsl.js +1 -1
  96. data/lib/cucumber/language_support.rb +1 -1
  97. data/lib/cucumber/parser/gherkin_builder.rb +33 -33
  98. data/lib/cucumber/platform.rb +3 -2
  99. data/lib/cucumber/py_support/py_dsl.py +2 -2
  100. data/lib/cucumber/py_support/py_language.py +2 -2
  101. data/lib/cucumber/py_support/py_language.rb +2 -2
  102. data/lib/cucumber/rake/task.rb +4 -3
  103. data/lib/cucumber/rb_support/rb_dsl.rb +10 -10
  104. data/lib/cucumber/rb_support/rb_language.rb +27 -19
  105. data/lib/cucumber/rb_support/rb_step_definition.rb +39 -11
  106. data/lib/cucumber/rb_support/rb_transform.rb +3 -3
  107. data/lib/cucumber/rb_support/rb_world.rb +15 -15
  108. data/lib/cucumber/rb_support/regexp_argument_matcher.rb +1 -1
  109. data/lib/cucumber/rspec/disable_option_parser.rb +1 -1
  110. data/lib/cucumber/rspec/doubles.rb +1 -1
  111. data/lib/cucumber/runtime.rb +11 -10
  112. data/lib/cucumber/runtime/features_loader.rb +6 -6
  113. data/lib/cucumber/runtime/for_programming_languages.rb +8 -15
  114. data/lib/cucumber/runtime/results.rb +6 -6
  115. data/lib/cucumber/runtime/support_code.rb +37 -28
  116. data/lib/cucumber/runtime/user_interface.rb +4 -4
  117. data/lib/cucumber/step_definition_light.rb +4 -4
  118. data/lib/cucumber/step_definitions.rb +2 -3
  119. data/lib/cucumber/step_match.rb +6 -6
  120. data/lib/cucumber/step_mother.rb +1 -1
  121. data/lib/cucumber/term/ansicolor.rb +22 -22
  122. data/lib/cucumber/wire_support/configuration.rb +11 -14
  123. data/lib/cucumber/wire_support/connection.rb +10 -9
  124. data/lib/cucumber/wire_support/request_handler.rb +3 -3
  125. data/lib/cucumber/wire_support/wire_exception.rb +3 -3
  126. data/lib/cucumber/wire_support/wire_language.rb +11 -11
  127. data/lib/cucumber/wire_support/wire_packet.rb +7 -5
  128. data/lib/cucumber/wire_support/wire_protocol.rb +6 -6
  129. data/lib/cucumber/wire_support/wire_protocol/requests.rb +20 -20
  130. data/lib/cucumber/wire_support/wire_step_definition.rb +4 -4
  131. data/spec/cucumber/ast/background_spec.rb +4 -4
  132. data/spec/cucumber/ast/doc_string_spec.rb +8 -8
  133. data/spec/cucumber/ast/feature_factory.rb +4 -4
  134. data/spec/cucumber/ast/feature_spec.rb +18 -18
  135. data/spec/cucumber/ast/outline_table_spec.rb +3 -3
  136. data/spec/cucumber/ast/step_spec.rb +4 -4
  137. data/spec/cucumber/ast/table_spec.rb +50 -29
  138. data/spec/cucumber/ast/tree_walker_spec.rb +12 -4
  139. data/spec/cucumber/broadcaster_spec.rb +1 -1
  140. data/spec/cucumber/cli/configuration_spec.rb +10 -4
  141. data/spec/cucumber/cli/drb_client_spec.rb +1 -1
  142. data/spec/cucumber/cli/main_spec.rb +28 -7
  143. data/spec/cucumber/cli/options_spec.rb +3 -3
  144. data/spec/cucumber/configuration_spec.rb +4 -4
  145. data/spec/cucumber/constantize_spec.rb +2 -0
  146. data/spec/cucumber/core_ext/proc_spec.rb +7 -7
  147. data/spec/cucumber/formatter/ansicolor_spec.rb +2 -2
  148. data/spec/cucumber/formatter/duration_spec.rb +2 -2
  149. data/spec/cucumber/formatter/html_spec.rb +31 -31
  150. data/spec/cucumber/formatter/interceptor_spec.rb +10 -0
  151. data/spec/cucumber/formatter/progress_spec.rb +1 -1
  152. data/spec/cucumber/formatter/spec_helper.rb +7 -7
  153. data/spec/cucumber/rake/forked_spec.rb +15 -2
  154. data/spec/cucumber/rake/rcov_spec.rb +2 -2
  155. data/spec/cucumber/rb_support/rb_language_spec.rb +34 -17
  156. data/spec/cucumber/rb_support/rb_step_definition_spec.rb +45 -35
  157. data/spec/cucumber/rb_support/rb_transform_spec.rb +3 -3
  158. data/spec/cucumber/runtime/for_programming_languages_spec.rb +31 -0
  159. data/spec/cucumber/runtime/results_spec.rb +5 -5
  160. data/spec/cucumber/runtime/support_code_spec.rb +13 -2
  161. data/spec/cucumber/runtime_spec.rb +7 -7
  162. data/spec/cucumber/step_match_spec.rb +2 -2
  163. data/spec/cucumber/wire_support/configuration_spec.rb +16 -6
  164. data/spec/cucumber/wire_support/connection_spec.rb +25 -11
  165. data/spec/cucumber/wire_support/wire_exception_spec.rb +3 -3
  166. data/spec/cucumber/wire_support/wire_language_spec.rb +3 -3
  167. data/spec/cucumber/wire_support/wire_packet_spec.rb +4 -4
  168. data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
  169. data/spec/spec_helper.rb +2 -2
  170. metadata +98 -128
  171. data/legacy_features/html_formatter.feature +0 -8
  172. data/legacy_features/html_formatter/a.html +0 -561
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm gemset use cucumber
1
+ rvm gemset use cucumber --create
@@ -1,6 +1,7 @@
1
- rvm:
1
+ rvm:
2
+ - 2.0.0
2
3
  - 1.9.3
3
- - 1.9.2
4
+ - 1.8.7
4
5
 
5
6
  # whitelist
6
7
  branches:
@@ -0,0 +1,48 @@
1
+ # Contributing to Cucumber
2
+
3
+ This document is a guide for those maintaining Cucumber, and others who would like to submit patches.
4
+
5
+ ## Note on Patches/Pull Requests
6
+
7
+ * Fork the project. Make a branch for your change.
8
+ * Make your feature addition or bug fix.
9
+ * Make sure your patch is well covered by tests. We don't accept changes to Cucumber that aren't tested.
10
+ * Please do not change the Rakefile, version, or history.
11
+ (if you want to have your own version, that is fine but
12
+ bump version in a commit by itself so we can ignore when we merge your change)
13
+ * Send us a pull request.
14
+
15
+ ## Running tests
16
+
17
+ gem install bundler
18
+ bundle install
19
+ bundle exec rake
20
+
21
+ ## Release Process
22
+
23
+ Before you even attempt to do a release, make sure you can log into cukes.info and touch a file in /var/www/cucumber/api/ruby (see gem_tasks/yard.rake). You need to be able to do this in order to upload YARD docs as part of the release.
24
+
25
+ * Bump the version number in `lib/cucumber/platform.rb`.
26
+ * Make sure `History.md` is updated with the upcoming version number, and has entries for all fixes.
27
+ * No need to add a `History.md` header at this point - this should be done when a new change is made, later.
28
+ * Make sure you have up-to-date and clean copy of cucumber/cucumber.github.com.git at the same level as cucumber repo
29
+
30
+ Now release it
31
+
32
+ bundle update
33
+ bundle exec rake
34
+ git commit -m "Release X.Y.Z"
35
+ rake release
36
+
37
+ ## Gaining Release Karma
38
+
39
+ To become a release manager, create a pull request adding your name to the list below, and include your Rubygems email address in the ticket. One of the existing Release managers will then add you.
40
+
41
+ Current release managers:
42
+ * Matt Wynne
43
+ * Aslak Hellesøy
44
+ * Oleg Sukhodolsky
45
+
46
+ To grant release karma, issue the following command:
47
+
48
+ gem owner cucumber --add <NEW OWNER RUBYGEMS EMAIL>
data/History.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [1.2.2](https://github.com/cucumber/cucumber/compare/v1.2.1...v1.2.2)
2
+
3
+ ### New Features
4
+ * Ruby 2.0.0 support (#377 Matt Wynne & #357 @charliesome)
5
+ * Capture duration value for json formatter (#329 Rick Beyer)
6
+ * Added support for Hindi (hi), although some systems may need to install fonts which support the Devanagari script.
7
+ * Obey program suffix when invoking bundler (#324 Eric Hodel)
8
+
9
+ ### Bugfixes
10
+ * Fix class loading problems --format option had (#345, #346 @ksylvest)
11
+ * Exit with failure status when interrupted (#299 @aaronjensen)
12
+ * Cannot map table headers after table hashes is referenced (#275 @chrisbloom7 / Matt Wynne)
13
+ * (before|after)_step aren't called when scenario outline's table is processed (#284 Oleg Sukhodolsky)
14
+ * Raise exception when remote socket end disconnects using wire protocol (#348 @rdammkoehler)
15
+ * Fix --dry-run option ignored when set via profile (#248 / #255 Igor Afonov)
16
+ * More clear suggested ruby code for undefined steps (#328 / #331 @martco)
17
+ * Fix exception in Html formatter with --expand mode and undefined steps (#336 Roberto Decurnex)
18
+ * Fix Table.diff! problem with :surplus_row => false and interleaved surplus rows (#220)
19
+
1
20
  ## [v1.2.1](https://github.com/cucumber/cucumber/compare/v1.2.0...v1.2.1)
2
21
 
3
22
  ### New Features
@@ -100,7 +119,7 @@
100
119
  New format:
101
120
 
102
121
  [feature here]
103
-
122
+
104
123
  Also see [Gherkin 2.6.0 History](https://github.com/cucumber/gherkin/blob/master/History.md) for info about new `id` and `uri` elements in the JSON.
105
124
 
106
125
  ## [v1.1.0](https://github.com/cucumber/cucumber/compare/v1.0.6...v1.1.0)
@@ -224,7 +243,7 @@ Yipeeeeeeeee!
224
243
  ### Bugfixes
225
244
  * Missing methods in Runtime::ForProgrammingLanguages - make v8 example run again (Chris Mytton)
226
245
  * Features files are sorted before they are executed, giving consistent results across different OSes (Guewen Baconnier)
227
- * Remove duplicate lines in backtraces in the HTML report (Jari Bakken)
246
+ * Remove duplicate lines in backtraces in the HTML report (Jari Bakken)
228
247
 
229
248
  ## [v0.10.0](https://github.com/cucumber/cucumber/compare/v0.9.4...v0.10.0)
230
249
 
@@ -256,7 +275,7 @@ This should not affect users. The major new feature in this release is ANSICON s
256
275
  ### Bugfixes
257
276
  * Better JSON representation of Regexps (Aslak Hellesøy)
258
277
  * Update to work with latest spork (Matt Wynne)
259
- * Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
278
+ * Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
260
279
  * Fixed incorect --help for --strict. It fails on both pending and undefined. (Aslak Hellesøy)
261
280
 
262
281
  ## [v0.9.2](https://github.com/cucumber/cucumber/compare/v0.9.1...v0.9.2)
data/README.md CHANGED
@@ -1,39 +1,21 @@
1
- [![Build Status](https://secure.travis-ci.org/cucumber/cucumber.png)](http://travis-ci.org/cucumber/cucumber)
1
+ [![Build Status](https://secure.travis-ci.org/cucumber/cucumber.png)](http://travis-ci.org/cucumber/cucumber) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/cucumber/cucumber)
2
2
 
3
- The main website is at http://cukes.info/
4
- The documentation is at https://wiki.github.com/cucumber/cucumber/
3
+ # Cucumber
5
4
 
6
- ## Note on Patches/Pull Requests
5
+ Cucumber is a tool for running automated tests written in plan language. Because they're
6
+ written in plan language, they can be read by anyone on your team. Because they can be
7
+ read by anyone, you can use them to help improve communication, collaboration and trust on
8
+ your team.
7
9
 
8
- * Fork the project.
9
- * Make your feature addition or bug fix.
10
- * Add tests for it. This is important so I don't break it in a
11
- future version unintentionally.
12
- * Commit, do not mess with Rakefile, version, or history.
13
- (if you want to have your own version, that is fine but
14
- bump version in a commit by itself I can ignore when I pull)
15
- * Send me a pull request. Bonus points for topic branches.
10
+ Where to get more info:
16
11
 
17
- ## Running tests
12
+ * The main website: http://cukes.info/
13
+ * Documentation: https://wiki.github.com/cucumber/cucumber/
14
+ * API Documentation: http://cukes.info/api/cucumber/ruby/yardoc/
15
+ * Support forum: https://groups.google.com/forum/?fromgroups#!forum/cukes
16
+ * IRC channel: irc://irc.freenode.net/cucumber
18
17
 
19
- gem install bundler
20
- bundle install
21
- rake
22
-
23
- ## Release Process
24
-
25
- Before you even attempt to do a release, make sure you can log into cukes.info and touch a file in /var/www/cucumber/api/ruby (see gem_tasks/yard.rake). You need to be able to do this in order to upload YARD docs as part of the release.
26
-
27
- * Bump the version number in `lib/cucumber/platform.rb`.
28
- * Make sure `History.md` is updated with the upcoming version number, and has entries for all fixes.
29
- * No need to add a `History.md` header at this point - this should be done when a new change is made, later.
30
-
31
- Now release it
32
-
33
- bundle update
34
- rake
35
- git commit -m "Release X.Y.Z"
36
- rake release
18
+ See [DEVELOPERS.md](DEVELOPERS.md) for info on contributing to Cucumber.
37
19
 
38
20
  ## Copyright
39
21
 
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ Bundler::GemHelper.install_tasks
6
6
  $:.unshift(File.dirname(__FILE__) + '/lib')
7
7
  Dir['gem_tasks/**/*.rake'].each { |rake| load rake }
8
8
 
9
+ task :release => 'api:doc'
9
10
  task :default => [:spec, :cucumber]
10
11
 
11
12
  require 'rake/clean'
@@ -13,30 +13,31 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.platform = Gem::Platform::RUBY
15
15
 
16
- s.add_runtime_dependency 'gherkin', '~> 2.11.0'
17
- s.add_runtime_dependency 'builder', '>= 2.1.2'
18
- s.add_runtime_dependency 'diff-lcs', '>= 1.1.3'
19
- s.add_runtime_dependency 'json', '>= 1.4.6'
20
-
21
- s.add_development_dependency 'aruba', '~> 0.4.11'
22
- s.add_development_dependency 'rake', '>= 0.9.2'
23
- s.add_development_dependency 'rspec', '~> 2.10.0'
16
+ s.add_dependency 'builder', '>= 2.1.2'
17
+ s.add_dependency 'diff-lcs', '>= 1.1.3'
18
+ s.add_dependency 'gherkin', '~> 2.11.6'
19
+ s.add_dependency 'multi_json', '~> 1.3'
20
+
21
+ s.add_development_dependency 'aruba', '~> 0.5.0'
22
+ s.add_development_dependency 'json', '~> 1.7'
24
23
  s.add_development_dependency 'nokogiri', '>= 1.5.2'
25
- s.add_development_dependency 'syntax', '>= 1.0.0'
26
- s.add_development_dependency 'spork', '>= 1.0.0.rc2'
24
+ s.add_development_dependency 'rake', '>= 0.9.2'
25
+ s.add_development_dependency 'rspec', '>= 2.13'
27
26
  s.add_development_dependency 'simplecov', '>= 0.6.2'
27
+ s.add_development_dependency 'spork', '>= 1.0.0.rc2'
28
+ s.add_development_dependency 'syntax', '>= 1.0.0'
28
29
 
29
30
  # For Documentation:
30
- s.add_development_dependency('yard', '~> 0.8.0')
31
- s.add_development_dependency('rdiscount', '~> 1.6.8') unless defined?(JRUBY_VERSION)
32
- s.add_development_dependency('bcat', '~> 0.6.2')
33
-
31
+ s.add_development_dependency 'bcat', '~> 0.6.2'
32
+ s.add_development_dependency 'kramdown', '~> 0.14'
33
+ s.add_development_dependency 'yard', '~> 0.8.0'
34
+
34
35
  # Needed for examples (rake examples)
35
- s.add_development_dependency 'ramaze'
36
+ s.add_development_dependency 'capybara', '>= 1.1.2'
36
37
  s.add_development_dependency 'rack-test', '>= 0.6.1'
37
- s.add_development_dependency 'webrat', '>= 0.7.3'
38
+ s.add_development_dependency 'ramaze'
38
39
  s.add_development_dependency 'sinatra', '>= 1.3.2'
39
- s.add_development_dependency 'capybara', '>= 1.1.2'
40
+ s.add_development_dependency 'webrat', '>= 0.7.3'
40
41
 
41
42
  s.rubygems_version = ">= 1.6.1"
42
43
  s.files = `git ls-files`.split("\n").reject {|path| path =~ /\.gitignore$/ }
@@ -1,4 +1,4 @@
1
- <%
1
+ <%
2
2
  rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
3
  rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
4
4
  std_opts = "--format progress features --tags ~@wip"
@@ -10,11 +10,12 @@ rescue LoadError
10
10
  std_opts << ' --tags ~@rspec2'
11
11
  end
12
12
  %>
13
- default: <%= std_opts %> --dotcucumber features/.cucumber
13
+ default: <%= std_opts %> --tags ~@jruby --dotcucumber features/.cucumber
14
14
  jruby: <%= std_opts %> --tags ~@spork --tags ~@wire
15
15
  jruby_win: <%= std_opts %> --tags ~@spork --tags ~@wire CUCUMBER_FORWARD_SLASH_PATHS=true
16
16
  windows_mri: <%= std_opts %> --tags ~@jruby --tags ~@spork --tags ~@wire --tags ~@needs-many-fonts CUCUMBER_FORWARD_SLASH_PATHS=true
17
17
  ruby_1_9: <%= std_opts %> --tags ~@jruby --tags ~@fails_on_1_9
18
+ ruby_2_0: <%= std_opts %> --tags ~@jruby --tags ~@fails_on_1_9
18
19
  wip: --tags @wip:3 --wip features
19
20
  none: --format pretty
20
21
  rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -0,0 +1,6 @@
1
+ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
+ require 'cucumber/rake/task'
3
+
4
+ Cucumber::Rake::Task.new do |t|
5
+ t.cucumber_opts = %w{--format pretty}
6
+ end
@@ -0,0 +1,17 @@
1
+ # language: cs
2
+ Požadavek: Sčítání
3
+ Jako matematický idiot
4
+ Abych se vyhnul hloupým chybám
5
+ Chci vědět jak sečíst dvě čísla
6
+
7
+ Náčrt Scénáře: Sčítaní dvou čísel
8
+ Pokud Zadám číslo <vstup_1> do kalkulačky
9
+ A Zadám číslo <vstup_2> do kalkulačky
10
+ Když Stisknu <tlačítko>
11
+ Pak Výsledek by měl být <výstup>
12
+
13
+ Příklady:
14
+ | vstup_1 | vstup_2 | tlačítko | výstup |
15
+ | 20 | 30 | add | 50 |
16
+ | 2 | 5 | add | 7 |
17
+ | 0 | 40 | add | 40 |
@@ -0,0 +1,11 @@
1
+ # language: cs
2
+ Požadavek: Dělení
3
+ Jako matematický idiot
4
+ Abych se vyhnul hloupým chybám
5
+ Chci vědět jak vydělit dvě čísla
6
+
7
+ Scénář: Přirozená čísla
8
+ Pokud Zadám číslo 3 do kalkulačky
9
+ A Zadám číslo 2 do kalkulačky
10
+ Když stisknu divide
11
+ Pak výsledek by měl být 1.5
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
3
+ require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
+ require 'calculator'
6
+
7
+ Before do
8
+ @calc = Calculator.new
9
+ end
10
+
11
+ After do
12
+ end
13
+
14
+ Given /Zadám číslo (\d+) do kalkulačky/ do |n|
15
+ @calc.push n.to_i
16
+ end
17
+
18
+ When /Stisknu (\w+)/ do |op|
19
+ @result = @calc.send op
20
+ end
21
+
22
+ Then /Výsledek by měl být (.*)/ do |result|
23
+ @result.should == result.to_f
24
+ end
@@ -0,0 +1,14 @@
1
+ class Calculator
2
+ def push(n)
3
+ @args ||= []
4
+ @args << n
5
+ end
6
+
7
+ def add
8
+ @args.inject(0){|n,sum| sum+=n}
9
+ end
10
+
11
+ def divide
12
+ @args[0].to_f / @args[1].to_f
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
+ require 'cucumber/rake/task'
3
+
4
+ Cucumber::Rake::Task.new do |t|
5
+ t.cucumber_opts = %w{--format pretty}
6
+ end
@@ -0,0 +1,16 @@
1
+ # language: hi
2
+ रूप लेख: जोड़
3
+ मैं गणित में कमजोर हूँ और मैं दो
4
+ संख्याओं का योग पता करना चाहता हूँ
5
+
6
+ परिदृश्य रूपरेखा: दो संख्याओं का जोड़
7
+ अगर मैं गणक में <प्रविष्टि_१> डालता हूँ
8
+ और मैं गणक में <प्रविष्टि_२> डालता हूँ
9
+ जब मैं <बटन> दबाता हूँ
10
+ तब परिणाम <परिणाम> परदे पर प्रदशित होना चाहिए
11
+
12
+ उदाहरण:
13
+ | प्रविष्टि_१ | प्रविष्टि_२ | बटन | परिणाम |
14
+ | 20 | 30 | जोड़ | 50 |
15
+ | 20 | 5 | जोड़ | 7 |
16
+ | 0 | 40 | जोड़ | 40 |
@@ -0,0 +1,10 @@
1
+ # language: hi
2
+ रूप लेख: भाग
3
+ मैं गणित में कमजोर हूँ और मैं दो
4
+ संख्याओं का भाग पता करना चाहता हूँ
5
+
6
+ परिदृश्य: दो संख्याओं का भाग
7
+ * मैं गणक में 7 डालता हूँ
8
+ * मैं गणक में 2 डालता हूँ
9
+ * मैं भाग दबाता हूँ
10
+ * परिणाम 3.5 परदे पर प्रदशित होना चाहिए
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
3
+ require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
+ require 'calculator'
6
+
7
+ Before do
8
+ @calc = Calculator.new
9
+ end
10
+
11
+ After do
12
+ end
13
+
14
+ Given /मैं गणक में (\d+) डालता हूँ/ do |n|
15
+ @calc.push n.to_i
16
+ end
17
+
18
+ When /मैं (\w+) दबाता हूँ/ do |op|
19
+ @result = @calc.send op
20
+ end
21
+
22
+ Then /परिणाम (.*) परदे पर प्रदशित होना चाहिए/ do |result|
23
+ @result.should == result.to_f
24
+ end
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+ class Calculator
3
+ def push(n)
4
+ @args ||= []
5
+ @args << n
6
+ end
7
+
8
+ def add
9
+ @args.inject(0){|n,sum| sum+=n}
10
+ end
11
+
12
+ def divide
13
+ @args[0].to_f / @args[1].to_f
14
+ end
15
+ end
@@ -4,4 +4,5 @@ The Python support is experimental. Don't expect it to work.
4
4
  Please help fix it or head over to a more mature library:
5
5
 
6
6
  * http://github.com/gabrielfalcao/lettuce/
7
- * http://wiki.github.com/heynemann/pyccuracy/
7
+ * http://wiki.github.com/heynemann/pyccuracy/
8
+ * http://packages.python.org/behave/
@@ -4,4 +4,5 @@ The Python support is experimental. Don't expect it to work.
4
4
  Please help fix it or head over to a more mature library:
5
5
 
6
6
  * http://github.com/gabrielfalcao/lettuce/
7
- * http://wiki.github.com/heynemann/pyccuracy/
7
+ * http://wiki.github.com/heynemann/pyccuracy/
8
+ * http://packages.python.org/behave/
@@ -1,612 +1,1855 @@
1
1
  [
2
2
  {
3
- "source": "^I'm using a clean gemset \"([^\"]*)\"$",
4
- "flags": "",
5
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:7",
3
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:5",
4
+ "source": "^I am in (.*)$",
6
5
  "steps": [
7
6
 
8
- ]
7
+ ],
8
+ "flags": ""
9
9
  },
10
10
  {
11
- "source": "^a directory named \"([^\"]*)\"$",
12
- "flags": "",
13
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:11",
14
- "steps": [
15
-
16
- ]
17
- },
18
- {
19
- "source": "^a file named \"([^\"]*)\" with:$",
20
- "flags": "",
21
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:15",
11
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:9",
12
+ "source": "^a standard Cucumber project directory structure$",
22
13
  "steps": [
23
14
  {
24
- "name": "a file named \"features/test.feature\" with:",
25
15
  "args": [
26
- {
27
- "offset": 14,
28
- "val": "features/test.feature"
29
- }
30
- ]
31
- }
32
- ]
33
- },
34
- {
35
- "source": "^a (\\d+) byte file named \"([^\"]*)\"$",
36
- "flags": "",
37
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:19",
38
- "steps": [
39
-
40
- ]
41
- },
42
- {
43
- "source": "^an empty file named \"([^\"]*)\"$",
44
- "flags": "",
45
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:23",
46
- "steps": [
47
-
48
- ]
49
- },
50
- {
51
- "source": "^I write to \"([^\"]*)\" with:$",
52
- "flags": "",
53
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:27",
54
- "steps": [
55
-
56
- ]
57
- },
58
- {
59
- "source": "^I overwrite \"([^\"]*)\" with:$",
60
- "flags": "",
61
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:31",
62
- "steps": [
63
-
64
- ]
65
- },
66
- {
67
- "source": "^I append to \"([^\"]*)\" with:$",
68
- "flags": "",
69
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:35",
70
- "steps": [
71
-
72
- ]
73
- },
74
- {
75
- "source": "^I append to \"([^\"]*)\" with \"([^\"]*)\"$",
76
- "flags": "",
77
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:39",
78
- "steps": [
79
-
80
- ]
81
- },
82
- {
83
- "source": "^I remove the file \"([^\"]*)\"$",
84
- "flags": "",
85
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:43",
86
- "steps": [
87
-
88
- ]
89
- },
90
- {
91
- "source": "^I cd to \"([^\"]*)\"$",
92
- "flags": "",
93
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:47",
94
- "steps": [
95
16
 
96
- ]
17
+ ],
18
+ "name": "a standard Cucumber project directory structure"
19
+ }
20
+ ],
21
+ "flags": ""
97
22
  },
98
23
  {
99
- "source": "^I run \"(.*)\"$",
100
- "flags": "",
101
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:51",
24
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:18",
25
+ "source": "^the (.*) directory is empty$",
102
26
  "steps": [
103
27
 
104
- ]
28
+ ],
29
+ "flags": ""
105
30
  },
106
31
  {
107
- "source": "^I run `([^`]*)`$",
108
- "flags": "",
109
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:56",
32
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:25",
33
+ "source": "^a file named \"([^\"]*)\"$",
110
34
  "steps": [
111
35
  {
112
- "name": "I run `cucumber features/test.feature:5 -f progress`",
113
36
  "args": [
114
37
  {
115
- "offset": 7,
116
- "val": "cucumber features/test.feature:5 -f progress"
38
+ "val": "features/step_definitions/foof.rb",
39
+ "offset": 14
40
+ }
41
+ ],
42
+ "name": "a file named \"features/step_definitions/foof.rb\""
43
+ },
44
+ {
45
+ "args": [
46
+ {
47
+ "val": "features/step_definitions/foot.rb",
48
+ "offset": 14
49
+ }
50
+ ],
51
+ "name": "a file named \"features/step_definitions/foot.rb\""
52
+ },
53
+ {
54
+ "args": [
55
+ {
56
+ "val": "features/step_definitions/fooz.rb",
57
+ "offset": 14
58
+ }
59
+ ],
60
+ "name": "a file named \"features/step_definitions/fooz.rb\""
61
+ },
62
+ {
63
+ "args": [
64
+ {
65
+ "val": "features/support/dont_require_me.rb",
66
+ "offset": 14
67
+ }
68
+ ],
69
+ "name": "a file named \"features/support/dont_require_me.rb\""
70
+ },
71
+ {
72
+ "args": [
73
+ {
74
+ "val": "features/support/env.rb",
75
+ "offset": 14
117
76
  }
118
- ]
77
+ ],
78
+ "name": "a file named \"features/support/env.rb\""
119
79
  },
120
80
  {
121
- "name": "I run `cucumber features/test.feature:8 -f progress`",
122
81
  "args": [
123
82
  {
124
- "offset": 7,
125
- "val": "cucumber features/test.feature:8 -f progress"
83
+ "val": "features/support/require_me.rb",
84
+ "offset": 14
126
85
  }
127
- ]
86
+ ],
87
+ "name": "a file named \"features/support/require_me.rb\""
128
88
  }
129
- ]
89
+ ],
90
+ "flags": ""
130
91
  },
131
92
  {
132
- "source": "^I successfully run \"(.*)\"$",
133
- "flags": "",
134
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:60",
93
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:29",
94
+ "source": "^a file named \"([^\"]*)\" with:$",
135
95
  "steps": [
136
-
137
- ]
96
+ {
97
+ "args": [
98
+ {
99
+ "val": "Rakefile",
100
+ "offset": 14
101
+ }
102
+ ],
103
+ "name": "a file named \"Rakefile\" with:"
104
+ },
105
+ {
106
+ "args": [
107
+ {
108
+ "val": "features/all_good.feature",
109
+ "offset": 14
110
+ }
111
+ ],
112
+ "name": "a file named \"features/all_good.feature\" with:"
113
+ },
114
+ {
115
+ "args": [
116
+ {
117
+ "val": "features/another.feature",
118
+ "offset": 14
119
+ }
120
+ ],
121
+ "name": "a file named \"features/another.feature\" with:"
122
+ },
123
+ {
124
+ "args": [
125
+ {
126
+ "val": "features/env.rb",
127
+ "offset": 14
128
+ }
129
+ ],
130
+ "name": "a file named \"features/env.rb\" with:"
131
+ },
132
+ {
133
+ "args": [
134
+ {
135
+ "val": "features/f.feature",
136
+ "offset": 14
137
+ }
138
+ ],
139
+ "name": "a file named \"features/f.feature\" with:"
140
+ },
141
+ {
142
+ "args": [
143
+ {
144
+ "val": "features/lolcat.feature",
145
+ "offset": 14
146
+ }
147
+ ],
148
+ "name": "a file named \"features/lolcat.feature\" with:"
149
+ },
150
+ {
151
+ "args": [
152
+ {
153
+ "val": "features/naughty_step_in_before.feature",
154
+ "offset": 14
155
+ }
156
+ ],
157
+ "name": "a file named \"features/naughty_step_in_before.feature\" with:"
158
+ },
159
+ {
160
+ "args": [
161
+ {
162
+ "val": "features/naughty_step_in_scenario.feature",
163
+ "offset": 14
164
+ }
165
+ ],
166
+ "name": "a file named \"features/naughty_step_in_scenario.feature\" with:"
167
+ },
168
+ {
169
+ "args": [
170
+ {
171
+ "val": "features/naughty_step_in_scenario_outline.feature",
172
+ "offset": 14
173
+ }
174
+ ],
175
+ "name": "a file named \"features/naughty_step_in_scenario_outline.feature\" with:"
176
+ },
177
+ {
178
+ "args": [
179
+ {
180
+ "val": "features/sample.feature",
181
+ "offset": 14
182
+ }
183
+ ],
184
+ "name": "a file named \"features/sample.feature\" with:"
185
+ },
186
+ {
187
+ "args": [
188
+ {
189
+ "val": "features/spaces are nasty.feature",
190
+ "offset": 14
191
+ }
192
+ ],
193
+ "name": "a file named \"features/spaces are nasty.feature\" with:"
194
+ },
195
+ {
196
+ "args": [
197
+ {
198
+ "val": "features/step_definitions/all_your_steps_are_belong_to_us.rb",
199
+ "offset": 14
200
+ }
201
+ ],
202
+ "name": "a file named \"features/step_definitions/all_your_steps_are_belong_to_us.rb\" with:"
203
+ },
204
+ {
205
+ "args": [
206
+ {
207
+ "val": "features/step_definitions/foo_steps.rb",
208
+ "offset": 14
209
+ }
210
+ ],
211
+ "name": "a file named \"features/step_definitions/foo_steps.rb\" with:"
212
+ },
213
+ {
214
+ "args": [
215
+ {
216
+ "val": "features/step_definitions/server.wire",
217
+ "offset": 14
218
+ }
219
+ ],
220
+ "name": "a file named \"features/step_definitions/server.wire\" with:"
221
+ },
222
+ {
223
+ "args": [
224
+ {
225
+ "val": "features/step_definitions/some_remote_place.wire",
226
+ "offset": 14
227
+ }
228
+ ],
229
+ "name": "a file named \"features/step_definitions/some_remote_place.wire\" with:"
230
+ },
231
+ {
232
+ "args": [
233
+ {
234
+ "val": "features/step_definitions/steps.rb",
235
+ "offset": 14
236
+ }
237
+ ],
238
+ "name": "a file named \"features/step_definitions/steps.rb\" with:"
239
+ },
240
+ {
241
+ "args": [
242
+ {
243
+ "val": "features/step_definitions/success.rb",
244
+ "offset": 14
245
+ }
246
+ ],
247
+ "name": "a file named \"features/step_definitions/success.rb\" with:"
248
+ },
249
+ {
250
+ "args": [
251
+ {
252
+ "val": "features/step_definitions/t_steps.rb",
253
+ "offset": 14
254
+ }
255
+ ],
256
+ "name": "a file named \"features/step_definitions/t_steps.rb\" with:"
257
+ },
258
+ {
259
+ "args": [
260
+ {
261
+ "val": "features/step_definitions/table_steps.rb",
262
+ "offset": 14
263
+ }
264
+ ],
265
+ "name": "a file named \"features/step_definitions/table_steps.rb\" with:"
266
+ },
267
+ {
268
+ "args": [
269
+ {
270
+ "val": "features/success.feature",
271
+ "offset": 14
272
+ }
273
+ ],
274
+ "name": "a file named \"features/success.feature\" with:"
275
+ },
276
+ {
277
+ "args": [
278
+ {
279
+ "val": "features/support/env.rb",
280
+ "offset": 14
281
+ }
282
+ ],
283
+ "name": "a file named \"features/support/env.rb\" with:"
284
+ },
285
+ {
286
+ "args": [
287
+ {
288
+ "val": "features/support/hooks.rb",
289
+ "offset": 14
290
+ }
291
+ ],
292
+ "name": "a file named \"features/support/hooks.rb\" with:"
293
+ },
294
+ {
295
+ "args": [
296
+ {
297
+ "val": "features/support/table.rb",
298
+ "offset": 14
299
+ }
300
+ ],
301
+ "name": "a file named \"features/support/table.rb\" with:"
302
+ },
303
+ {
304
+ "args": [
305
+ {
306
+ "val": "features/t.feature",
307
+ "offset": 14
308
+ }
309
+ ],
310
+ "name": "a file named \"features/t.feature\" with:"
311
+ },
312
+ {
313
+ "args": [
314
+ {
315
+ "val": "features/tables.feature",
316
+ "offset": 14
317
+ }
318
+ ],
319
+ "name": "a file named \"features/tables.feature\" with:"
320
+ },
321
+ {
322
+ "args": [
323
+ {
324
+ "val": "features/transform_sample.feature",
325
+ "offset": 14
326
+ }
327
+ ],
328
+ "name": "a file named \"features/transform_sample.feature\" with:"
329
+ },
330
+ {
331
+ "args": [
332
+ {
333
+ "val": "features/unicode.feature",
334
+ "offset": 14
335
+ }
336
+ ],
337
+ "name": "a file named \"features/unicode.feature\" with:"
338
+ },
339
+ {
340
+ "args": [
341
+ {
342
+ "val": "features/wired.feature",
343
+ "offset": 14
344
+ }
345
+ ],
346
+ "name": "a file named \"features/wired.feature\" with:"
347
+ },
348
+ {
349
+ "args": [
350
+ {
351
+ "val": "features/wired_on_tables.feature",
352
+ "offset": 14
353
+ }
354
+ ],
355
+ "name": "a file named \"features/wired_on_tables.feature\" with:"
356
+ },
357
+ {
358
+ "args": [
359
+ {
360
+ "val": "features/x.feature",
361
+ "offset": 14
362
+ }
363
+ ],
364
+ "name": "a file named \"features/x.feature\" with:"
365
+ },
366
+ {
367
+ "args": [
368
+ {
369
+ "val": "my_weird/place/foo_steps.rb",
370
+ "offset": 14
371
+ }
372
+ ],
373
+ "name": "a file named \"my_weird/place/foo_steps.rb\" with:"
374
+ }
375
+ ],
376
+ "flags": ""
138
377
  },
139
378
  {
140
- "source": "^I successfully run `([^`]*)`$",
141
- "flags": "",
142
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:65",
379
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:33",
380
+ "source": "^the following profiles? (?:are|is) defined:$",
143
381
  "steps": [
382
+ {
383
+ "args": [
144
384
 
145
- ]
146
- },
147
- {
148
- "source": "^I run \"([^\"]*)\" interactively$",
149
- "flags": "",
150
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:69",
151
- "steps": [
385
+ ],
386
+ "name": "the following profile is defined:"
387
+ },
388
+ {
389
+ "args": [
152
390
 
153
- ]
391
+ ],
392
+ "name": "the following profiles are defined:"
393
+ }
394
+ ],
395
+ "flags": ""
154
396
  },
155
397
  {
156
- "source": "^I run `([^`]*)` interactively$",
157
- "flags": "",
158
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:74",
398
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:37",
399
+ "source": "^I am running spork in the background$",
159
400
  "steps": [
401
+ {
402
+ "args": [
160
403
 
161
- ]
404
+ ],
405
+ "name": "I am running spork in the background"
406
+ }
407
+ ],
408
+ "flags": ""
162
409
  },
163
410
  {
164
- "source": "^I type \"([^\"]*)\"$",
165
- "flags": "",
166
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:78",
411
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:41",
412
+ "source": "^I am running spork in the background on port (\\d+)$",
167
413
  "steps": [
168
-
169
- ]
414
+ {
415
+ "args": [
416
+ {
417
+ "val": "9000",
418
+ "offset": 45
419
+ }
420
+ ],
421
+ "name": "I am running spork in the background on port 9000"
422
+ }
423
+ ],
424
+ "flags": ""
170
425
  },
171
426
  {
172
- "source": "^the output should contain \"([^\"]*)\"$",
173
- "flags": "",
174
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:82",
427
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:45",
428
+ "source": "^I am not running (?:.*) in the background$",
175
429
  "steps": [
430
+ {
431
+ "args": [
176
432
 
177
- ]
433
+ ],
434
+ "name": "I am not running a DRb server in the background"
435
+ }
436
+ ],
437
+ "flags": ""
178
438
  },
179
439
  {
180
- "source": "^the output from \"([^\"]*)\" should contain \"([^\"]*)\"$",
181
- "flags": "",
182
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:86",
440
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:49",
441
+ "source": "^I have environment variable (\\w+) set to \"([^\"]*)\"$",
183
442
  "steps": [
184
-
185
- ]
443
+ {
444
+ "args": [
445
+ {
446
+ "val": "CUCUMBER_DRB",
447
+ "offset": 28
448
+ },
449
+ {
450
+ "val": "9000",
451
+ "offset": 49
452
+ }
453
+ ],
454
+ "name": "I have environment variable CUCUMBER_DRB set to \"9000\""
455
+ },
456
+ {
457
+ "args": [
458
+ {
459
+ "val": "PORT",
460
+ "offset": 28
461
+ },
462
+ {
463
+ "val": "16816",
464
+ "offset": 41
465
+ }
466
+ ],
467
+ "name": "I have environment variable PORT set to \"16816\""
468
+ }
469
+ ],
470
+ "flags": ""
186
471
  },
187
472
  {
188
- "source": "^the output from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
189
- "flags": "",
190
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:90",
473
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:53",
474
+ "source": "^I run cucumber (.*)$",
191
475
  "steps": [
192
-
193
- ]
194
- },
195
- {
196
- "source": "^the output should not contain \"([^\"]*)\"$",
197
- "flags": "",
198
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:94",
199
- "steps": [
200
-
201
- ]
202
- },
203
- {
204
- "source": "^the output should contain:$",
205
- "flags": "",
206
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:98",
207
- "steps": [
208
-
209
- ]
210
- },
211
- {
212
- "source": "^the output should not contain:$",
213
- "flags": "",
214
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:102",
215
- "steps": [
216
-
217
- ]
218
- },
219
- {
220
- "source": "^the output should contain exactly \"([^\"]*)\"$",
221
- "flags": "",
222
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:106",
223
- "steps": [
224
-
225
- ]
226
- },
227
- {
228
- "source": "^the output should contain exactly:$",
229
- "flags": "",
230
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:110",
231
- "steps": [
232
-
233
- ]
234
- },
235
- {
236
- "source": "^the output should match \\/([^\\/]*)\\/$",
237
- "flags": "",
238
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:118",
239
- "steps": [
240
-
241
- ]
242
- },
243
- {
244
- "source": "^the output should match:$",
245
- "flags": "",
246
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:122",
247
- "steps": [
248
-
249
- ]
476
+ {
477
+ "args": [
478
+ {
479
+ "val": "--autoformat tmp/formatted features",
480
+ "offset": 15
481
+ }
482
+ ],
483
+ "name": "I run cucumber --autoformat tmp/formatted features"
484
+ },
485
+ {
486
+ "args": [
487
+ {
488
+ "val": "--backtrace -s features",
489
+ "offset": 15
490
+ }
491
+ ],
492
+ "name": "I run cucumber --backtrace -s features"
493
+ },
494
+ {
495
+ "args": [
496
+ {
497
+ "val": "--dry-run --no-snippets -f progress",
498
+ "offset": 15
499
+ }
500
+ ],
501
+ "name": "I run cucumber --dry-run --no-snippets -f progress"
502
+ },
503
+ {
504
+ "args": [
505
+ {
506
+ "val": "--dry-run --no-source features/*.feature --tags ~@lots",
507
+ "offset": 15
508
+ }
509
+ ],
510
+ "name": "I run cucumber --dry-run --no-source features/*.feature --tags ~@lots"
511
+ },
512
+ {
513
+ "args": [
514
+ {
515
+ "val": "--dry-run -f progress",
516
+ "offset": 15
517
+ }
518
+ ],
519
+ "name": "I run cucumber --dry-run -f progress"
520
+ },
521
+ {
522
+ "args": [
523
+ {
524
+ "val": "--format junit --out tmp/ features",
525
+ "offset": 15
526
+ }
527
+ ],
528
+ "name": "I run cucumber --format junit --out tmp/ features"
529
+ },
530
+ {
531
+ "args": [
532
+ {
533
+ "val": "--format junit --out tmp/ features/one_passing_one_failing.feature",
534
+ "offset": 15
535
+ }
536
+ ],
537
+ "name": "I run cucumber --format junit --out tmp/ features/one_passing_one_failing.feature"
538
+ },
539
+ {
540
+ "args": [
541
+ {
542
+ "val": "--format junit --out tmp/ features/pending.feature",
543
+ "offset": 15
544
+ }
545
+ ],
546
+ "name": "I run cucumber --format junit --out tmp/ features/pending.feature"
547
+ },
548
+ {
549
+ "args": [
550
+ {
551
+ "val": "--format junit --out tmp/ features/pending.feature --strict",
552
+ "offset": 15
553
+ }
554
+ ],
555
+ "name": "I run cucumber --format junit --out tmp/ features/pending.feature --strict"
556
+ },
557
+ {
558
+ "args": [
559
+ {
560
+ "val": "--format junit --out tmp/ features/scenario_outline.feature",
561
+ "offset": 15
562
+ }
563
+ ],
564
+ "name": "I run cucumber --format junit --out tmp/ features/scenario_outline.feature"
565
+ },
566
+ {
567
+ "args": [
568
+ {
569
+ "val": "--format junit --out tmp/ features/some_subdirectory/one_passing_one_failing.feature --require features",
570
+ "offset": 15
571
+ }
572
+ ],
573
+ "name": "I run cucumber --format junit --out tmp/ features/some_subdirectory/one_passing_one_failing.feature --require features"
574
+ },
575
+ {
576
+ "args": [
577
+ {
578
+ "val": "--format junit features",
579
+ "offset": 15
580
+ }
581
+ ],
582
+ "name": "I run cucumber --format junit features"
583
+ },
584
+ {
585
+ "args": [
586
+ {
587
+ "val": "--format pretty features/f.feature",
588
+ "offset": 15
589
+ }
590
+ ],
591
+ "name": "I run cucumber --format pretty features/f.feature"
592
+ },
593
+ {
594
+ "args": [
595
+ {
596
+ "val": "--format progress --out tmp/progress.txt --format pretty --out tmp/pretty.txt --no-source --dry-run --no-snippets features/lots_of_undefined.feature",
597
+ "offset": 15
598
+ }
599
+ ],
600
+ "name": "I run cucumber --format progress --out tmp/progress.txt --format pretty --out tmp/pretty.txt --no-source --dry-run --no-snippets features/lots_of_undefined.feature"
601
+ },
602
+ {
603
+ "args": [
604
+ {
605
+ "val": "--format progress features/f.feature",
606
+ "offset": 15
607
+ }
608
+ ],
609
+ "name": "I run cucumber --format progress features/f.feature"
610
+ },
611
+ {
612
+ "args": [
613
+ {
614
+ "val": "--format progress features/puts_world.feature",
615
+ "offset": 15
616
+ }
617
+ ],
618
+ "name": "I run cucumber --format progress features/puts_world.feature"
619
+ },
620
+ {
621
+ "args": [
622
+ {
623
+ "val": "--i18n help",
624
+ "offset": 15
625
+ }
626
+ ],
627
+ "name": "I run cucumber --i18n help"
628
+ },
629
+ {
630
+ "args": [
631
+ {
632
+ "val": "--i18n pt help",
633
+ "offset": 15
634
+ }
635
+ ],
636
+ "name": "I run cucumber --i18n pt help"
637
+ },
638
+ {
639
+ "args": [
640
+ {
641
+ "val": "--name 'Hantu Pisang background' -q features/",
642
+ "offset": 15
643
+ }
644
+ ],
645
+ "name": "I run cucumber --name 'Hantu Pisang background' -q features/"
646
+ },
647
+ {
648
+ "args": [
649
+ {
650
+ "val": "--name Pisang -q features/",
651
+ "offset": 15
652
+ }
653
+ ],
654
+ "name": "I run cucumber --name Pisang -q features/"
655
+ },
656
+ {
657
+ "args": [
658
+ {
659
+ "val": "--profile server",
660
+ "offset": 15
661
+ }
662
+ ],
663
+ "name": "I run cucumber --profile server"
664
+ },
665
+ {
666
+ "args": [
667
+ {
668
+ "val": "-b -s features",
669
+ "offset": 15
670
+ }
671
+ ],
672
+ "name": "I run cucumber -b -s features"
673
+ },
674
+ {
675
+ "args": [
676
+ {
677
+ "val": "-f debug features/sample.feature",
678
+ "offset": 15
679
+ }
680
+ ],
681
+ "name": "I run cucumber -f debug features/sample.feature"
682
+ },
683
+ {
684
+ "args": [
685
+ {
686
+ "val": "-f pretty",
687
+ "offset": 15
688
+ }
689
+ ],
690
+ "name": "I run cucumber -f pretty"
691
+ },
692
+ {
693
+ "args": [
694
+ {
695
+ "val": "-f pretty -q",
696
+ "offset": 15
697
+ }
698
+ ],
699
+ "name": "I run cucumber -f pretty -q"
700
+ },
701
+ {
702
+ "args": [
703
+ {
704
+ "val": "-f progress",
705
+ "offset": 15
706
+ }
707
+ ],
708
+ "name": "I run cucumber -f progress"
709
+ },
710
+ {
711
+ "args": [
712
+ {
713
+ "val": "-f progress --backtrace",
714
+ "offset": 15
715
+ }
716
+ ],
717
+ "name": "I run cucumber -f progress --backtrace"
718
+ },
719
+ {
720
+ "args": [
721
+ {
722
+ "val": "-f progress features/t.feature",
723
+ "offset": 15
724
+ }
725
+ ],
726
+ "name": "I run cucumber -f progress features/t.feature"
727
+ },
728
+ {
729
+ "args": [
730
+ {
731
+ "val": "-f progress features/wired_on_tables.feature",
732
+ "offset": 15
733
+ }
734
+ ],
735
+ "name": "I run cucumber -f progress features/wired_on_tables.feature"
736
+ },
737
+ {
738
+ "args": [
739
+ {
740
+ "val": "-f rerun features/sample.feature features/all_good.feature",
741
+ "offset": 15
742
+ }
743
+ ],
744
+ "name": "I run cucumber -f rerun features/sample.feature features/all_good.feature"
745
+ },
746
+ {
747
+ "args": [
748
+ {
749
+ "val": "-f stepdefs --dry-run",
750
+ "offset": 15
751
+ }
752
+ ],
753
+ "name": "I run cucumber -f stepdefs --dry-run"
754
+ },
755
+ {
756
+ "args": [
757
+ {
758
+ "val": "-i -q --expand features/expand_me.feature",
759
+ "offset": 15
760
+ }
761
+ ],
762
+ "name": "I run cucumber -i -q --expand features/expand_me.feature"
763
+ },
764
+ {
765
+ "args": [
766
+ {
767
+ "val": "-i features/lolcat.feature",
768
+ "offset": 15
769
+ }
770
+ ],
771
+ "name": "I run cucumber -i features/lolcat.feature"
772
+ },
773
+ {
774
+ "args": [
775
+ {
776
+ "val": "-i features/tables.feature",
777
+ "offset": 15
778
+ }
779
+ ],
780
+ "name": "I run cucumber -i features/tables.feature"
781
+ },
782
+ {
783
+ "args": [
784
+ {
785
+ "val": "-n Pisang -q features/",
786
+ "offset": 15
787
+ }
788
+ ],
789
+ "name": "I run cucumber -n Pisang -q features/"
790
+ },
791
+ {
792
+ "args": [
793
+ {
794
+ "val": "-p default features/another.feature",
795
+ "offset": 15
796
+ }
797
+ ],
798
+ "name": "I run cucumber -p default features/another.feature"
799
+ },
800
+ {
801
+ "args": [
802
+ {
803
+ "val": "-p foo",
804
+ "offset": 15
805
+ }
806
+ ],
807
+ "name": "I run cucumber -p foo"
808
+ },
809
+ {
810
+ "args": [
811
+ {
812
+ "val": "-q --dry-run features/unicode.feature",
813
+ "offset": 15
814
+ }
815
+ ],
816
+ "name": "I run cucumber -q --dry-run features/unicode.feature"
817
+ },
818
+ {
819
+ "args": [
820
+ {
821
+ "val": "-q --format pretty --format progress --out progress.txt features/f.feature",
822
+ "offset": 15
823
+ }
824
+ ],
825
+ "name": "I run cucumber -q --format pretty --format progress --out progress.txt features/f.feature"
826
+ },
827
+ {
828
+ "args": [
829
+ {
830
+ "val": "-q --format progress features/outline_sample.feature",
831
+ "offset": 15
832
+ }
833
+ ],
834
+ "name": "I run cucumber -q --format progress features/outline_sample.feature"
835
+ },
836
+ {
837
+ "args": [
838
+ {
839
+ "val": "-q --format progress features/sample.feature",
840
+ "offset": 15
841
+ }
842
+ ],
843
+ "name": "I run cucumber -q --format progress features/sample.feature"
844
+ },
845
+ {
846
+ "args": [
847
+ {
848
+ "val": "-q -p super -p default -f <format> features/sample.feature --require features/step_definitions/steps.rb",
849
+ "offset": 15
850
+ }
851
+ ],
852
+ "name": "I run cucumber -q -p super -p default -f <format> features/sample.feature --require features/step_definitions/steps.rb"
853
+ },
854
+ {
855
+ "args": [
856
+ {
857
+ "val": "-q -r ../../legacy_features/step_definitions/extra_steps.rb features/sample.feature:5",
858
+ "offset": 15
859
+ }
860
+ ],
861
+ "name": "I run cucumber -q -r ../../legacy_features/step_definitions/extra_steps.rb features/sample.feature:5"
862
+ },
863
+ {
864
+ "args": [
865
+ {
866
+ "val": "-q -t @one features/f.feature",
867
+ "offset": 15
868
+ }
869
+ ],
870
+ "name": "I run cucumber -q -t @one features/f.feature"
871
+ },
872
+ {
873
+ "args": [
874
+ {
875
+ "val": "-q -w -t @failing features/wip.feature",
876
+ "offset": 15
877
+ }
878
+ ],
879
+ "name": "I run cucumber -q -w -t @failing features/wip.feature"
880
+ },
881
+ {
882
+ "args": [
883
+ {
884
+ "val": "-q -w -t @passing features/wip.feature",
885
+ "offset": 15
886
+ }
887
+ ],
888
+ "name": "I run cucumber -q -w -t @passing features/wip.feature"
889
+ },
890
+ {
891
+ "args": [
892
+ {
893
+ "val": "-q -w -t @pending features/wip.feature",
894
+ "offset": 15
895
+ }
896
+ ],
897
+ "name": "I run cucumber -q -w -t @pending features/wip.feature"
898
+ },
899
+ {
900
+ "args": [
901
+ {
902
+ "val": "-q -w -t @undefined features/wip.feature",
903
+ "offset": 15
904
+ }
905
+ ],
906
+ "name": "I run cucumber -q -w -t @undefined features/wip.feature"
907
+ },
908
+ {
909
+ "args": [
910
+ {
911
+ "val": "-q -w features/passing_outline.feature",
912
+ "offset": 15
913
+ }
914
+ ],
915
+ "name": "I run cucumber -q -w features/passing_outline.feature"
916
+ },
917
+ {
918
+ "args": [
919
+ {
920
+ "val": "-q @list-of-features.txt",
921
+ "offset": 15
922
+ }
923
+ ],
924
+ "name": "I run cucumber -q @list-of-features.txt"
925
+ },
926
+ {
927
+ "args": [
928
+ {
929
+ "val": "-q features --name \"Test state\"",
930
+ "offset": 15
931
+ }
932
+ ],
933
+ "name": "I run cucumber -q features --name \"Test state\""
934
+ },
935
+ {
936
+ "args": [
937
+ {
938
+ "val": "-q features --tags @one",
939
+ "offset": 15
940
+ }
941
+ ],
942
+ "name": "I run cucumber -q features --tags @one"
943
+ },
944
+ {
945
+ "args": [
946
+ {
947
+ "val": "-q features --tags @three",
948
+ "offset": 15
949
+ }
950
+ ],
951
+ "name": "I run cucumber -q features --tags @three"
952
+ },
953
+ {
954
+ "args": [
955
+ {
956
+ "val": "-q features/f.feature --tag @i_dont_exist",
957
+ "offset": 15
958
+ }
959
+ ],
960
+ "name": "I run cucumber -q features/f.feature --tag @i_dont_exist"
961
+ },
962
+ {
963
+ "args": [
964
+ {
965
+ "val": "-q features/failing_expectation.feature",
966
+ "offset": 15
967
+ }
968
+ ],
969
+ "name": "I run cucumber -q features/failing_expectation.feature"
970
+ },
971
+ {
972
+ "args": [
973
+ {
974
+ "val": "-q features/outline_sample.feature:7",
975
+ "offset": 15
976
+ }
977
+ ],
978
+ "name": "I run cucumber -q features/outline_sample.feature:7"
979
+ },
980
+ {
981
+ "args": [
982
+ {
983
+ "val": "-q features/sample.feature --no-source --dry-run --tags ~@four",
984
+ "offset": 15
985
+ }
986
+ ],
987
+ "name": "I run cucumber -q features/sample.feature --no-source --dry-run --tags ~@four"
988
+ },
989
+ {
990
+ "args": [
991
+ {
992
+ "val": "-q features/sample.feature:10 --strict",
993
+ "offset": 15
994
+ }
995
+ ],
996
+ "name": "I run cucumber -q features/sample.feature:10 --strict"
997
+ },
998
+ {
999
+ "args": [
1000
+ {
1001
+ "val": "-q features/sample.feature:12",
1002
+ "offset": 15
1003
+ }
1004
+ ],
1005
+ "name": "I run cucumber -q features/sample.feature:12"
1006
+ },
1007
+ {
1008
+ "args": [
1009
+ {
1010
+ "val": "-q features/sample.feature:5",
1011
+ "offset": 15
1012
+ }
1013
+ ],
1014
+ "name": "I run cucumber -q features/sample.feature:5"
1015
+ },
1016
+ {
1017
+ "args": [
1018
+ {
1019
+ "val": "-q features/sample.feature:5 --strict",
1020
+ "offset": 15
1021
+ }
1022
+ ],
1023
+ "name": "I run cucumber -q features/sample.feature:5 --strict"
1024
+ },
1025
+ {
1026
+ "args": [
1027
+ {
1028
+ "val": "-q features/sample.feature:5:16",
1029
+ "offset": 15
1030
+ }
1031
+ ],
1032
+ "name": "I run cucumber -q features/sample.feature:5:16"
1033
+ },
1034
+ {
1035
+ "args": [
1036
+ {
1037
+ "val": "-q features/tags_sample.feature --no-source --dry-run --tags @sample_one:1",
1038
+ "offset": 15
1039
+ }
1040
+ ],
1041
+ "name": "I run cucumber -q features/tags_sample.feature --no-source --dry-run --tags @sample_one:1"
1042
+ },
1043
+ {
1044
+ "args": [
1045
+ {
1046
+ "val": "-q features/tags_sample.feature --no-source --dry-run --tags @sample_three:1",
1047
+ "offset": 15
1048
+ }
1049
+ ],
1050
+ "name": "I run cucumber -q features/tags_sample.feature --no-source --dry-run --tags @sample_three:1"
1051
+ },
1052
+ {
1053
+ "args": [
1054
+ {
1055
+ "val": "-q features/tags_sample.feature --no-source --dry-run --tags ~@sample_one:1",
1056
+ "offset": 15
1057
+ }
1058
+ ],
1059
+ "name": "I run cucumber -q features/tags_sample.feature --no-source --dry-run --tags ~@sample_one:1"
1060
+ },
1061
+ {
1062
+ "args": [
1063
+ {
1064
+ "val": "-s features",
1065
+ "offset": 15
1066
+ }
1067
+ ],
1068
+ "name": "I run cucumber -s features"
1069
+ },
1070
+ {
1071
+ "args": [
1072
+ {
1073
+ "val": "-v",
1074
+ "offset": 15
1075
+ }
1076
+ ],
1077
+ "name": "I run cucumber -v"
1078
+ },
1079
+ {
1080
+ "args": [
1081
+ {
1082
+ "val": "-v features/ <Flag>",
1083
+ "offset": 15
1084
+ }
1085
+ ],
1086
+ "name": "I run cucumber -v features/ <Flag>"
1087
+ },
1088
+ {
1089
+ "args": [
1090
+ {
1091
+ "val": "features",
1092
+ "offset": 15
1093
+ }
1094
+ ],
1095
+ "name": "I run cucumber features"
1096
+ },
1097
+ {
1098
+ "args": [
1099
+ {
1100
+ "val": "features --drb",
1101
+ "offset": 15
1102
+ }
1103
+ ],
1104
+ "name": "I run cucumber features --drb"
1105
+ },
1106
+ {
1107
+ "args": [
1108
+ {
1109
+ "val": "features --drb --port 9000",
1110
+ "offset": 15
1111
+ }
1112
+ ],
1113
+ "name": "I run cucumber features --drb --port 9000"
1114
+ },
1115
+ {
1116
+ "args": [
1117
+ {
1118
+ "val": "features --format pretty",
1119
+ "offset": 15
1120
+ }
1121
+ ],
1122
+ "name": "I run cucumber features --format pretty"
1123
+ },
1124
+ {
1125
+ "args": [
1126
+ {
1127
+ "val": "features --format progress",
1128
+ "offset": 15
1129
+ }
1130
+ ],
1131
+ "name": "I run cucumber features --format progress"
1132
+ },
1133
+ {
1134
+ "args": [
1135
+ {
1136
+ "val": "features -q --verbose --exclude features/support/dont --exclude foo[zf]",
1137
+ "offset": 15
1138
+ }
1139
+ ],
1140
+ "name": "I run cucumber features -q --verbose --exclude features/support/dont --exclude foo[zf]"
1141
+ },
1142
+ {
1143
+ "args": [
1144
+ {
1145
+ "val": "features/ --drb",
1146
+ "offset": 15
1147
+ }
1148
+ ],
1149
+ "name": "I run cucumber features/ --drb"
1150
+ },
1151
+ {
1152
+ "args": [
1153
+ {
1154
+ "val": "features/call_undefined_step_from_step_def.feature",
1155
+ "offset": 15
1156
+ }
1157
+ ],
1158
+ "name": "I run cucumber features/call_undefined_step_from_step_def.feature"
1159
+ },
1160
+ {
1161
+ "args": [
1162
+ {
1163
+ "val": "features/f.feature",
1164
+ "offset": 15
1165
+ }
1166
+ ],
1167
+ "name": "I run cucumber features/f.feature"
1168
+ },
1169
+ {
1170
+ "args": [
1171
+ {
1172
+ "val": "features/f.feature:10",
1173
+ "offset": 15
1174
+ }
1175
+ ],
1176
+ "name": "I run cucumber features/f.feature:10"
1177
+ },
1178
+ {
1179
+ "args": [
1180
+ {
1181
+ "val": "features/f.feature:13",
1182
+ "offset": 15
1183
+ }
1184
+ ],
1185
+ "name": "I run cucumber features/f.feature:13"
1186
+ },
1187
+ {
1188
+ "args": [
1189
+ {
1190
+ "val": "features/f.feature:16",
1191
+ "offset": 15
1192
+ }
1193
+ ],
1194
+ "name": "I run cucumber features/f.feature:16"
1195
+ },
1196
+ {
1197
+ "args": [
1198
+ {
1199
+ "val": "features/f.feature:3",
1200
+ "offset": 15
1201
+ }
1202
+ ],
1203
+ "name": "I run cucumber features/f.feature:3"
1204
+ },
1205
+ {
1206
+ "args": [
1207
+ {
1208
+ "val": "features/multiline_name.feature --no-snippets",
1209
+ "offset": 15
1210
+ }
1211
+ ],
1212
+ "name": "I run cucumber features/multiline_name.feature --no-snippets"
1213
+ },
1214
+ {
1215
+ "args": [
1216
+ {
1217
+ "val": "features/outline_sample.feature:12",
1218
+ "offset": 15
1219
+ }
1220
+ ],
1221
+ "name": "I run cucumber features/outline_sample.feature:12"
1222
+ },
1223
+ {
1224
+ "args": [
1225
+ {
1226
+ "val": "features/sample.feature --profile default --profile super",
1227
+ "offset": 15
1228
+ }
1229
+ ],
1230
+ "name": "I run cucumber features/sample.feature --profile default --profile super"
1231
+ },
1232
+ {
1233
+ "args": [
1234
+ {
1235
+ "val": "features/sample.feature --profile super",
1236
+ "offset": 15
1237
+ }
1238
+ ],
1239
+ "name": "I run cucumber features/sample.feature --profile super"
1240
+ },
1241
+ {
1242
+ "args": [
1243
+ {
1244
+ "val": "features/undefined_multiline_args.feature:3 -s",
1245
+ "offset": 15
1246
+ }
1247
+ ],
1248
+ "name": "I run cucumber features/undefined_multiline_args.feature:3 -s"
1249
+ },
1250
+ {
1251
+ "args": [
1252
+ {
1253
+ "val": "features/undefined_multiline_args.feature:9 -s",
1254
+ "offset": 15
1255
+ }
1256
+ ],
1257
+ "name": "I run cucumber features/undefined_multiline_args.feature:9 -s"
1258
+ }
1259
+ ],
1260
+ "flags": ""
250
1261
  },
251
1262
  {
252
- "source": "^the exit status should be (\\d+)$",
253
- "flags": "",
254
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:126",
1263
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:57",
1264
+ "source": "^I run rake (.*)$",
255
1265
  "steps": [
256
-
257
- ]
1266
+ {
1267
+ "args": [
1268
+ {
1269
+ "val": "cucumber",
1270
+ "offset": 11
1271
+ }
1272
+ ],
1273
+ "name": "I run rake cucumber"
1274
+ }
1275
+ ],
1276
+ "flags": ""
258
1277
  },
259
1278
  {
260
- "source": "^the exit status should not be (\\d+)$",
261
- "flags": "",
262
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:130",
1279
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:61",
1280
+ "source": "^I run the following Ruby code:$",
263
1281
  "steps": [
1282
+ {
1283
+ "args": [
264
1284
 
265
- ]
1285
+ ],
1286
+ "name": "I run the following Ruby code:"
1287
+ }
1288
+ ],
1289
+ "flags": ""
266
1290
  },
267
1291
  {
268
- "source": "^it should (pass|fail) with:$",
269
- "flags": "",
270
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:134",
1292
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:65",
1293
+ "source": "^it should (fail|pass)$",
271
1294
  "steps": [
272
1295
  {
273
- "name": "it should fail with:",
274
1296
  "args": [
275
1297
  {
276
- "offset": 10,
277
- "val": "fail"
1298
+ "val": "fail",
1299
+ "offset": 10
278
1300
  }
279
- ]
1301
+ ],
1302
+ "name": "it should fail"
280
1303
  },
281
1304
  {
282
- "name": "it should pass with:",
283
1305
  "args": [
284
1306
  {
285
- "offset": 10,
286
- "val": "pass"
1307
+ "val": "pass",
1308
+ "offset": 10
287
1309
  }
288
- ]
1310
+ ],
1311
+ "name": "it should pass"
289
1312
  }
290
- ]
291
- },
292
- {
293
- "source": "^it should (pass|fail) with exactly:$",
294
- "flags": "",
295
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:138",
296
- "steps": [
297
-
298
- ]
299
- },
300
- {
301
- "source": "^it should (pass|fail) with regexp?:$",
302
- "flags": "",
303
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:142",
304
- "steps": [
305
-
306
- ]
307
- },
308
- {
309
- "source": "^the stderr should contain \"([^\"]*)\"$",
310
- "flags": "",
311
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:147",
312
- "steps": [
313
-
314
- ]
315
- },
316
- {
317
- "source": "^the stderr should contain:$",
318
- "flags": "",
319
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:151",
320
- "steps": [
321
-
322
- ]
323
- },
324
- {
325
- "source": "^the stderr should contain exactly:$",
326
- "flags": "",
327
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:155",
328
- "steps": [
329
-
330
- ]
331
- },
332
- {
333
- "source": "^the stdout should contain \"([^\"]*)\"$",
334
- "flags": "",
335
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:159",
336
- "steps": [
337
-
338
- ]
339
- },
340
- {
341
- "source": "^the stdout should contain:$",
342
- "flags": "",
343
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:163",
344
- "steps": [
345
-
346
- ]
347
- },
348
- {
349
- "source": "^the stdout should contain exactly:$",
350
- "flags": "",
351
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:167",
352
- "steps": [
353
-
354
- ]
355
- },
356
- {
357
- "source": "^the stderr should not contain \"([^\"]*)\"$",
358
- "flags": "",
359
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:171",
360
- "steps": [
361
-
362
- ]
363
- },
364
- {
365
- "source": "^the stderr should not contain:$",
366
- "flags": "",
367
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:175",
368
- "steps": [
369
-
370
- ]
371
- },
372
- {
373
- "source": "^the stdout should not contain \"([^\"]*)\"$",
374
- "flags": "",
375
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:179",
376
- "steps": [
377
-
378
- ]
379
- },
380
- {
381
- "source": "^the stdout should not contain:$",
382
- "flags": "",
383
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:183",
384
- "steps": [
385
-
386
- ]
387
- },
388
- {
389
- "source": "^the stdout from \"([^\"]*)\" should contain \"([^\"]*)\"$",
390
- "flags": "",
391
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:187",
392
- "steps": [
393
-
394
- ]
1313
+ ],
1314
+ "flags": ""
395
1315
  },
396
1316
  {
397
- "source": "^the stdout from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
398
- "flags": "",
399
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:191",
1317
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:75",
1318
+ "source": "^it should (fail|pass) with$",
400
1319
  "steps": [
401
-
402
- ]
1320
+ {
1321
+ "args": [
1322
+ {
1323
+ "val": "fail",
1324
+ "offset": 10
1325
+ }
1326
+ ],
1327
+ "name": "it should fail with"
1328
+ },
1329
+ {
1330
+ "args": [
1331
+ {
1332
+ "val": "pass",
1333
+ "offset": 10
1334
+ }
1335
+ ],
1336
+ "name": "it should pass with"
1337
+ }
1338
+ ],
1339
+ "flags": ""
403
1340
  },
404
1341
  {
405
- "source": "^the stderr from \"([^\"]*)\" should contain \"([^\"]*)\"$",
406
- "flags": "",
407
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:195",
1342
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:82",
1343
+ "source": "^the output should contain \"([^\"]*)\"$",
408
1344
  "steps": [
409
-
410
- ]
1345
+ {
1346
+ "args": [
1347
+ {
1348
+ "val": "Cucumber::RbSupport::RbWorld",
1349
+ "offset": 27
1350
+ }
1351
+ ],
1352
+ "name": "the output should contain \"Cucumber::RbSupport::RbWorld\""
1353
+ },
1354
+ {
1355
+ "args": [
1356
+ {
1357
+ "val": "RSpec::Matchers",
1358
+ "offset": 27
1359
+ }
1360
+ ],
1361
+ "name": "the output should contain \"RSpec::Matchers\""
1362
+ }
1363
+ ],
1364
+ "flags": ""
411
1365
  },
412
1366
  {
413
- "source": "^the stderr from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
414
- "flags": "",
415
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:199",
1367
+ "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:86",
1368
+ "source": "^the output should contain:?$",
416
1369
  "steps": [
1370
+ {
1371
+ "args": [
417
1372
 
418
- ]
419
- },
420
- {
421
- "source": "^the file \"([^\"]*)\" should not exist$",
422
- "flags": "",
423
- "file_colon_line": "aruba-0.4.11/lib/aruba/cucumber.rb:203",
424
- "steps": [
1373
+ ],
1374
+ "name": "the output should contain"
1375
+ },
1376
+ {
1377
+ "args": [
425
1378
 
426
- ]
1379
+ ],
1380
+ "name": "the output should contain:"
1381
+ }
1382
+ ],
1383
+ "flags": ""
427
1384
  },
428
1385
  {
429
- "source": "^the following files should exist:$",
430
- "flags": "",
431