cucumber 1.2.5 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +14 -6
  2. data/.ruby-gemset +1 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +1 -0
  5. data/.yardopts +1 -0
  6. data/CONTRIBUTING.md +2 -2
  7. data/History.md +38 -2
  8. data/bin/cucumber +2 -11
  9. data/cucumber.gemspec +3 -3
  10. data/cucumber.yml +5 -1
  11. data/examples/test_unit/Gemfile +4 -0
  12. data/examples/test_unit/features/step_definitions/test_unit_steps.rb +1 -4
  13. data/examples/watir/README.textile +2 -2
  14. data/examples/watir/features/support/env.rb +10 -7
  15. data/features/.cucumber/stepdefs.json +747 -1354
  16. data/features/assertions.feature +6 -2
  17. data/features/background.feature +3 -0
  18. data/features/backtraces.feature +3 -3
  19. data/features/before_hook.feature +43 -0
  20. data/features/bootstrap.feature +14 -2
  21. data/features/custom_formatter.feature +1 -1
  22. data/features/drb_server_integration.feature +3 -3
  23. data/features/formatter_callbacks.feature +2 -2
  24. data/features/formatter_step_file_colon_line.feature +1 -1
  25. data/features/html_formatter.feature +52 -1
  26. data/features/json_formatter.feature +93 -7
  27. data/features/load_path.feature +14 -0
  28. data/features/nested_steps.feature +75 -3
  29. data/features/nested_steps_i18n.feature +36 -0
  30. data/features/pretty_formatter.feature +31 -0
  31. data/features/progress_formatter.feature +31 -0
  32. data/features/raketask.feature +51 -0
  33. data/features/rerun_formatter.feature +1 -1
  34. data/features/stats_formatters.feature +17 -14
  35. data/features/step_definitions/cucumber_steps.rb +6 -4
  36. data/features/support/env.rb +31 -4
  37. data/features/support/feature_factory.rb +17 -0
  38. data/features/tagged_hooks.feature +37 -195
  39. data/features/transforms.feature +15 -15
  40. data/gem_tasks/cucumber.rake +2 -0
  41. data/gem_tasks/yard.rake +10 -6
  42. data/legacy_features/README.md +14 -0
  43. data/legacy_features/language_help.feature +3 -1
  44. data/legacy_features/report_called_undefined_steps.feature +1 -0
  45. data/legacy_features/snippets_when_using_star_keyword.feature +1 -0
  46. data/legacy_features/support/env.rb +4 -0
  47. data/lib/cucumber/ast/background.rb +35 -35
  48. data/lib/cucumber/ast/empty_background.rb +33 -0
  49. data/lib/cucumber/ast/examples.rb +5 -2
  50. data/lib/cucumber/ast/feature.rb +24 -35
  51. data/lib/cucumber/ast/features.rb +4 -1
  52. data/lib/cucumber/ast/has_steps.rb +9 -17
  53. data/lib/cucumber/ast/location.rb +41 -0
  54. data/lib/cucumber/ast/scenario.rb +37 -50
  55. data/lib/cucumber/ast/scenario_outline.rb +62 -49
  56. data/lib/cucumber/ast/step.rb +23 -27
  57. data/lib/cucumber/ast/step_collection.rb +16 -0
  58. data/lib/cucumber/ast/step_invocation.rb +4 -1
  59. data/lib/cucumber/ast/tree_walker.rb +7 -0
  60. data/lib/cucumber/cli/configuration.rb +15 -3
  61. data/lib/cucumber/cli/main.rb +24 -11
  62. data/lib/cucumber/cli/options.rb +24 -16
  63. data/lib/cucumber/configuration.rb +4 -0
  64. data/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb +10 -34
  65. data/lib/cucumber/core_ext/instance_exec.rb +4 -1
  66. data/lib/cucumber/core_ext/proc.rb +2 -0
  67. data/lib/cucumber/feature_file.rb +5 -12
  68. data/lib/cucumber/formatter/console.rb +10 -0
  69. data/lib/cucumber/formatter/gherkin_formatter_adapter.rb +4 -4
  70. data/lib/cucumber/formatter/html.rb +7 -42
  71. data/lib/cucumber/formatter/interceptor.rb +4 -0
  72. data/lib/cucumber/formatter/json_pretty.rb +0 -4
  73. data/lib/cucumber/formatter/junit.rb +8 -2
  74. data/lib/cucumber/formatter/pretty.rb +5 -1
  75. data/lib/cucumber/formatter/progress.rb +4 -0
  76. data/lib/cucumber/formatter/unicode.rb +12 -25
  77. data/lib/cucumber/formatter/usage.rb +7 -2
  78. data/lib/cucumber/js_support/js_snippets.rb +1 -1
  79. data/lib/cucumber/load_path.rb +13 -0
  80. data/lib/cucumber/parser/gherkin_builder.rb +237 -81
  81. data/lib/cucumber/platform.rb +1 -1
  82. data/lib/cucumber/py_support/py_language.rb +1 -1
  83. data/lib/cucumber/rake/task.rb +5 -1
  84. data/lib/cucumber/rb_support/rb_language.rb +20 -19
  85. data/lib/cucumber/rb_support/rb_world.rb +63 -21
  86. data/lib/cucumber/rb_support/snippet.rb +108 -0
  87. data/lib/cucumber/runtime.rb +1 -0
  88. data/lib/cucumber/runtime/support_code.rb +2 -2
  89. data/lib/cucumber/unit.rb +11 -0
  90. data/lib/cucumber/wire_support/wire_language.rb +1 -1
  91. data/spec/cucumber/ast/background_spec.rb +13 -6
  92. data/spec/cucumber/ast/feature_factory.rb +20 -10
  93. data/spec/cucumber/ast/features_spec.rb +51 -0
  94. data/spec/cucumber/ast/scenario_outline_spec.rb +13 -7
  95. data/spec/cucumber/ast/step_spec.rb +6 -4
  96. data/spec/cucumber/cli/configuration_spec.rb +34 -1
  97. data/spec/cucumber/cli/main_spec.rb +36 -26
  98. data/spec/cucumber/cli/options_spec.rb +28 -19
  99. data/spec/cucumber/core_ext/proc_spec.rb +13 -1
  100. data/spec/cucumber/formatter/interceptor_spec.rb +8 -0
  101. data/spec/cucumber/formatter/junit_spec.rb +33 -0
  102. data/spec/cucumber/formatter/pretty_spec.rb +391 -0
  103. data/spec/cucumber/rb_support/rb_language_spec.rb +21 -50
  104. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +2 -4
  105. data/spec/cucumber/rb_support/snippet_spec.rb +128 -0
  106. data/spec/cucumber/step_match_spec.rb +2 -6
  107. metadata +62 -113
  108. data/.rvmrc +0 -1
  109. data/features/hooks.feature +0 -59
  110. data/legacy_features/call_steps_from_stepdefs.feature +0 -154
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cce0623a68ac92b3c47a0dd3fdf6eb455b2666ec
4
- data.tar.gz: d970e5846f179c4be17371fbfabba4b3f68cd319
5
- SHA512:
6
- metadata.gz: 1238950d0b951e4b042a2ae3c6c1a81b99677ef7f783bd85af3bd6bc87654aa58663302ddaf2a23e65ce4b4000aa64e3a9a50b2086747da363cf190428d08300
7
- data.tar.gz: 8ba5c1d80be5432322279c8bc25832ac4f1b178ccb9482d985cc3f6cc8fd8f7c773c949660042c27b04c1cff1ca77b3b7f4cdab1d15f3e80b09aecb3ae42fafe
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YWFhMTkxZTNkZGMxYjJlNDEzZmFiMmZkMTQyZWRmYjcwYWQ4MGZhZg==
5
+ data.tar.gz: !binary |-
6
+ MzIxNWM1YWRkMjI5NWFlNGExM2EwMTY0NjE3NzU1ODY0YWFhYzA5Nw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YmI2ZTM2ZTZjYWEyMzIzMjdjYzg0NzhlOTY2YTM4NWEzNjRhMzkwMWZjNWQ0
10
+ ZGU0OWI4ODIyMDhlNTRjMjBmMTJhZDQyZDI5NDY2OGMzYTllOGI2YjljZmFi
11
+ MjQxYWQ1YTkxMjMwY2U1Y2IyMmQyYmNiYTU1MmZmYTY5ZDdiNGY=
12
+ data.tar.gz: !binary |-
13
+ Njk3Y2Y3NmM5MzQ4ZDFiYzAwNzYyODhmYWQ2ZWZlMDU0YWNmNDFmNDdjNDBh
14
+ NTY1OWZmNzlhYTMxNmNiZDEzYWZlNjc1Mzg0ZTNiZGRhZjI3MDczMWMyMjA0
15
+ MDE4ZTA5MmYwNTY3YTk2NzYzNmQ1OTI4ZTk1ZTFmMGNhMDhkN2Y=
@@ -0,0 +1 @@
1
+ cucumber
@@ -0,0 +1 @@
1
+ 1.9.3
@@ -2,6 +2,7 @@ rvm:
2
2
  - 2.0.0
3
3
  - 1.9.3
4
4
  - 1.8.7
5
+ - jruby
5
6
 
6
7
  # whitelist
7
8
  branches:
@@ -0,0 +1 @@
1
+ --no-private
@@ -2,8 +2,8 @@
2
2
 
3
3
  We appreciate that. But before you do, please learn our basic rules:
4
4
 
