cucumber 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/.rspec +1 -1
  2. data/LICENSE +1 -1
  3. data/Rakefile +5 -51
  4. data/bin/cucumber +7 -1
  5. data/cucumber.gemspec +463 -679
  6. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
  7. data/examples/i18n/he/features/step_definitons/calculator_steps.rb +1 -1
  8. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +4 -7
  9. data/examples/i18n/ru/features/division.feature +2 -2
  10. data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +3 -3
  11. data/examples/sinatra/features/support/env.rb +2 -5
  12. data/examples/v8/features/fibonacci.feature +1 -1
  13. data/examples/watir/features/step_definitions/search_steps.rb +1 -1
  14. data/features/background.feature +284 -95
  15. data/features/custom_formatter.feature +3 -73
  16. data/features/json_formatter.feature +160 -245
  17. data/features/step_definitions/cucumber_steps.rb +7 -153
  18. data/features/support/env.rb +18 -140
  19. data/fixtures/junit/features/pending.feature +3 -1
  20. data/fixtures/self_test/features/support/env.rb +8 -0
  21. data/fixtures/tickets/features.html +1 -1
  22. data/gem_tasks/examples.rake +1 -1
  23. data/lib/cucumber.rb +12 -0
  24. data/lib/cucumber/ast.rb +1 -1
  25. data/lib/cucumber/ast/background.rb +21 -5
  26. data/lib/cucumber/ast/examples.rb +12 -4
  27. data/lib/cucumber/ast/feature.rb +13 -5
  28. data/lib/cucumber/ast/feature_element.rb +9 -4
  29. data/lib/cucumber/ast/outline_table.rb +4 -4
  30. data/lib/cucumber/ast/scenario.rb +7 -5
  31. data/lib/cucumber/ast/scenario_outline.rb +23 -15
  32. data/lib/cucumber/ast/step.rb +5 -0
  33. data/lib/cucumber/ast/step_invocation.rb +21 -15
  34. data/lib/cucumber/ast/table.rb +14 -8
  35. data/lib/cucumber/ast/tree_walker.rb +10 -48
  36. data/lib/cucumber/cli/configuration.rb +33 -8
  37. data/lib/cucumber/cli/main.rb +20 -35
  38. data/lib/cucumber/cli/options.rb +8 -7
  39. data/lib/cucumber/cli/profile_loader.rb +2 -0
  40. data/lib/cucumber/core_ext/proc.rb +2 -1
  41. data/lib/cucumber/feature_file.rb +47 -15
  42. data/lib/cucumber/formatter/ansicolor.rb +3 -5
  43. data/lib/cucumber/formatter/console.rb +27 -23
  44. data/lib/cucumber/formatter/cucumber.css +34 -17
  45. data/lib/cucumber/formatter/cucumber.sass +173 -182
  46. data/lib/cucumber/formatter/html.rb +46 -11
  47. data/lib/cucumber/formatter/io.rb +2 -4
  48. data/lib/cucumber/formatter/json.rb +15 -152
  49. data/lib/cucumber/formatter/json_pretty.rb +5 -6
  50. data/lib/cucumber/formatter/junit.rb +28 -22
  51. data/lib/cucumber/formatter/pdf.rb +6 -6
  52. data/lib/cucumber/formatter/pretty.rb +5 -5
  53. data/lib/cucumber/formatter/rerun.rb +22 -11
  54. data/lib/cucumber/formatter/unicode.rb +41 -20
  55. data/lib/cucumber/js_support/js_dsl.js +4 -4
  56. data/lib/cucumber/js_support/js_language.rb +9 -5
  57. data/lib/cucumber/js_support/js_snippets.rb +2 -2
  58. data/lib/cucumber/language_support.rb +2 -2
  59. data/lib/cucumber/parser/gherkin_builder.rb +35 -30
  60. data/lib/cucumber/platform.rb +8 -8
  61. data/lib/cucumber/py_support/py_language.rb +2 -2
  62. data/lib/cucumber/rake/task.rb +80 -31
  63. data/lib/cucumber/rb_support/rb_dsl.rb +1 -0
  64. data/lib/cucumber/rb_support/rb_language.rb +10 -8
  65. data/lib/cucumber/rb_support/rb_step_definition.rb +8 -0
  66. data/lib/cucumber/rb_support/rb_transform.rb +17 -0
  67. data/lib/cucumber/rb_support/rb_world.rb +26 -18
  68. data/lib/cucumber/rspec/doubles.rb +3 -3
  69. data/lib/cucumber/step_match.rb +6 -2
  70. data/lib/cucumber/step_mother.rb +6 -427
  71. data/lib/cucumber/wire_support/configuration.rb +4 -1
  72. data/lib/cucumber/wire_support/wire_language.rb +3 -10
  73. data/spec/cucumber/ast/background_spec.rb +68 -6
  74. data/spec/cucumber/ast/feature_factory.rb +5 -4
  75. data/spec/cucumber/ast/feature_spec.rb +4 -4
  76. data/spec/cucumber/ast/outline_table_spec.rb +1 -1
  77. data/spec/cucumber/ast/scenario_outline_spec.rb +15 -11
  78. data/spec/cucumber/ast/scenario_spec.rb +4 -4
  79. data/spec/cucumber/ast/step_spec.rb +3 -3
  80. data/spec/cucumber/ast/table_spec.rb +38 -2
  81. data/spec/cucumber/ast/tree_walker_spec.rb +2 -2
  82. data/spec/cucumber/broadcaster_spec.rb +1 -1
  83. data/spec/cucumber/cli/configuration_spec.rb +32 -6
  84. data/spec/cucumber/cli/drb_client_spec.rb +2 -3
  85. data/spec/cucumber/cli/main_spec.rb +43 -43
  86. data/spec/cucumber/cli/options_spec.rb +28 -1
  87. data/spec/cucumber/cli/profile_loader_spec.rb +1 -1
  88. data/spec/cucumber/core_ext/proc_spec.rb +1 -1
  89. data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
  90. data/spec/cucumber/formatter/duration_spec.rb +1 -1
  91. data/spec/cucumber/formatter/html_spec.rb +3 -5
  92. data/spec/cucumber/formatter/junit_spec.rb +16 -2
  93. data/spec/cucumber/formatter/progress_spec.rb +1 -1
  94. data/spec/cucumber/formatter/spec_helper.rb +11 -12
  95. data/spec/cucumber/rb_support/rb_language_spec.rb +241 -28
  96. data/spec/cucumber/rb_support/rb_step_definition_spec.rb +33 -28
  97. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +1 -1
  98. data/spec/cucumber/step_match_spec.rb +11 -9
  99. data/spec/cucumber/wire_support/configuration_spec.rb +1 -1
  100. data/spec/cucumber/wire_support/connection_spec.rb +1 -1
  101. data/spec/cucumber/wire_support/wire_exception_spec.rb +1 -1
  102. data/spec/cucumber/wire_support/wire_language_spec.rb +1 -1
  103. data/spec/cucumber/wire_support/wire_packet_spec.rb +1 -1
  104. data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
  105. data/spec/cucumber/world/pending_spec.rb +2 -2
  106. data/spec/spec_helper.rb +13 -20
  107. metadata +11 -222
  108. data/.gitignore +0 -20
  109. data/Caliper.yml +0 -4
  110. data/History.txt +0 -1552
  111. data/README.rdoc +0 -26
  112. data/VERSION.yml +0 -5
  113. data/examples/i18n/ro/features/suma.feature +0 -11
  114. data/features/announce.feature +0 -164
  115. data/features/around_hooks.feature +0 -232
  116. data/features/bug_371.feature +0 -32
  117. data/features/bug_464.feature +0 -16
  118. data/features/bug_475.feature +0 -42
  119. data/features/bug_585_tab_indentation.feature +0 -22
  120. data/features/bug_600.feature +0 -67
  121. data/features/call_steps_from_stepdefs.feature +0 -154
  122. data/features/cucumber_cli.feature +0 -591
  123. data/features/cucumber_cli_outlines.feature +0 -117
  124. data/features/default_snippets.feature +0 -42
  125. data/features/diffing.feature +0 -25
  126. data/features/drb_server_integration.feature +0 -174
  127. data/features/exception_in_after_block.feature +0 -127
  128. data/features/exception_in_after_step_block.feature +0 -104
  129. data/features/exception_in_before_block.feature +0 -98
  130. data/features/exclude_files.feature +0 -20
  131. data/features/expand.feature +0 -60
  132. data/features/html_formatter.feature +0 -8
  133. data/features/html_formatter/a.html +0 -582
  134. data/features/junit_formatter.feature +0 -88
  135. data/features/language_from_header.feature +0 -30
  136. data/features/language_help.feature +0 -78
  137. data/features/listener_debugger_formatter.feature +0 -42
  138. data/features/multiline_names.feature +0 -44
  139. data/features/negative_tagged_hooks.feature +0 -60
  140. data/features/post_configuration_hook.feature +0 -37
  141. data/features/profiles.feature +0 -126
  142. data/features/rake_task.feature +0 -152
  143. data/features/report_called_undefined_steps.feature +0 -34
  144. data/features/rerun_formatter.feature +0 -45
  145. data/features/simplest.feature +0 -11
  146. data/features/snippet.feature +0 -23
  147. data/features/snippets_when_using_star_keyword.feature +0 -36
  148. data/features/step_definitions/extra_steps.rb +0 -2
  149. data/features/step_definitions/simplest_steps.rb +0 -3
  150. data/features/step_definitions/wire_steps.rb +0 -32
  151. data/features/support/env.rb.simplest +0 -7
  152. data/features/support/fake_wire_server.rb +0 -77
  153. data/features/table_diffing.feature +0 -45
  154. data/features/table_mapping.feature +0 -34
  155. data/features/tag_logic.feature +0 -258
  156. data/features/transform.feature +0 -245
  157. data/features/unicode_table.feature +0 -35
  158. data/features/usage_and_stepdefs_formatter.feature +0 -169
  159. data/features/wire_protocol.feature +0 -332
  160. data/features/wire_protocol_table_diffing.feature +0 -119
  161. data/features/wire_protocol_tags.feature +0 -87
  162. data/features/wire_protocol_timeouts.feature +0 -63
  163. data/features/work_in_progress.feature +0 -156
  164. data/fixtures/json/features/pystring.feature +0 -8
  165. data/fixtures/self_test/features/background/background_tagged_before_on_outline.feature +0 -12
  166. data/fixtures/self_test/features/background/background_with_name.feature +0 -7
  167. data/fixtures/self_test/features/background/failing_background.feature +0 -12
  168. data/fixtures/self_test/features/background/failing_background_after_success.feature +0 -11
  169. data/fixtures/self_test/features/background/multiline_args_background.feature +0 -32
  170. data/fixtures/self_test/features/background/passing_background.feature +0 -10
  171. data/fixtures/self_test/features/background/pending_background.feature +0 -10
  172. data/fixtures/self_test/features/background/scenario_outline_failing_background.feature +0 -16
  173. data/fixtures/self_test/features/background/scenario_outline_passing_background.feature +0 -16
  174. data/gem_tasks/features.rake +0 -14
  175. data/gem_tasks/sdoc.rake +0 -12
  176. data/lib/cucumber/ast/py_string.rb +0 -80
  177. data/lib/cucumber/formatter/color_io.rb +0 -23
  178. data/lib/cucumber/formatter/tag_cloud.rb +0 -35
  179. data/spec/cucumber/ast/py_string_spec.rb +0 -40
  180. data/spec/cucumber/formatter/color_io_spec.rb +0 -29
  181. data/spec/cucumber/step_mother_spec.rb +0 -302