5
- * This is not a support forum. If you have a question, please go to [The Cukes Google Group](groups.google.com/group/cukes).
6
- * Do you have an idea for a new feature? Then don't expect it to be implemented unless you or someone else sends a [pull request](https://help.github.com/articles/using-pull-requests). You might be better to start a discussion on [the google group](groups.google.com/group/cukes).
5
+ * This is not a support forum. If you have a question, please go to [The Cukes Google Group](http://groups.google.com/group/cukes).
6
+ * Do you have an idea for a new feature? Then don't expect it to be implemented unless you or someone else sends a [pull request](https://help.github.com/articles/using-pull-requests). You might be better to start a discussion on [the google group](http://groups.google.com/group/cukes).
7
7
  * Reporting a bug? Please tell us:
8
8
  * which version of Cucumber you're using
9
9
  * which version of Ruby you're using.
data/History.md CHANGED
@@ -1,8 +1,44 @@
1
- ## [1.2.5](https://github.com/cucumber/cucumber/compare/v1.2.2...v1.2.3)
1
+ ## [1.3.0](https://github.com/cucumber/cucumber/compare/v1.2.5...v1.3.0)
2
+
3
+ ### New Features
4
+ * Faster features, thanks to in-process Aruba. (Aslak Hellesøy)
5
+ * Add lib to default load path
6
+ ([#162](https://github.com/cucumber/cucumber/issues/162) Steve Tooke)
7
+ * Add snippet type to support different type of ruby snippets.
8
+ ([#390](https://github.com/cucumber/cucumber/pull/390) Roel van Dijk)
9
+ * Call nested steps using any language keywords ([#433](https://github.com/cucumber/cucumber/pull/433) Tomohiko Himura)
10
+
11
+ ### Bugfixes
12
+ * Update watir example ([#427](https://github.com/cucumber/cucumber/issues/427)) Luiz Guilherme D'Abruzzo Pereira
13
+ * Ensure that cucumber.yml is only parsed once ([#416](https://github.com/cucumber/cucumber/issues/416)) Steve Tooke
14
+ * Improve rake task report on failure ([#400](https://github.com/cucumber/cucumber/issues/400) Andrey Vakarev
15
+ * Show details of nested steps in backtraces
16
+ ([#69](https://github.com/cucumber/cucumber/issues/69)) Steve Tooke
17
+ * Filter out control characters from CDATA section of JUnit formatter output.
18
+ ([#383](https://github.com/cucumber/cucumber/issues/383) @teacup-on-rockingchair)
19
+ * Fix problem with non-ascii characters in file path
20
+ ([#150](https://github.com/cucumber/cucumber/issues/150) Oleg Sukhodolsky)
21
+ * Fix problem loading ruby files in project root directory
22
+ ([#269](https://github.com/cucumber/cucumber/issues/269) Steve Tooke)
23
+ * Fix JsonPretty formatter problem
24
+ ([#197](https://github.com/cucumber/cucumber/issues/197) Oleg Sukhodolsky)
25
+ * Don't display multi-line strings when --no-multiline is passed
26
+ ([#201](https://github.com/cucumber/cucumber/issues/201) David Kowis)
27
+ * Moved the profile information output to a callback of the formatter
28
+ ([#175](https://github.com/cucumber/cucumber/issues/175) David Kowis)
29
+ * Fix html formatter to not mark skipped/unimplemented steps as failed
30
+ ([#337](https://github.com/cucumber/cucumber/issues/337) Oleg Sukhodolsky)
31
+ * Allow duplication for format+output pair in command line
32
+ ([#434](https://github.com/cucumber/cucumber/issues/434) David Lantos)
33
+ * Better delegation to IO in Cucumber::Formatter::Interceptor::Pipe
34
+ ([#312](https://github.com/cucumber/cucumber/issues/312) Oleg Sukhodolsky)
35
+
36
+ ## [1.2.5](https://github.com/cucumber/cucumber/compare/v1.2.3...v1.2.5)
2
37
 
3
38
  * Upgrade Gherkin version to remove warnings when running on JRuby. ([#393](https://github.com/cucumber/cucumber/issues/393) Oleg Sukhodolsky)
39
+ * Do not use TagExpression.eval() which is deprecated in Gherkin 2.11.7 ([#420](https://github.com/cucumber/cucumber/issues/420) Oleg Sukhodolsky)
4
40
 
5
- ## [1.2.4]
41
+ ## 1.2.4
6
42
 
7
43
  Yanked. See ([#428](https://github.com/cucumber/cucumber/issues/428)).
8
44
 
@@ -9,14 +9,5 @@ end
9
9
 
10
10
  require 'cucumber/rspec/disable_option_parser'
11
11
  require 'cucumber/cli/main'
12
- begin
13
- # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
14
- failure = Cucumber::Cli::Main.execute(ARGV.dup)
15
- Kernel.exit(1) if failure
16
- rescue SystemExit => e
17
- Kernel.exit(e.status)
18
- rescue Exception => e
19
- STDERR.puts("#{e.message} (#{e.class})")
20
- STDERR.puts(e.backtrace.join("\n"))
21
- Kernel.exit(1)
22
- end
12
+ # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
13
+ Cucumber::Cli::Main.new(ARGV.dup).execute!
@@ -15,10 +15,10 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.add_dependency 'builder', '>= 2.1.2'
17
17
  s.add_dependency 'diff-lcs', '>= 1.1.3'
18
- s.add_dependency 'gherkin', '~> 2.11.7'
18
+ s.add_dependency 'gherkin', '~> 2.12.0'
19
19
  s.add_dependency 'multi_json', '~> 1.3'
20
20
 
21
- s.add_development_dependency 'aruba', '~> 0.5.0'
21
+ s.add_development_dependency 'aruba', '~> 0.5.2'
22
22
  s.add_development_dependency 'json', '~> 1.7'
23
23
  s.add_development_dependency 'nokogiri', '>= 1.5.2'
24
24
  s.add_development_dependency 'rake', '>= 0.9.2'
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.add_development_dependency 'yard', '~> 0.8.0'
34
34
 
35
35
  # Needed for examples (rake examples)
36
- s.add_development_dependency 'capybara', '>= 1.1.2'
36
+ s.add_development_dependency 'capybara', '>= 1.1.2', '< 2.1'
37
37
  s.add_development_dependency 'rack-test', '>= 0.6.1'
38
38
  s.add_development_dependency 'ramaze'
39
39
  s.add_development_dependency 'sinatra', '>= 1.3.2'
@@ -2,6 +2,7 @@
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"
5
+ std_opts << " --tags ~@wip-jruby" if defined?(JRUBY_VERSION)
5
6
  begin
6
7
  require 'rspec/expectations'
7
8
  std_opts << ' --tags ~@rspec1'
@@ -9,13 +10,16 @@ rescue LoadError
9
10
  # rspec 1
10
11
  std_opts << ' --tags ~@rspec2'
11
12
  end
13
+ wip_opts = "--color --tags @wip:3"
14
+ wip_opts << ",@wip-jruby:3" if defined?(JRUBY_VERSION)
12
15
  %>
13
16
  default: <%= std_opts %> --tags ~@jruby --dotcucumber features/.cucumber
14
17
  jruby: <%= std_opts %> --tags ~@spork --tags ~@wire
15
18
  jruby_win: <%= std_opts %> --tags ~@spork --tags ~@wire CUCUMBER_FORWARD_SLASH_PATHS=true
16
19
  windows_mri: <%= std_opts %> --tags ~@jruby --tags ~@spork --tags ~@wire --tags ~@needs-many-fonts CUCUMBER_FORWARD_SLASH_PATHS=true
20
+ ruby_1_8_7: <%= std_opts %> --tags ~@jruby --tags ~@fails_on_1_8_7
17
21
  ruby_1_9: <%= std_opts %> --tags ~@jruby --tags ~@fails_on_1_9
18
22
  ruby_2_0: <%= std_opts %> --tags ~@jruby --tags ~@fails_on_1_9
19
- wip: --tags @wip:3 --wip features
23
+ wip: --wip <%= wip_opts %> features
20
24
  none: --format pretty
21
25
  rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'test-unit'
4
+ gem 'cucumber', path: '../..'
@@ -1,6 +1,3 @@
1
- require 'test/unit/assertions'
2
- World(Test::Unit::Assertions)
3
-
4
1
  Given /^(\w+) = (\w+)$/ do |var, value|
5
2
  instance_variable_set("@#{var}", value)
6
3
  end
@@ -20,4 +17,4 @@ rescue LoadError
20
17
  b = instance_variable_get("@#{var_b}")
21
18
  assert_equal(a, b)
22
19
  end
23
- end
20
+ end
@@ -7,9 +7,9 @@ Just run with:
7
7
  rake cucumber
8
8
 
9
9
  This will use Watir/IE if you're on Windows, and SafariWatir/Safari if you're on OS X.
10
- You can force the use of FireWatir/Firefox on any platform like this:
10
+ You can force the use of Firefox on any platform like this:
11
11
 
12
- rake features FIREWATIR=true
12
+ rake features FIREFOX=true
13
13
 
14
14
  And finally, you can use Celerity by running in JRuby:
15
15
 
@@ -1,8 +1,11 @@
1
1
  begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
2
2
 
3
- if ENV['FIREWATIR']
4
- require 'firewatir'
5
- Browser = FireWatir::Firefox
3
+ browser = nil
4
+
5
+ if ENV['FIREFOX']
6
+ require 'watir-webdriver'
7
+ Browser = Watir::Browser
8
+ browser = Browser.new :ff
6
9
  else
7
10
  case RUBY_PLATFORM
8
11
  when /darwin/
@@ -15,12 +18,12 @@ else
15
18
  require 'celerity'
16
19
  Browser = Celerity::Browser
17
20
  else
18
- raise "This platform is not supported (#{PLATFORM})"
21
+ raise "This platform is not supported (#{RUBY_PLATFORM})"
19
22
  end
20
- end
21
23
 
22
- # "before all"
23
- browser = Browser.new
24
+ # "before all"
25
+ browser = Browser.new
26
+ end
24
27
 
25
28
  Before do
26
29
  @browser = browser
@@ -1,1855 +1,1248 @@
1
1
  [
2
2
  {
3
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:5",
4
- "source": "^I am in (.*)$",
3
+ "source": "The default aruba timeout is (\\d+) seconds",
4
+ "flags": "",
5
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:7",
5
6
  "steps": [
6
7
 
7
- ],
8
- "flags": ""
8
+ ]
9
9
  },
10
10
  {
11
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:9",
12
- "source": "^a standard Cucumber project directory structure$",
11
+ "source": "^I'm using a clean gemset \"([^\"]*)\"$",
12
+ "flags": "",
13
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:11",
13
14
  "steps": [
14
- {
15
- "args": [
16
15
 
17
- ],
18
- "name": "a standard Cucumber project directory structure"
19
- }
20
- ],
21
- "flags": ""
16
+ ]
22
17
  },
23
18
  {
24
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:18",
25
- "source": "^the (.*) directory is empty$",
19
+ "source": "^a directory named \"([^\"]*)\"$",
20
+ "flags": "",
21
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:15",
26
22
  "steps": [
27
23
 
28
- ],
29
- "flags": ""
30
- },
31
- {
32
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:25",
33
- "source": "^a file named \"([^\"]*)\"$",
34
- "steps": [
35
- {
36
- "args": [
37
- {
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
76
- }
77
- ],
78
- "name": "a file named \"features/support/env.rb\""
79
- },
80
- {
81
- "args": [
82
- {
83
- "val": "features/support/require_me.rb",
84
- "offset": 14
85
- }
86
- ],
87
- "name": "a file named \"features/support/require_me.rb\""
88
- }
89
- ],
90
- "flags": ""
24
+ ]
91
25
  },
92
26
  {
93
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:29",
94
27
  "source": "^a file named \"([^\"]*)\" with:$",
28
+ "flags": "",
29
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:19",
95
30
  "steps": [
96
31
  {
32
+ "name": "a file named \"cucumber.yml\" with:",
97
33
  "args": [
98
34
  {
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
35
+ "offset": 14,
36
+ "val": "cucumber.yml"
209
37
  }
210
- ],
211
- "name": "a file named \"features/step_definitions/foo_steps.rb\" with:"
38
+ ]
212
39
  },
213
40
  {
41
+ "name": "a file named \"features/action.feature\" with:",
214
42
  "args": [
215
43
  {
216
- "val": "features/step_definitions/server.wire",
217
- "offset": 14
44
+ "offset": 14,
45
+ "val": "features/action.feature"
218
46
  }
219
- ],
220
- "name": "a file named \"features/step_definitions/server.wire\" with:"
47
+ ]
221
48
  },
222
49
  {
50
+ "name": "a file named \"features/doc_string.feature\" with:",
223
51
  "args": [
224
52
  {
225
- "val": "features/step_definitions/some_remote_place.wire",
226
- "offset": 14
53
+ "offset": 14,
54
+ "val": "features/doc_string.feature"
227
55
  }
228
- ],
229
- "name": "a file named \"features/step_definitions/some_remote_place.wire\" with:"
56
+ ]
230
57
  },
231
58
  {
59
+ "name": "a file named \"features/f.feature\" with:",
232
60
  "args": [
233
61
  {
234
- "val": "features/step_definitions/steps.rb",
235
- "offset": 14
62
+ "offset": 14,
63
+ "val": "features/f.feature"
236
64
  }
237
- ],
238
- "name": "a file named \"features/step_definitions/steps.rb\" with:"
65
+ ]
239
66
  },
240
67
  {
68
+ "name": "a file named \"features/foo.feature\" with:",
241
69
  "args": [
242
70
  {
243
- "val": "features/step_definitions/success.rb",
244
- "offset": 14
71
+ "offset": 14,
72
+ "val": "features/foo.feature"
245
73
  }
246
- ],
247
- "name": "a file named \"features/step_definitions/success.rb\" with:"
74
+ ]
248
75
  },
249
76
  {
77
+ "name": "a file named \"features/only_background_and_hooks.feature\" with:",
250
78
  "args": [
251
79
  {
252
- "val": "features/step_definitions/t_steps.rb",
253
- "offset": 14
80
+ "offset": 14,
81
+ "val": "features/only_background_and_hooks.feature"
254
82
  }
255
- ],
256
- "name": "a file named \"features/step_definitions/t_steps.rb\" with:"
83
+ ]
257
84
  },
258
85
  {
86
+ "name": "a file named \"features/only_background_and_hooks_steps.rb\" with:",
259
87
  "args": [
260
88
  {
261
- "val": "features/step_definitions/table_steps.rb",
262
- "offset": 14
89
+ "offset": 14,
90
+ "val": "features/only_background_and_hooks_steps.rb"
263
91
  }
264
- ],
265
- "name": "a file named \"features/step_definitions/table_steps.rb\" with:"
92
+ ]
266
93
  },
267
94
  {
95
+ "name": "a file named \"features/step_definitions/assert_steps.rb\" with:",
268
96
  "args": [
269
97
  {
270
- "val": "features/success.feature",
271
- "offset": 14
98
+ "offset": 14,
99
+ "val": "features/step_definitions/assert_steps.rb"
272
100
  }
273
- ],
274
- "name": "a file named \"features/success.feature\" with:"
101
+ ]
275
102
  },
276
103
  {
104
+ "name": "a file named \"features/step_definitions/doc_string_steps.rb\" with:",
277
105
  "args": [
278
106
  {
279
- "val": "features/support/env.rb",
280
- "offset": 14
107
+ "offset": 14,
108
+ "val": "features/step_definitions/doc_string_steps.rb"
281
109
  }
282
- ],
283
- "name": "a file named \"features/support/env.rb\" with:"
110
+ ]
284
111
  },
285
112
  {
113
+ "name": "a file named \"features/step_definitions/multiline_steps.rb\" with:",
286
114
  "args": [
287
115
  {
288
- "val": "features/support/hooks.rb",
289
- "offset": 14
116
+ "offset": 14,
117
+ "val": "features/step_definitions/multiline_steps.rb"
290
118
  }
291
- ],
292
- "name": "a file named \"features/support/hooks.rb\" with:"
119
+ ]
293
120
  },
294
121
  {
122
+ "name": "a file named \"features/step_definitions/steps.rb\" with:",
295
123
  "args": [
296
124
  {
297
- "val": "features/support/table.rb",
298
- "offset": 14
125
+ "offset": 14,
126
+ "val": "features/step_definitions/steps.rb"
299
127
  }
300
- ],
301
- "name": "a file named \"features/support/table.rb\" with:"
128
+ ]
302
129
  },
303
130
  {
131
+ "name": "a file named \"features/support/env.rb\" with:",
304
132
  "args": [
305
133
  {
306
- "val": "features/t.feature",
307
- "offset": 14
134
+ "offset": 14,
135
+ "val": "features/support/env.rb"
308
136
  }
309
- ],
310
- "name": "a file named \"features/t.feature\" with:"
137
+ ]
311
138
  },
312
139
  {
140
+ "name": "a file named \"features/support/hook.rb\" with:",
313
141
  "args": [
314
142
  {
315
- "val": "features/tables.feature",
316
- "offset": 14
143
+ "offset": 14,
144
+ "val": "features/support/hook.rb"
317
145
  }
318
- ],
319
- "name": "a file named \"features/tables.feature\" with:"
146
+ ]
320
147
  },
321
148
  {
149
+ "name": "a file named \"features/support/jb/formatter.rb\" with:",
322
150
  "args": [
323
151
  {
324
- "val": "features/transform_sample.feature",
325
- "offset": 14
152
+ "offset": 14,
153
+ "val": "features/support/jb/formatter.rb"
326
154
  }
327
- ],
328
- "name": "a file named \"features/transform_sample.feature\" with:"
155
+ ]
329
156
  },
330
157
  {
158
+ "name": "a file named \"features/support/ze/formator.rb\" with:",
331
159
  "args": [
332
160
  {
333
- "val": "features/unicode.feature",
334
- "offset": 14
161
+ "offset": 14,
162
+ "val": "features/support/ze/formator.rb"
335
163
  }
336
- ],
337
- "name": "a file named \"features/unicode.feature\" with:"
164
+ ]
338
165
  },
339
166
  {
167
+ "name": "a file named \"features/test.feature\" with:",
340
168
  "args": [
341
169
  {
342
- "val": "features/wired.feature",
343
- "offset": 14
170
+ "offset": 14,
171
+ "val": "features/test.feature"
344
172
  }
345
- ],
346
- "name": "a file named \"features/wired.feature\" with:"
173
+ ]
347
174
  },
348
175
  {
176
+ "name": "a file named \"lib/something.rb\" with:",
349
177
  "args": [
350
178
  {
351
- "val": "features/wired_on_tables.feature",
352
- "offset": 14
179
+ "offset": 14,
180
+ "val": "lib/something.rb"
353
181
  }
354
- ],
355
- "name": "a file named \"features/wired_on_tables.feature\" with:"
182
+ ]
356
183
  },
357
184
  {
185
+ "name": "a file named \"should_not_load.rb\" with:",
358
186
  "args": [
359
187
  {
360
- "val": "features/x.feature",
361
- "offset": 14
188
+ "offset": 14,
189
+ "val": "should_not_load.rb"
362
190
  }
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:"
191
+ ]
374
192
  }
375
- ],
376
- "flags": ""
193
+ ]
377
194
  },
378
195
  {
379
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:33",
380
- "source": "^the following profiles? (?:are|is) defined:$",
196
+ "source": "^a (\\d+) byte file named \"([^\"]*)\"$",
197
+ "flags": "",
198
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:23",
381
199
  "steps": [
382
- {
383
- "args": [
384
200
 
385
- ],
386
- "name": "the following profile is defined:"
387
- },
388
- {
389
- "args": [
201
+ ]
202
+ },
203
+ {
204
+ "source": "^an empty file named \"([^\"]*)\"$",
205
+ "flags": "",
206
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:27",
207
+ "steps": [
390
208
 
391
- ],
392
- "name": "the following profiles are defined:"
393
- }
394
- ],
395
- "flags": ""
209
+ ]
396
210
  },
397
211
  {
398
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:37",
399
- "source": "^I am running spork in the background$",
212
+ "source": "^I write to \"([^\"]*)\" with:$",
213
+ "flags": "",
214
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:31",
400
215
  "steps": [
401
- {
402
- "args": [
403
216
 
404
- ],
405
- "name": "I am running spork in the background"
406
- }
407
- ],
408
- "flags": ""
217
+ ]
409
218
  },
410
219
  {
411
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:41",
412
- "source": "^I am running spork in the background on port (\\d+)$",
220
+ "source": "^I overwrite \"([^\"]*)\" with:$",
221
+ "flags": "",
222
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:35",
413
223
  "steps": [
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": ""
224
+
225
+ ]
425
226
  },
426
227
  {
427
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:45",
428
- "source": "^I am not running (?:.*) in the background$",
228
+ "source": "^I append to \"([^\"]*)\" with:$",
229
+ "flags": "",
230
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:39",
429
231
  "steps": [
430
- {
431
- "args": [
432
232
 
433
- ],
434
- "name": "I am not running a DRb server in the background"
435
- }
436
- ],
437
- "flags": ""
233
+ ]
438
234
  },
439
235
  {
440
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:49",
441
- "source": "^I have environment variable (\\w+) set to \"([^\"]*)\"$",
236
+ "source": "^I append to \"([^\"]*)\" with \"([^\"]*)\"$",
237
+ "flags": "",
238
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:43",
442
239
  "steps": [
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": ""
240
+
241
+ ]
471
242
  },
472
243
  {
473
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:53",
474
- "source": "^I run cucumber (.*)$",
244
+ "source": "^I remove the file \"([^\"]*)\"$",
245
+ "flags": "",
246
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:47",
247
+ "steps": [
248
+
249
+ ]
250
+ },
251
+ {
252
+ "source": "^I cd to \"([^\"]*)\"$",
253
+ "flags": "",
254
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:51",
255
+ "steps": [
256
+
257
+ ]
258
+ },
259
+ {
260
+ "source": "^I run \"(.*)\"$",
261
+ "flags": "",
262
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:55",
263
+ "steps": [
264
+
265
+ ]
266
+ },
267
+ {
268
+ "source": "^I run `([^`]*)`$",
269
+ "flags": "",
270
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:60",
475
271
  "steps": [
476
272
  {
273
+ "name": "I run `bundle exec rake fail`",
477
274
  "args": [
478
275
  {
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
276
+ "offset": 7,
277
+ "val": "bundle exec rake fail"
490
278
  }
491
- ],
492
- "name": "I run cucumber --backtrace -s features"
279
+ ]
493
280
  },
494
281
  {
282
+ "name": "I run `bundle exec rake pass`",
495
283
  "args": [
496
284
  {
497
- "val": "--dry-run --no-snippets -f progress",
498
- "offset": 15
285
+ "offset": 7,
286
+ "val": "bundle exec rake pass"
499
287
  }
500
- ],
501
- "name": "I run cucumber --dry-run --no-snippets -f progress"
288
+ ]
502
289
  },
503
290
  {
291
+ "name": "I run `cucumber --format json features/doc_string.feature`",
504
292
  "args": [
505
293
  {
506
- "val": "--dry-run --no-source features/*.feature --tags ~@lots",
507
- "offset": 15
294
+ "offset": 7,
295
+ "val": "cucumber --format json features/doc_string.feature"
508
296
  }
509
- ],
510
- "name": "I run cucumber --dry-run --no-source features/*.feature --tags ~@lots"
297
+ ]
511
298
  },
512
299
  {
300
+ "name": "I run `cucumber --format json features/one_passing_one_failing.feature`",
513
301
  "args": [
514
302
  {
515
- "val": "--dry-run -f progress",
516
- "offset": 15
303
+ "offset": 7,
304
+ "val": "cucumber --format json features/one_passing_one_failing.feature"
517
305
  }
518
- ],
519
- "name": "I run cucumber --dry-run -f progress"
306
+ ]
520
307
  },
521
308
  {
309
+ "name": "I run `cucumber --format json_pretty features/one_passing_one_failing.feature`",
522
310
  "args": [
523
311
  {
524
- "val": "--format junit --out tmp/ features",
525
- "offset": 15
312
+ "offset": 7,
313
+ "val": "cucumber --format json_pretty features/one_passing_one_failing.feature"
526
314
  }
527
- ],
528
- "name": "I run cucumber --format junit --out tmp/ features"
315
+ ]
529
316
  },
530
317
  {
318
+ "name": "I run `cucumber --profile default --format html`",
531
319
  "args": [
532
320
  {
533
- "val": "--format junit --out tmp/ features/one_passing_one_failing.feature",
534
- "offset": 15
321
+ "offset": 7,
322
+ "val": "cucumber --profile default --format html"
535
323
  }
536
- ],
537
- "name": "I run cucumber --format junit --out tmp/ features/one_passing_one_failing.feature"
324
+ ]
538
325
  },
539
326
  {
327
+ "name": "I run `cucumber --profile default --format pretty`",
540
328
  "args": [
541
329
  {
542
- "val": "--format junit --out tmp/ features/pending.feature",
543
- "offset": 15
330
+ "offset": 7,
331
+ "val": "cucumber --profile default --format pretty"
544
332
  }
545
- ],
546
- "name": "I run cucumber --format junit --out tmp/ features/pending.feature"
333
+ ]
547
334
  },
548
335
  {
336
+ "name": "I run `cucumber --profile default --format progress`",
549
337
  "args": [
550
338
  {
551
- "val": "--format junit --out tmp/ features/pending.feature --strict",
552
- "offset": 15
339
+ "offset": 7,
340
+ "val": "cucumber --profile default --format progress"
553
341
  }
554
- ],
555
- "name": "I run cucumber --format junit --out tmp/ features/pending.feature --strict"
342
+ ]
556
343
  },
557
344
  {
345
+ "name": "I run `cucumber -b --format json features/embed.feature`",
558
346
  "args": [
559
347
  {
560
- "val": "--format junit --out tmp/ features/scenario_outline.feature",
561
- "offset": 15
348
+ "offset": 7,
349
+ "val": "cucumber -b --format json features/embed.feature"
562
350
  }
563
- ],
564
- "name": "I run cucumber --format junit --out tmp/ features/scenario_outline.feature"
351
+ ]
565
352
  },
566
353
  {
354
+ "name": "I run `cucumber -f stepdefs --dry-run`",
567
355
  "args": [
568
356
  {
569
- "val": "--format junit --out tmp/ features/some_subdirectory/one_passing_one_failing.feature --require features",
570
- "offset": 15
357
+ "offset": 7,
358
+ "val": "cucumber -f stepdefs --dry-run"
571
359
  }
572
- ],
573
- "name": "I run cucumber --format junit --out tmp/ features/some_subdirectory/one_passing_one_failing.feature --require features"
360
+ ]
574
361
  },
575
362
  {
363
+ "name": "I run `cucumber -f usage --dry-run`",
576
364
  "args": [
577
365
  {
578
- "val": "--format junit features",
579
- "offset": 15
366
+ "offset": 7,
367
+ "val": "cucumber -f usage --dry-run"
580
368
  }
581
- ],
582
- "name": "I run cucumber --format junit features"
369
+ ]
583
370
  },
584
371
  {
372
+ "name": "I run `cucumber -q -t @one -t @three features/tagulicious.feature`",
585
373
  "args": [
586
374
  {
587
- "val": "--format pretty features/f.feature",
588
- "offset": 15
375
+ "offset": 7,
376
+ "val": "cucumber -q -t @one -t @three features/tagulicious.feature"
589
377
  }
590
- ],
591
- "name": "I run cucumber --format pretty features/f.feature"
378
+ ]
592
379
  },
593
380
  {
381
+ "name": "I run `cucumber -q -t @one,@three features/tagulicious.feature`",
594
382
  "args": [
595
383
  {
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
384
+ "offset": 7,
385
+ "val": "cucumber -q -t @one,@three features/tagulicious.feature"
598
386
  }
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"
387
+ ]
601
388
  },
602
389
  {
390
+ "name": "I run `cucumber -q features/background_tagged_before_on_outline.feature`",
603
391
  "args": [
604
392
  {
605
- "val": "--format progress features/f.feature",
606
- "offset": 15
393
+ "offset": 7,
394
+ "val": "cucumber -q features/background_tagged_before_on_outline.feature"
607
395
  }
608
- ],
609
- "name": "I run cucumber --format progress features/f.feature"
396
+ ]
610
397
  },
611
398
  {
399
+ "name": "I run `cucumber -q features/failing_background.feature`",
612
400
  "args": [
613
401
  {
614
- "val": "--format progress features/puts_world.feature",
615
- "offset": 15
402
+ "offset": 7,
403
+ "val": "cucumber -q features/failing_background.feature"
616
404
  }
617
- ],
618
- "name": "I run cucumber --format progress features/puts_world.feature"
405
+ ]
619
406
  },
620
407
  {
408
+ "name": "I run `cucumber -q features/failing_background_after_success.feature`",
621
409
  "args": [
622
410
  {
623
- "val": "--i18n help",
624
- "offset": 15
411
+ "offset": 7,
412
+ "val": "cucumber -q features/failing_background_after_success.feature"
625
413
  }
626
- ],
627
- "name": "I run cucumber --i18n help"
414
+ ]
628
415
  },
629
416
  {
417
+ "name": "I run `cucumber -q features/multiline_args_background.feature`",
630
418
  "args": [
631
419
  {
632
- "val": "--i18n pt help",
633
- "offset": 15
420
+ "offset": 7,
421
+ "val": "cucumber -q features/multiline_args_background.feature"
634
422
  }
635
- ],
636
- "name": "I run cucumber --i18n pt help"
423
+ ]
637
424
  },
638
425
  {
426
+ "name": "I run `cucumber -q features/passing_background.feature:9`",
639
427
  "args": [
640
428
  {
641
- "val": "--name 'Hantu Pisang background' -q features/",
642
- "offset": 15
429
+ "offset": 7,
430
+ "val": "cucumber -q features/passing_background.feature:9"
643
431
  }
644
- ],
645
- "name": "I run cucumber --name 'Hantu Pisang background' -q features/"
432
+ ]
646
433
  },
647
434
  {
435
+ "name": "I run `cucumber -q features/passing_background.feature`",
648
436
  "args": [
649
437
  {
650
- "val": "--name Pisang -q features/",
651
- "offset": 15
438
+ "offset": 7,
439
+ "val": "cucumber -q features/passing_background.feature"
652
440
  }
653
- ],
654
- "name": "I run cucumber --name Pisang -q features/"
441
+ ]
655
442
  },
656
443
  {
444
+ "name": "I run `cucumber -q features/pending_background.feature`",
657
445
  "args": [
658
446
  {
659
- "val": "--profile server",
660
- "offset": 15
447
+ "offset": 7,
448
+ "val": "cucumber -q features/pending_background.feature"
661
449
  }
662
- ],
663
- "name": "I run cucumber --profile server"
450
+ ]
664
451
  },
665
452
  {
453
+ "name": "I run `cucumber -q features/scenario_outline_failing_background.feature`",
666
454
  "args": [
667
455
  {
668
- "val": "-b -s features",
669
- "offset": 15
456
+ "offset": 7,
457
+ "val": "cucumber -q features/scenario_outline_failing_background.feature"
670
458
  }
671
- ],
672
- "name": "I run cucumber -b -s features"
459
+ ]
673
460
  },
674
461
  {
462
+ "name": "I run `cucumber -q features/scenario_outline_passing_background.feature`",
675
463
  "args": [
676
464
  {
677
- "val": "-f debug features/sample.feature",
678
- "offset": 15
465
+ "offset": 7,
466
+ "val": "cucumber -q features/scenario_outline_passing_background.feature"
679
467
  }
680
- ],
681
- "name": "I run cucumber -f debug features/sample.feature"
468
+ ]
682
469
  },