@@ -1,117 +0,0 @@
1
- Feature: Cucumber command line
2
- In order to write better software
3
- Developers should be able to execute requirements as tests
4
-
5
- Scenario: Run scenario outline with filtering on outline name
6
- When I run cucumber -q features --name "Test state"
7
- Then it should fail with
8
- """
9
- Feature: Outline Sample
10
-
11
- Scenario Outline: Test state
12
- Given <state> without a table
13
- Given <other_state> without a table
14
-
15
- Examples: Rainbow colours
16
- | state | other_state |
17
- | missing | passing |
18
- | passing | passing |
19
- | failing | passing |
20
- FAIL (RuntimeError)
21
- ./features/step_definitions/sample_steps.rb:2:in `flunker'
22
- ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
23
- features/outline_sample.feature:6:in `Given <state> without a table'
24
-
25
- Examples: Only passing
26
- | state | other_state |
27
- | passing | passing |
28
-
29
- Failing Scenarios:
30
- cucumber features/outline_sample.feature:5 # Scenario: Test state
31
-
32
- 4 scenarios (1 failed, 1 undefined, 2 passed)
33
- 8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
34
-
35
- """
36
-
37
- Scenario: Run scenario outline steps only
38
- When I run cucumber -q features/outline_sample.feature:7
39
- Then it should fail with
40
- """
41
- Feature: Outline Sample
42
-
43
- Scenario Outline: Test state
44
- Given <state> without a table
45
- Given <other_state> without a table
46
-
47
- Examples: Rainbow colours
48
- | state | other_state |
49
- | missing | passing |
50
- | passing | passing |
51
- | failing | passing |
52
- FAIL (RuntimeError)
53
- ./features/step_definitions/sample_steps.rb:2:in `flunker'
54
- ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
55
- features/outline_sample.feature:6:in `Given <state> without a table'
56
-
57
- Examples: Only passing
58
- | state | other_state |
59
- | passing | passing |
60
-
61
- Failing Scenarios:
62
- cucumber features/outline_sample.feature:5 # Scenario: Test state
63
-
64
- 4 scenarios (1 failed, 1 undefined, 2 passed)
65
- 8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
66
-
67
- """
68
-
69
- Scenario: Run single failing scenario outline table row
70
- When I run cucumber features/outline_sample.feature:12
71
- Then it should fail with
72
- """
73
- Feature: Outline Sample
74
-
75
- Scenario Outline: Test state # features/outline_sample.feature:5
76
- Given <state> without a table # features/step_definitions/sample_steps.rb:15
77
- Given <other_state> without a table # features/step_definitions/sample_steps.rb:12
78
-
79
- Examples: Rainbow colours
80
- | state | other_state |
81
- | failing | passing |
82
- FAIL (RuntimeError)
83
- ./features/step_definitions/sample_steps.rb:2:in `flunker'
84
- ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
85
- features/outline_sample.feature:6:in `Given <state> without a table'
86
-
87
- Failing Scenarios:
88
- cucumber features/outline_sample.feature:5 # Scenario: Test state
89
-
90
- 1 scenario (1 failed)
91
- 2 steps (1 failed, 1 skipped)
92
-
93
- """
94
-
95
- # There are 10 characters in the progress, but only 8 reported steps. Needs investigation.
96
- # Looks like we're outputting too many characters.
97
- Scenario: Run all with progress formatter
98
- When I run cucumber -q --format progress features/outline_sample.feature
99
- Then it should fail with
100
- """
101
- --U-..F-..
102
-
103
- (::) failed steps (::)
104
-
105
- FAIL (RuntimeError)
106
- ./features/step_definitions/sample_steps.rb:2:in `flunker'
107
- ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
108
- features/outline_sample.feature:6:in `Given <state> without a table'
109
-
110
- Failing Scenarios:
111
- cucumber features/outline_sample.feature:5 # Scenario: Test state
112
-
113
- 5 scenarios (1 failed, 1 undefined, 3 passed)
114
- 8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
115
-
116
- """
117
-
@@ -1,42 +0,0 @@
1
- Feature: Print snippets
2
- In order to make it easier to implement step definitions
3
- Developers should get a scaffolding for undefined step definitions
4
-
5
- Scenario: Cucumber doesn't know what language, and defaults to Ruby
6
- Given a standard Cucumber project directory structure
7
- And a file named "features/x.feature" with:
8
- """
9
- Feature: X
10
- Scenario: Y
11
- Given Z
12
- Given Q
13
- """
14
- When I run cucumber features
15
- Then STDERR should be empty
16
- And it should pass with
17
- """
18
- Feature: X
19
-
20
- Scenario: Y # features/x.feature:2
21
- Given Z # features/x.feature:3
22
- Given Q # features/x.feature:4
23
-
24
- 1 scenario (1 undefined)
25
- 2 steps (2 undefined)
26
-
27
- You can implement step definitions for undefined steps with these snippets:
28
-
29
- Given /^Z$/ do
30
- pending # express the regexp above with the code you wish you had
31
- end
32
-
33
- Given /^Q$/ do
34
- pending # express the regexp above with the code you wish you had
35
- end
36
-
37
- If you want snippets in a different programming language, just make sure a file
38
- with the appropriate file extension exists where cucumber looks for step definitions.
39
-
40
-
41
- """
42
-
@@ -1,25 +0,0 @@
1
- Feature: Cucumber command line
2
- In order to write better software
3
- Developers should be able to execute requirements as tests
4
-
5
- @rspec2
6
- Scenario: Run single failing scenario with default diff enabled
7
- When I run cucumber -q features/failing_expectation.feature
8
- Then it should fail with
9
- """
10
- Feature: Failing expectation
11
-
12
- Scenario: Failing expectation
13
- Given failing expectation
14
- expected: "that",
15
- got: "this" (using ==) (RSpec::Expectations::ExpectationNotMetError)
16
- ./features/step_definitions/sample_steps.rb:63:in `/^failing expectation$/'
17
- features/failing_expectation.feature:4:in `Given failing expectation'
18
-
19
- Failing Scenarios:
20
- cucumber features/failing_expectation.feature:3 # Scenario: Failing expectation
21
-
22
- 1 scenario (1 failed)
23
- 1 step (1 failed)
24
-
25
- """
@@ -1,174 +0,0 @@
1
- @spork
2
- Feature: DRb Server Integration
3
- To prevent waiting for Rails and other large Ruby applications to load their environments
4
- for each feature run Cucumber ships with a DRb client that can speak to a server which
5
- loads up the environment only once.
6
-
7
- Background: App with Spork support
8
- Spork is a gem that has a DRb server and the scenarios below illustrate how to use it.
9
- However, any DRb server that adheres to the protocol that the client expects would work.
10
-
11
- Given a standard Cucumber project directory structure
12
- And a file named "features/support/env.rb" with:
13
- """
14
- require 'rubygems'
15
- require 'spork'
16
-
17
- Spork.prefork do
18
- puts "I'm loading all the heavy stuff..."
19
- end
20
-
21
- Spork.each_run do
22
- puts "I'm loading the stuff just for this run..."
23
- end
24
- """
25
- And a file named "features/sample.feature" with:
26
- """
27
- # language: en
28
- Feature: Sample
29
- Scenario: this is a test
30
- Given I am just testing stuff
31
- """
32
- And a file named "features/essai.feature" with:
33
- """
34
- # language: fr
35
- Fonctionnalité: Essai
36
- Scenario: ceci est un test
37
- Soit je teste
38
- """
39
- And a file named "features/step_definitions/all_your_steps_are_belong_to_us.rb" with:
40
- """
41
- Given /^I am just testing stuff$/ do
42
- # no-op
43
- end
44
-
45
- Soit /^je teste$/ do
46
- # no-op
47
- end
48
- """
49
-
50
- Scenario: Feature Passing with --drb flag
51
- Given I am running spork in the background
52
-
53
- When I run cucumber features --drb
54
- Then it should pass
55
- And STDERR should be empty
56
- And the output should contain
57
- """
58
- 1 step (1 passed)
59
- """
60
- And the output should contain
61
- """
62
- I'm loading the stuff just for this run...
63
- """
64
- And the output should not contain
65
- """
66
- I'm loading all the heavy stuff...
67
- """
68
-
69
- Scenario: Feature Failing with --drb flag
70
- Given a file named "features/step_definitions/all_your_steps_are_belong_to_us.rb" with:
71
- """
72
- Given /^I am just testing stuff$/ do
73
- raise "Oh noes!"
74
- end
75
- """
76
- And I am running spork in the background
77
-
78
- When I run cucumber features --drb
79
- Then it should fail
80
- And the output should contain
81
- """
82
- 1 step (1 failed)
83
- """
84
- And the output should contain
85
- """
86
- I'm loading the stuff just for this run...
87
- """
88
- And the output should not contain
89
- """
90
- I'm loading all the heavy stuff...
91
- """
92
-
93
- Scenario: Feature Run with --drb flag with no DRb server running
94
- Cucumber will fall back on running the features locally in this case.
95
-
96
- Given I am not running a DRb server in the background
97
-
98
- When I run cucumber features --drb
99
- Then it should pass
100
- And STDERR should match
101
- """
102
- No DRb server is running. Running features locally:
103
- """
104
- And the output should contain
105
- """
106
- I'm loading all the heavy stuff...
107
- I'm loading the stuff just for this run...
108
- """
109
- And the output should contain
110
- """
111
- 1 step (1 passed)
112
- """
113
-
114
-
115
- Scenario: Feature Run with --drb flag *defined in a profile* with no DRb server running
116
-
117
- Given I am not running a DRb server in the background
118
- And the following profile is defined:
119
- """
120
- server: --drb features
121
- """
122
-
123
- When I run cucumber --profile server
124
- Then it should pass
125
- And STDERR should match
126
- """
127
- No DRb server is running. Running features locally:
128
- """
129
- And the output should contain
130
- """
131
- I'm loading all the heavy stuff...
132
- I'm loading the stuff just for this run...
133
- """
134
-
135
- Scenario: Feature Run with --drb specifying a non-standard port
136
-
137
- Given I am running spork in the background on port 9000
138
-
139
- When I run cucumber features --drb --port 9000
140
- Then it should pass
141
- And STDERR should be empty
142
- And the output should contain
143
- """
144
- 1 step (1 passed)
145
- """
146
- And the output should contain
147
- """
148
- I'm loading the stuff just for this run...
149
- """
150
- And the output should not contain
151
- """
152
- I'm loading all the heavy stuff...
153
- """
154
-
155
- Scenario: Feature Run with $CUCUMBER_DRB environment variable
156
-
157
- Given I have environment variable CUCUMBER_DRB set to "9000"
158
- And I am running spork in the background on port 9000
159
-
160
- When I run cucumber features/ --drb
161
- Then it should pass
162
- And STDERR should be empty
163
- And the output should contain
164
- """
165
- 1 step (1 passed)
166
- """
167
- And the output should contain
168
- """
169
- I'm loading the stuff just for this run...
170
- """
171
- And the output should not contain
172
- """
173
- I'm loading all the heavy stuff...
174
- """
@@ -1,127 +0,0 @@
1
- Feature: Exception in After Block
2
- In order to use custom assertions at the end of each scenario
3
- As a developer
4
- I want exceptions raised in After blocks to be handled gracefully and reported by the formatters
5
-
6
- Background:
7
- Given a standard Cucumber project directory structure
8
- And a file named "features/step_definitions/steps.rb" with:
9
- """
10
- Given /^this step does something naughty$/ do x=1
11
- @naughty = true
12
- end
13
-
14
- Given(/^this step works$/) do; end
15
- """
16
- And a file named "features/support/env.rb" with:
17
- """
18
- class NaughtyScenarioException < Exception; end
19
- After do
20
- if @naughty
21
- raise NaughtyScenarioException.new("This scenario has been very very naughty")
22
- end
23
- end
24
- """
25
-
26
- Scenario: Handle Exception in standard scenario step and carry on
27
- Given a file named "features/naughty_step_in_scenario.feature" with:
28
- """
29
- Feature: Sample
30
-
31
- Scenario: Naughty Step
32
- Given this step does something naughty
33
-
34
- Scenario: Success
35
- Given this step works
36
- """
37
- When I run cucumber features
38
- Then it should fail with
39
- """
40
- Feature: Sample
41
-
42
- Scenario: Naughty Step # features/naughty_step_in_scenario.feature:3
43
- Given this step does something naughty # features/step_definitions/steps.rb:1
44
- This scenario has been very very naughty (NaughtyScenarioException)
45
- ./features/support/env.rb:4:in `After'
46
-
47
- Scenario: Success # features/naughty_step_in_scenario.feature:6
48
- Given this step works # features/step_definitions/steps.rb:5
49
-
50
- Failing Scenarios:
51
- cucumber features/naughty_step_in_scenario.feature:3 # Scenario: Naughty Step
52
-
53
- 2 scenarios (1 failed, 1 passed)
54
- 2 steps (2 passed)
55
-
56
- """
57
-
58
- Scenario: Handle Exception in scenario outline table row and carry on
59
- Given a file named "features/naughty_step_in_scenario_outline.feature" with:
60
- """
61
- Feature: Sample
62
-
63
- Scenario Outline: Naughty Step
64
- Given this step <Might Work>
65
-
66
- Examples:
67
- | Might Work |
68
- | works |
69
- | does something naughty |
70
- | works |
71
-
72
- Scenario: Success
73
- Given this step works
74
-
75
- """
76
- When I run cucumber features
77
- Then it should fail with
78
- """
79
- Feature: Sample
80
-
81
- Scenario Outline: Naughty Step # features/naughty_step_in_scenario_outline.feature:3
82
- Given this step <Might Work> # features/step_definitions/steps.rb:5
83
-
84
- Examples:
85
- | Might Work |
86
- | works |
87
- | does something naughty |
88
- This scenario has been very very naughty (NaughtyScenarioException)
89
- ./features/support/env.rb:4:in `After'
90
- | works |
91
-
92
- Scenario: Success # features/naughty_step_in_scenario_outline.feature:12
93
- Given this step works # features/step_definitions/steps.rb:5
94
-
95
- Failing Scenarios:
96
- cucumber features/naughty_step_in_scenario_outline.feature:3 # Scenario: Naughty Step
97
-
98
- 4 scenarios (1 failed, 3 passed)
99
- 4 steps (4 passed)
100
-
101
- """
102
-
103
- Scenario: Handle Exception using the progress format
104
- Given a file named "features/naughty_step_in_scenario.feature" with:
105
- """
106
- Feature: Sample
107
-
108
- Scenario: Naughty Step
109
- Given this step does something naughty
110
-
111
- Scenario: Success
112
- Given this step works
113
- """
114
- When I run cucumber features --format progress
115
- Then it should fail with
116
- """
117
- .F.
118
-
119
- Failing Scenarios:
120
- cucumber features/naughty_step_in_scenario.feature:3 # Scenario: Naughty Step
121
-
122
- 2 scenarios (1 failed, 1 passed)
123
- 2 steps (2 passed)
124
-
125
- """
126
-
127
-