683
470
  {
471
+ "name": "I run `cucumber <file> --format html <flag>`",
684
472
  "args": [
685
473
  {
686
- "val": "-f pretty",
687
- "offset": 15
474
+ "offset": 7,
475
+ "val": "cucumber <file> --format html <flag>"
688
476
  }
689
- ],
690
- "name": "I run cucumber -f pretty"
477
+ ]
691
478
  },
692
479
  {
480
+ "name": "I run `cucumber features/f.feature --format Jb::Formatter`",
693
481
  "args": [
694
482
  {
695
- "val": "-f pretty -q",
696
- "offset": 15
483
+ "offset": 7,
484
+ "val": "cucumber features/f.feature --format Jb::Formatter"
697
485
  }
698
- ],
699
- "name": "I run cucumber -f pretty -q"
486
+ ]
700
487
  },
701
488
  {
489
+ "name": "I run `cucumber features/f.feature --format Ze::Formator`",
702
490
  "args": [
703
491
  {
704
- "val": "-f progress",
705
- "offset": 15
492
+ "offset": 7,
493
+ "val": "cucumber features/f.feature --format Ze::Formator"
706
494
  }
707
- ],
708
- "name": "I run cucumber -f progress"
495
+ ]
709
496
  },
710
497
  {
498
+ "name": "I run `cucumber features/f.feature --format debug --expand`",
711
499
  "args": [
712
500
  {
713
- "val": "-f progress --backtrace",
714
- "offset": 15
501
+ "offset": 7,
502
+ "val": "cucumber features/f.feature --format debug --expand"
715
503
  }
716
- ],
717
- "name": "I run cucumber -f progress --backtrace"
504
+ ]
718
505
  },
719
506
  {
507
+ "name": "I run `cucumber features/f.feature --format debug`",
720
508
  "args": [
721
509
  {
722
- "val": "-f progress features/t.feature",
723
- "offset": 15
510
+ "offset": 7,
511
+ "val": "cucumber features/f.feature --format debug"
724
512
  }
725
- ],
726
- "name": "I run cucumber -f progress features/t.feature"
513
+ ]
727
514
  },
728
515
  {
516
+ "name": "I run `cucumber features/f.feature:2`",
729
517
  "args": [
730
518
  {
731
- "val": "-f progress features/wired_on_tables.feature",
732
- "offset": 15
519
+ "offset": 7,
520
+ "val": "cucumber features/f.feature:2"
733
521
  }
734
- ],
735
- "name": "I run cucumber -f progress features/wired_on_tables.feature"
522
+ ]
736
523
  },
737
524
  {
525
+ "name": "I run `cucumber features/f.feature:6`",
738
526
  "args": [
739
527
  {
740
- "val": "-f rerun features/sample.feature features/all_good.feature",
741
- "offset": 15
528
+ "offset": 7,
529
+ "val": "cucumber features/f.feature:6"
742
530
  }
743
- ],
744
- "name": "I run cucumber -f rerun features/sample.feature features/all_good.feature"
531
+ ]
745
532
  },
746
533
  {
534
+ "name": "I run `cucumber features/foo.feature`",
747
535
  "args": [
748
536
  {
749
- "val": "-f stepdefs --dry-run",
750
- "offset": 15
537
+ "offset": 7,
538
+ "val": "cucumber features/foo.feature"
751
539
  }
752
- ],
753
- "name": "I run cucumber -f stepdefs --dry-run"
540
+ ]
754
541
  },
755
542
  {
543
+ "name": "I run `cucumber features/one_passing_one_failing.feature -r features -f rerun`",
756
544
  "args": [
757
545
  {
758
- "val": "-i -q --expand features/expand_me.feature",
759
- "offset": 15
546
+ "offset": 7,
547
+ "val": "cucumber features/one_passing_one_failing.feature -r features -f rerun"
760
548
  }
761
- ],
762
- "name": "I run cucumber -i -q --expand features/expand_me.feature"
549
+ ]
763
550
  },
764
551
  {
552
+ "name": "I run `cucumber features/only_background_and_hooks.feature`",
765
553
  "args": [
766
554
  {
767
- "val": "-i features/lolcat.feature",
768
- "offset": 15
555
+ "offset": 7,
556
+ "val": "cucumber features/only_background_and_hooks.feature"
769
557
  }
770
- ],
771
- "name": "I run cucumber -i features/lolcat.feature"
558
+ ]
772
559
  },
773
560
  {
561
+ "name": "I run `cucumber features/sample.feature --tags ~@wip`",
774
562
  "args": [
775
563
  {
776
- "val": "-i features/tables.feature",
777
- "offset": 15
564
+ "offset": 7,
565
+ "val": "cucumber features/sample.feature --tags ~@wip"
778
566
  }
779
- ],
780
- "name": "I run cucumber -i features/tables.feature"
567
+ ]
781
568
  },
782
569
  {
570
+ "name": "I run `cucumber features/sample.feature -r features --tags ~@wip`",
783
571
  "args": [
784
572
  {
785
- "val": "-n Pisang -q features/",
786
- "offset": 15
573
+ "offset": 7,
574
+ "val": "cucumber features/sample.feature -r features --tags ~@wip"
787
575
  }
788
- ],
789
- "name": "I run cucumber -n Pisang -q features/"
576
+ ]
790
577
  },
791
578
  {
579
+ "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format html --expand `",
792
580
  "args": [
793
581
  {
794
- "val": "-p default features/another.feature",
795
- "offset": 15
582
+ "offset": 7,
583
+ "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format html --expand "
796
584
  }
797
- ],
798
- "name": "I run cucumber -p default features/another.feature"
585
+ ]
799
586
  },
800
587
  {
588
+ "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format pretty --expand `",
801
589
  "args": [
802
590
  {
803
- "val": "-p foo",
804
- "offset": 15
591
+ "offset": 7,
592
+ "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format pretty --expand "
805
593
  }
806
- ],
807
- "name": "I run cucumber -p foo"
594
+ ]
808
595
  },
809
596
  {
597
+ "name": "I run `cucumber features/scenario_outline_with_undefined_steps.feature --format progress --expand `",
810
598
  "args": [
811
599
  {
812
- "val": "-q --dry-run features/unicode.feature",
813
- "offset": 15
600
+ "offset": 7,
601
+ "val": "cucumber features/scenario_outline_with_undefined_steps.feature --format progress --expand "
814
602
  }
815
- ],
816
- "name": "I run cucumber -q --dry-run features/unicode.feature"
603
+ ]
817
604
  },
818
605
  {
606
+ "name": "I run `cucumber features/test.feature:5 -f progress`",
819
607
  "args": [
820
608
  {
821
- "val": "-q --format pretty --format progress --out progress.txt features/f.feature",
822
- "offset": 15
609
+ "offset": 7,
610
+ "val": "cucumber features/test.feature:5 -f progress"
823
611
  }
824
- ],
825
- "name": "I run cucumber -q --format pretty --format progress --out progress.txt features/f.feature"
612
+ ]
826
613
  },
827
614
  {
615
+ "name": "I run `cucumber features/test.feature:8 -f progress`",
828
616
  "args": [
829
617
  {
830
- "val": "-q --format progress features/outline_sample.feature",
831
- "offset": 15
618
+ "offset": 7,
619
+ "val": "cucumber features/test.feature:8 -f progress"
832
620
  }
833
- ],
834
- "name": "I run cucumber -q --format progress features/outline_sample.feature"
621
+ ]
835
622
  },
836
623
  {
624
+ "name": "I run `cucumber`",
837
625
  "args": [
838
626
  {
839
- "val": "-q --format progress features/sample.feature",
840
- "offset": 15
627
+ "offset": 7,
628
+ "val": "cucumber"
841
629
  }
842
- ],
843
- "name": "I run cucumber -q --format progress features/sample.feature"
844
- },
630
+ ]
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "source": "^I successfully run \"(.*)\"$",
636
+ "flags": "",
637
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:64",
638
+ "steps": [
639
+
640
+ ]
641
+ },
642
+ {
643
+ "source": "^I successfully run `(.*?)`(?: for up to (\\d+) seconds)?$",
644
+ "flags": "",
645
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:71",
646
+ "steps": [
647
+
648
+ ]
649
+ },
650
+ {
651
+ "source": "^I run \"([^\"]*)\" interactively$",
652
+ "flags": "",
653
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:75",
654
+ "steps": [
655
+
656
+ ]
657
+ },
658
+ {
659
+ "source": "^I run `([^`]*)` interactively$",
660
+ "flags": "",
661
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:80",
662
+ "steps": [
663
+
664
+ ]
665
+ },
666
+ {
667
+ "source": "^I type \"([^\"]*)\"$",
668
+ "flags": "",
669
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:84",
670
+ "steps": [
671
+
672
+ ]
673
+ },
674
+ {
675
+ "source": "^I wait for (?:output|stdout) to contain \"([^\"]*)\"$",
676
+ "flags": "",
677
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:88",
678
+ "steps": [
679
+
680
+ ]
681
+ },
682
+ {
683
+ "source": "^the output should contain \"([^\"]*)\"$",
684
+ "flags": "",
685
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:97",
686
+ "steps": [
687
+
688
+ ]
689
+ },
690
+ {
691
+ "source": "^the output from \"([^\"]*)\" should contain \"([^\"]*)\"$",
692
+ "flags": "",
693
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:101",
694
+ "steps": [
695
+
696
+ ]
697
+ },
698
+ {
699
+ "source": "^the output from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
700
+ "flags": "",
701
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:105",
702
+ "steps": [
703
+
704
+ ]
705
+ },
706
+ {
707
+ "source": "^the output should not contain \"([^\"]*)\"$",
708
+ "flags": "",
709
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:109",
710
+ "steps": [
845
711
  {
712
+ "name": "the output should not contain \"rake aborted!\"",
846
713
  "args": [
847
714
  {
848
- "val": "-q -p super -p default -f <format> features/sample.feature --require features/step_definitions/steps.rb",
849
- "offset": 15
715
+ "offset": 31,
716
+ "val": "rake aborted!"
850
717
  }
851
- ],
852
- "name": "I run cucumber -q -p super -p default -f <format> features/sample.feature --require features/step_definitions/steps.rb"
853
- },
718
+ ]
719
+ }
720
+ ]
721
+ },
722
+ {
723
+ "source": "^the output should contain:$",
724
+ "flags": "",
725
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:113",
726
+ "steps": [
854
727
  {
728
+ "name": "the output should contain:",
855
729
  "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
- },
730
+
731
+ ]
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "source": "^the output should not contain:$",
737
+ "flags": "",
738
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:117",
739
+ "steps": [
863
740
  {
741
+ "name": "the output should not contain:",
864
742
  "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
- },
743
+
744
+ ]
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "source": "^the output(?: from \"(.*?)\")? should contain exactly \"(.*?)\"$",
750
+ "flags": "",
751
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:123",
752
+ "steps": [
753
+
754
+ ]
755
+ },
756
+ {
757
+ "source": "^the output(?: from \"(.*?)\")? should contain exactly:$",
758
+ "flags": "",
759
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:129",
760
+ "steps": [
761
+
762
+ ]
763
+ },
764
+ {
765
+ "source": "^the output should match /([^/]*)/$",
766
+ "flags": "",
767
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:137",
768
+ "steps": [
769
+
770
+ ]
771
+ },
772
+ {
773
+ "source": "^the output should match:$",
774
+ "flags": "",
775
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:141",
776
+ "steps": [
777
+
778
+ ]
779
+ },
780
+ {
781
+ "source": "^the output should not match /([^/]*)/$",
782
+ "flags": "",
783
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:146",
784
+ "steps": [
785
+
786
+ ]
787
+ },
788
+ {
789
+ "source": "^the output should not match:$",
790
+ "flags": "",
791
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:150",
792
+ "steps": [
793
+
794
+ ]
795
+ },
796
+ {
797
+ "source": "^the exit status should be (\\d+)$",
798
+ "flags": "",
799
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:154",
800
+ "steps": [
872
801
  {
802
+ "name": "the exit status should be 0",
873
803
  "args": [
874
804
  {
875
- "val": "-q -w -t @failing features/wip.feature",
876
- "offset": 15
805
+ "offset": 26,
806
+ "val": "0"
877
807
  }
878
- ],
879
- "name": "I run cucumber -q -w -t @failing features/wip.feature"
880
- },
808
+ ]
809
+ }
810
+ ]
811
+ },
812
+ {
813
+ "source": "^the exit status should not be (\\d+)$",
814
+ "flags": "",
815
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:158",
816
+ "steps": [
881
817
  {
818
+ "name": "the exit status should not be 0",
882
819
  "args": [
883
820
  {
884
- "val": "-q -w -t @passing features/wip.feature",
885
- "offset": 15
821
+ "offset": 30,
822
+ "val": "0"
886
823
  }
887
- ],
888
- "name": "I run cucumber -q -w -t @passing features/wip.feature"
889
- },
824
+ ]
825
+ }
826
+ ]
827
+ },
828
+ {
829
+ "source": "^it should (pass|fail) with:$",
830
+ "flags": "",
831
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:162",
832
+ "steps": [
890
833
  {
834
+ "name": "it should fail with:",
891
835
  "args": [
892
836
  {
893
- "val": "-q -w -t @pending features/wip.feature",
894
- "offset": 15
837
+ "offset": 10,
838
+ "val": "fail"
895
839
  }
896
- ],
897
- "name": "I run cucumber -q -w -t @pending features/wip.feature"
840
+ ]
898
841
  },
899
842
  {
843
+ "name": "it should pass with:",
900
844
  "args": [
901
845
  {
902
- "val": "-q -w -t @undefined features/wip.feature",
903
- "offset": 15
846
+ "offset": 10,
847
+ "val": "pass"
904
848
  }
905
- ],
906
- "name": "I run cucumber -q -w -t @undefined features/wip.feature"
907
- },
849
+ ]
850
+ }
851
+ ]
852
+ },
853
+ {
854
+ "source": "^it should (pass|fail) with exactly:$",
855
+ "flags": "",
856
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:166",
857
+ "steps": [
908
858
  {
859
+ "name": "it should fail with exactly:",
909
860
  "args": [
910
861
  {
911
- "val": "-q -w features/passing_outline.feature",
912
- "offset": 15
862
+ "offset": 10,
863
+ "val": "fail"
913
864
  }
914
- ],
915
- "name": "I run cucumber -q -w features/passing_outline.feature"
865
+ ]
916
866
  },
917
867
  {
868
+ "name": "it should pass with exactly:",
918
869
  "args": [
919
870
  {
920
- "val": "-q @list-of-features.txt",
921
- "offset": 15
871
+ "offset": 10,
872
+ "val": "pass"
922
873
  }
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"
874
+ ]
1258
875
  }
1259
- ],
1260
- "flags": ""
876
+ ]
1261
877
  },
1262
878
  {
1263
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:57",
1264
- "source": "^I run rake (.*)$",
879
+ "source": "^it should (pass|fail) with regexp?:$",
880
+ "flags": "",
881
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:170",
1265
882
  "steps": [
1266
- {
1267
- "args": [
1268
- {
1269
- "val": "cucumber",
1270
- "offset": 11
1271
- }
1272
- ],
1273
- "name": "I run rake cucumber"
1274
- }
1275
- ],
1276
- "flags": ""
883
+
884
+ ]
1277
885
  },
1278
886
  {
1279
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:61",
1280
- "source": "^I run the following Ruby code:$",
887
+ "source": "^the stderr(?: from \"(.*?)\")? should contain( exactly)? \"(.*?)\"$",
888
+ "flags": "",
889
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:179",
1281
890
  "steps": [
1282
- {
1283
- "args": [
1284
891
 
1285
- ],
1286
- "name": "I run the following Ruby code:"
1287
- }
1288
- ],
1289
- "flags": ""
892
+ ]
1290
893
  },
1291
894
  {
1292
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:65",
1293
- "source": "^it should (fail|pass)$",
895
+ "source": "^the stderr(?: from \"(.*?)\")? should contain( exactly)?:$",
896
+ "flags": "",
897
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:191",
1294
898
  "steps": [
1295
- {
1296
- "args": [
1297
- {
1298
- "val": "fail",
1299
- "offset": 10
1300
- }
1301
- ],
1302
- "name": "it should fail"
1303
- },
1304
- {
1305
- "args": [
1306
- {
1307
- "val": "pass",
1308
- "offset": 10
1309
- }
1310
- ],
1311
- "name": "it should pass"
1312
- }
1313
- ],
1314
- "flags": ""
899
+
900
+ ]
1315
901
  },
1316
902
  {
1317
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:75",
1318
- "source": "^it should (fail|pass) with$",
903
+ "source": "^the stdout(?: from \"(.*?)\")? should contain( exactly)? \"(.*?)\"$",
904
+ "flags": "",
905
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:203",
1319
906
  "steps": [
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": ""
907
+
908
+ ]
1340
909
  },
1341
910
  {
1342
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:82",
1343
- "source": "^the output should contain \"([^\"]*)\"$",
911
+ "source": "^the stdout(?: from \"(.*?)\")? should contain( exactly)?:$",
912
+ "flags": "",
913
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:215",
1344
914
  "steps": [
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": ""
915
+
916
+ ]
1365
917
  },
1366
918
  {
1367
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:86",
1368
- "source": "^the output should contain:?$",
919
+ "source": "^the stderr should not contain \"([^\"]*)\"$",
920
+ "flags": "",
921
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:223",
1369
922
  "steps": [
1370
- {
1371
- "args": [
1372
923
 
1373
- ],
1374
- "name": "the output should contain"
1375
- },
1376
- {
1377
- "args": [
924
+ ]
925
+ },
926
+ {
927
+ "source": "^the stderr should not contain:$",
928
+ "flags": "",
929
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:227",
930
+ "steps": [
1378
931
 
1379
- ],
1380
- "name": "the output should contain:"
1381
- }
1382
- ],
1383
- "flags": ""
932
+ ]
1384
933
  },
1385
934
  {
1386
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:90",
1387
- "source": "^the output should not contain$",
935
+ "source": "^the (stderr|stdout) should not contain anything$",
936
+ "flags": "",
937
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:231",
1388
938
  "steps": [
1389
- {
1390
- "args": [
1391
939
 
1392
- ],
1393
- "name": "the output should not contain"
1394
- }
1395
- ],
1396
- "flags": ""
940
+ ]
1397
941
  },
1398
942
  {
1399
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:94",
1400
- "source": "^the output should be$",
943
+ "source": "^the stdout should not contain \"([^\"]*)\"$",
944
+ "flags": "",
945
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:236",
1401
946
  "steps": [
1402
947
 
1403
- ],
1404
- "flags": ""
948
+ ]
1405
949
  },
1406
950
  {
1407
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:98",
1408
- "source": "^it should (fail|pass) with JSON$",
951
+ "source": "^the stdout should not contain:$",
952
+ "flags": "",
953
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:240",
1409
954
  "steps": [
1410
955
 
1411
- ],
1412
- "flags": ""
956
+ ]
1413
957
  },
1414
958
  {
1415
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:103",
1416
- "source": "^\"([^\"]*)\" should contain$",
959
+ "source": "^the stdout from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
960
+ "flags": "",
961
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:244",
1417
962
  "steps": [
1418
- {
1419
- "args": [
1420
- {
1421
- "val": "fixtures/self_test/tmp/formatted/features/sample.feature",
1422
- "offset": 1
1423
- }
1424
- ],
1425
- "name": "\"fixtures/self_test/tmp/formatted/features/sample.feature\" should contain"
1426
- },
1427
- {
1428
- "args": [
1429
- {
1430
- "val": "fixtures/self_test/tmp/pretty.txt",
1431
- "offset": 1
1432
- }
1433
- ],
1434
- "name": "\"fixtures/self_test/tmp/pretty.txt\" should contain"
1435
- },
1436
- {
1437
- "args": [
1438
- {
1439
- "val": "fixtures/self_test/tmp/progress.txt",
1440
- "offset": 1
1441
- }
1442
- ],
1443
- "name": "\"fixtures/self_test/tmp/progress.txt\" should contain"
1444
- }
1445
- ],
1446
- "flags": ""
963
+
964
+ ]
1447
965
  },
1448
966
  {
1449
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:107",
1450
- "source": "^\"([^\"]*)\" with junit duration \"([^\"]*)\" should contain$",
967
+ "source": "^the stderr from \"([^\"]*)\" should not contain \"([^\"]*)\"$",
968
+ "flags": "",
969
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:248",
1451
970
  "steps": [
1452
- {
1453
- "args": [
1454
- {
1455
- "val": "fixtures/junit/tmp/TEST-features-one_passing_one_failing.xml",
1456
- "offset": 1
1457
- },
1458
- {
1459
- "val": "0.005",
1460
- "offset": 84
1461
- }
1462
- ],
1463
- "name": "\"fixtures/junit/tmp/TEST-features-one_passing_one_failing.xml\" with junit duration \"0.005\" should contain"
1464
- },
1465
- {
1466
- "args": [
1467
- {
1468
- "val": "fixtures/junit/tmp/TEST-features-pending.xml",
1469
- "offset": 1
1470
- },
1471
- {
1472
- "val": "0.000160",
1473
- "offset": 68
1474
- }
1475
- ],
1476
- "name": "\"fixtures/junit/tmp/TEST-features-pending.xml\" with junit duration \"0.000160\" should contain"
1477
- },
1478
- {
1479
- "args": [
1480
- {
1481
- "val": "fixtures/junit/tmp/TEST-features-pending.xml",
1482
- "offset": 1
1483
- },
1484
- {
1485
- "val": "0.009",
1486
- "offset": 68
1487
- }
1488
- ],
1489
- "name": "\"fixtures/junit/tmp/TEST-features-pending.xml\" with junit duration \"0.009\" should contain"
1490
- },
1491
- {
1492
- "args": [
1493
- {
1494
- "val": "fixtures/junit/tmp/TEST-features-scenario_outline.xml",
1495
- "offset": 1
1496
- },
1497
- {
1498
- "val": "0.005",
1499
- "offset": 77
1500
- }
1501
- ],
1502
- "name": "\"fixtures/junit/tmp/TEST-features-scenario_outline.xml\" with junit duration \"0.005\" should contain"
1503
- },
1504
- {
1505
- "args": [
1506
- {
1507
- "val": "fixtures/junit/tmp/TEST-features-some_subdirectory-one_passing_one_failing.xml",
1508
- "offset": 1
1509
- },
1510
- {
1511
- "val": "0.005",
1512
- "offset": 102
1513
- }
1514
- ],
1515
- "name": "\"fixtures/junit/tmp/TEST-features-some_subdirectory-one_passing_one_failing.xml\" with junit duration \"0.005\" should contain"
1516
- }
1517
- ],
1518
- "flags": ""
971
+
972
+ ]
1519
973
  },
1520
974
  {
1521
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:114",
1522
- "source": "^\"([^\"]*)\" should match \"(.+?)\"$",
975
+ "source": "^the file \"([^\"]*)\" should not exist$",
976
+ "flags": "",
977
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:252",
1523
978
  "steps": [
1524
979
 
1525
- ],
1526
- "flags": ""
980
+ ]
1527
981
  },
1528
982
  {
1529
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:118",
1530
- "source": "^\"([^\"]*)\" should have the same contents as \"([^\"]*)\"$",
983
+ "source": "^the following files should exist:$",
984
+ "flags": "",
985
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:256",
1531
986
  "steps": [
1532
987
 
1533
- ],
1534
- "flags": ""
988
+ ]
1535
989
  },
1536
990
  {
1537
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:126",
1538
- "source": "^STDERR should match$",
991
+ "source": "^the following files should not exist:$",
992
+ "flags": "",
993
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:260",
1539
994
  "steps": [
1540
- {
1541
- "args": [
1542
995
 
1543
- ],
1544
- "name": "STDERR should match"
1545
- }
1546
- ],
1547
- "flags": ""
996
+ ]
1548
997
  },
1549
998
  {
1550
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:130",
1551
- "source": "^STDERR should not match$",
999
+ "source": "^a file named \"([^\"]*)\" should exist$",
1000
+ "flags": "",
1001
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:264",
1552
1002
  "steps": [
1553
- {
1554
- "args": [
1555
1003
 
1556
- ],
1557
- "name": "STDERR should not match"
1558
- }
1559
- ],
1560
- "flags": ""
1004
+ ]
1561
1005
  },
1562
1006
  {
1563
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:134",
1564
- "source": "^STDERR should be$",
1007
+ "source": "^a file named \"([^\"]*)\" should not exist$",
1008
+ "flags": "",
1009
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:268",
1565
1010
  "steps": [
1566
- {
1567
- "args": [
1568
1011
 
1569
- ],
1570
- "name": "STDERR should be"
1571
- }
1572
- ],
1573
- "flags": ""
1012
+ ]
1574
1013
  },
1575
1014
  {
1576
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:138",
1577
- "source": "^STDERR should be empty$",
1015
+ "source": "^a (\\d+) byte file named \"([^\"]*)\" should exist$",
1016
+ "flags": "",
1017
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:272",
1578
1018
  "steps": [
1579
- {
1580
- "args": [
1581
1019
 
1582
- ],
1583
- "name": "STDERR should be empty"
1584
- }
1585
- ],
1586
- "flags": ""
1020
+ ]
1587
1021
  },
1588
1022
  {
1589
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:142",
1590
- "source": "^\"([^\"]*)\" should exist$",
1023
+ "source": "^the following directories should exist:$",
1024
+ "flags": "",
1025
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:276",
1591
1026
  "steps": [
1592
- {
1593
- "args": [
1594
- {
1595
- "val": "fixtures/junit/tmp/TEST-features-one_passing_one_failing.xml",
1596
- "offset": 1
1597
- }
1598
- ],
1599
- "name": "\"fixtures/junit/tmp/TEST-features-one_passing_one_failing.xml\" should exist"
1600
- },
1601
- {
1602
- "args": [
1603
- {
1604
- "val": "fixtures/junit/tmp/TEST-features-pending.xml",
1605
- "offset": 1
1606
- }
1607
- ],
1608
- "name": "\"fixtures/junit/tmp/TEST-features-pending.xml\" should exist"
1609
- }
1610
- ],
1611
- "flags": ""
1027
+
1028
+ ]
1612
1029
  },
1613
1030
  {
1614
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:147",
1615
- "source": "^\"([^\"]*)\" should not be required$",
1031
+ "source": "^the following directories should not exist:$",
1032
+ "flags": "",
1033
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:280",
1616
1034
  "steps": [
1617
- {
1618
- "args": [
1619
- {
1620
- "val": "features/step_definitions/foof.rb",
1621
- "offset": 1
1622
- }
1623
- ],
1624
- "name": "\"features/step_definitions/foof.rb\" should not be required"
1625
- },
1626
- {
1627
- "args": [
1628
- {
1629
- "val": "features/step_definitions/fooz.rb",
1630
- "offset": 1
1631
- }
1632
- ],
1633
- "name": "\"features/step_definitions/fooz.rb\" should not be required"
1634
- },
1635
- {
1636
- "args": [
1637
- {
1638
- "val": "features/support/dont_require_me.rb",
1639
- "offset": 1
1640
- }
1641
- ],
1642
- "name": "\"features/support/dont_require_me.rb\" should not be required"
1643
- }
1644
- ],
1645
- "flags": ""
1035
+
1036
+ ]
1646
1037
  },
1647
1038
  {
1648
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:151",
1649
- "source": "^\"([^\"]*)\" should be required$",
1039
+ "source": "^a directory named \"([^\"]*)\" should exist$",
1040
+ "flags": "",
1041
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:284",
1042
+ "steps": [
1043
+
1044
+ ]
1045
+ },
1046
+ {
1047
+ "source": "^a directory named \"([^\"]*)\" should not exist$",
1048
+ "flags": "",
1049
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:288",
1050
+ "steps": [
1051
+
1052
+ ]
1053
+ },
1054
+ {
1055
+ "source": "^the file \"([^\"]*)\" should contain \"([^\"]*)\"$",
1056
+ "flags": "",
1057
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:292",
1058
+ "steps": [
1059
+
1060
+ ]
1061
+ },
1062
+ {
1063
+ "source": "^the file \"([^\"]*)\" should not contain \"([^\"]*)\"$",
1064
+ "flags": "",
1065
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:296",
1066
+ "steps": [
1067
+
1068
+ ]
1069
+ },
1070
+ {
1071
+ "source": "^the file \"([^\"]*)\" should contain:$",
1072
+ "flags": "",
1073
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:300",
1074
+ "steps": [
1075
+
1076
+ ]
1077
+ },
1078
+ {
1079
+ "source": "^the file \"([^\"]*)\" should contain exactly:$",
1080
+ "flags": "",
1081
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:304",
1082
+ "steps": [
1083
+
1084
+ ]
1085
+ },
1086
+ {
1087
+ "source": "^the file \"([^\"]*)\" should match /([^/]*)/$",
1088
+ "flags": "",
1089
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:308",
1090
+ "steps": [
1091
+
1092
+ ]
1093
+ },
1094
+ {
1095
+ "source": "^the file \"([^\"]*)\" should not match /([^/]*)/$",
1096
+ "flags": "",
1097
+ "file_colon_line": "aruba-0.5.2/lib/aruba/cucumber.rb:312",
1098
+ "steps": [
1099
+
1100
+ ]
1101
+ },
1102
+ {
1103
+ "source": "^it\\ should\\ pass$",
1104
+ "flags": "",
1105
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:1",
1650
1106
  "steps": [
1651
1107
  {
1108
+ "name": "it should pass",
1652
1109
  "args": [
1653
- {
1654
- "val": "features/step_definitions/foot.rb",
1655
- "offset": 1
1656
- }
1657
- ],
1658
- "name": "\"features/step_definitions/foot.rb\" should be required"
1659
- },
1660
- {
1661
- "args": [
1662
- {
1663
- "val": "features/support/require_me.rb",
1664
- "offset": 1
1665
- }
1666
- ],
1667
- "name": "\"features/support/require_me.rb\" should be required"
1110
+
1111
+ ]
1668
1112
  }
1669
- ],
1670
- "flags": ""
1113
+ ]
1671
1114
  },
1672
1115
  {
1673
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:155",
1674
- "source": "^exactly these files should be loaded:\\s*(.*)$",
1116
+ "source": "^it should (pass|fail) with JSON:$",
1117
+ "flags": "",
1118
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:5",
1675
1119
  "steps": [
1676
1120
  {
1121
+ "name": "it should fail with JSON:",
1677
1122
  "args": [
1678
1123
  {
1679
- "val": "features/support/env.rb",
1680
- "offset": 38
1124
+ "offset": 10,
1125
+ "val": "fail"
1681
1126
  }
1682
- ],
1683
- "name": "exactly these files should be loaded: features/support/env.rb"
1127
+ ]
1684
1128
  },
1685
1129
  {
1130
+ "name": "it should pass with JSON:",
1686
1131
  "args": [
1687
1132
  {
1688
- "val": "features/support/env.rb, features/support/super_env.rb",
1689
- "offset": 38
1133
+ "offset": 10,
1134
+ "val": "pass"
1690
1135
  }
1691
- ],
1692
- "name": "exactly these files should be loaded: features/support/env.rb, features/support/super_env.rb"
1693
- },
1694
- {
1695
- "args": [
1696
- {
1697
- "val": "features/support/super_env.rb",
1698
- "offset": 38
1699
- }
1700
- ],
1701
- "name": "exactly these files should be loaded: features/support/super_env.rb"
1136
+ ]
1702
1137
  }
1703
- ],
1704
- "flags": ""
1138
+ ]
1705
1139
  },
1706
1140
  {
1707
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:159",
1708
- "source": "^exactly these features should be ran:\\s*(.*)$",
1141
+ "source": "^a directory without standard Cucumber project directory structure$",
1142
+ "flags": "",
1143
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:30",
1709
1144
  "steps": [
1710
1145
  {
1146
+ "name": "a directory without standard Cucumber project directory structure",
1711
1147
  "args": [
1712
- {
1713
- "val": "features/another.feature",
1714
- "offset": 38
1715
- }
1716
- ],
1717
- "name": "exactly these features should be ran: features/another.feature"
1148
+
1149
+ ]
1718
1150
  }
1719
- ],
1720
- "flags": ""
1151
+ ]
1721
1152
  },
1722
1153
  {
1723
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:163",
1724
- "source": "^the (.*) profile should be used$",
1154
+ "source": "^a scenario with a step that looks like this:$",
1155
+ "flags": "",
1156
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:36",
1725
1157
  "steps": [
1726
1158
  {
1159
+ "name": "a scenario with a step that looks like this:",
1727
1160
  "args": [
1728
- {
1729
- "val": "default",
1730
- "offset": 4
1731
- }
1732
- ],
1733
- "name": "the default profile should be used"
1161
+
1162
+ ]
1734
1163
  }
1735
- ],
1736
- "flags": ""
1164
+ ]
1737
1165
  },
1738
1166
  {
1739
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:167",
1740
- "source": "^print output$",
1167
+ "source": "^a scenario with a step that looks like this in japanese:$",
1168
+ "flags": "",
1169
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:42",
1741
1170
  "steps": [
1742
1171
 
1743
- ],
1744
- "flags": ""
1172
+ ]
1745
1173
  },
1746
1174
  {
1747
- "file_colon_line": "legacy_features/step_definitions/cucumber_steps.rb:171",
1748
- "source": "^the output should contain the following JSON:$",
1175
+ "source": "^a step definition that looks like this:$",
1176
+ "flags": "",
1177
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:48",
1749
1178
  "steps": [
1750
1179
  {
1180
+ "name": "a step definition that looks like this:",
1751
1181
  "args": [
1752
1182
 
1753
- ],
1754
- "name": "the output should contain the following JSON:"
1183
+ ]
1755
1184
  }
1756
- ],
1757
- "flags": ""
1185
+ ]
1758
1186
  },
1759
1187
  {
1760
- "file_colon_line": "legacy_features/step_definitions/extra_steps.rb:1",
1761
- "source": "^missing$",
1188
+ "source": "^I run the feature with the (\\w+) formatter$",
1189
+ "flags": "",
1190
+ "file_colon_line": "features/step_definitions/cucumber_steps.rb:52",
1762
1191
  "steps": [
1763
-
1764
- ],
1765
- "flags": ""
1192
+ {
1193
+ "name": "I run the feature with the progress formatter",
1194
+ "args": [
1195
+ {
1196
+ "offset": 27,
1197
+ "val": "progress"
1198
+ }
1199
+ ]
1200
+ }
1201
+ ]
1766
1202
  },
1767
1203
  {
1768
- "file_colon_line": "legacy_features/step_definitions/simplest_steps.rb:1",
1769
- "source": "^this step works$",
1204
+ "source": "^I am running spork in the background$",
1205
+ "flags": "",
1206
+ "file_colon_line": "features/step_definitions/drb_steps.rb:1",
1770
1207
  "steps": [
1771
1208
  {
1209
+ "name": "I am running spork in the background",
1772
1210
  "args": [
1773
1211
 
1774
- ],
1775
- "name": "this step works"
1212
+ ]
1776
1213
  }
1777
- ],
1778
- "flags": ""
1214
+ ]
1779
1215
  },
1780
1216
  {
1781
- "file_colon_line": "legacy_features/step_definitions/wire_steps.rb:1",
1782
- "source": "^there is a wire server (running |)on port (\\d+) which understands the following protocol:$",
1217
+ "source": "^jeg drikker en \"([^\"]*)\"$",
1218
+ "flags": "",
1219
+ "file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:6",
1783
1220
  "steps": [
1784
1221
  {
1222
+ "name": "jeg drikker en \"øl\"",
1785
1223
  "args": [
1786
1224
  {
1787
- "val": "",
1788
- "offset": 23
1789
- },
1790
- {
1791
- "val": "54321",
1792
- "offset": 31
1793
- }
1794
- ],
1795
- "name": "there is a wire server on port 54321 which understands the following protocol:"
1796
- },
1797
- {
1798
- "args": [
1799
- {
1800
- "val": "running ",
1801
- "offset": 23
1802
- },
1803
- {
1804
- "val": "12345",
1805
- "offset": 39
1806
- }
1807
- ],
1808
- "name": "there is a wire server running on port 12345 which understands the following protocol:"
1809
- },
1810
- {
1811
- "args": [
1812
- {
1813
- "val": "running ",
1814
- "offset": 23
1815
- },
1816
- {
1817
- "val": "16816",
1818
- "offset": 39
1819
- }
1820
- ],
1821
- "name": "there is a wire server running on port 16816 which understands the following protocol:"
1822
- },
1823
- {
1824
- "args": [
1825
- {
1826
- "val": "running ",
1827
- "offset": 23
1828
- },
1829
- {
1830
- "val": "54321",
1831
- "offset": 39
1225
+ "offset": 16,
1226
+ "val": "øl"
1832
1227
  }
1833
- ],
1834
- "name": "there is a wire server running on port 54321 which understands the following protocol:"
1228
+ ]
1835
1229
  }
1836
- ],
1837
- "flags": ""
1230
+ ]
1838
1231
  },
1839
1232
  {
1840
- "file_colon_line": "legacy_features/step_definitions/wire_steps.rb:8",
1841
- "source": "^the wire server takes (.*) seconds to respond to the invoke message$",
1233
+ "source": "^skal de andre si \"([^\"]*)\"$",
1234
+ "flags": "",
1235
+ "file_colon_line": "features/step_definitions/iso-8859-1_steps.rb:10",
1842
1236
  "steps": [
1843
1237
  {
1238
+ "name": "skal de andre si \"skål\"",
1844
1239
  "args": [
1845
1240
  {
1846
- "val": "0.2",
1847
- "offset": 22
1241
+ "offset": 18,
1242
+ "val": "skål"
1848
1243
  }
1849
- ],
1850
- "name": "the wire server takes 0.2 seconds to respond to the invoke message"
1244
+ ]
1851
1245
  }
1852
- ],
1853
- "flags": ""
1246
+ ]
1854
1247
  }
1855
1248
  ]