kosmas58-cucumber 0.1.99.21 → 0.1.99.22
Sign up to get free protection for your applications and to get access to all the features.
- metadata +17 -300
- data/History.txt +0 -513
- data/License.txt +0 -20
- data/Manifest.txt +0 -0
- data/README.txt +0 -4
- data/Rakefile +0 -9
- data/bin/cucumber +0 -6
- data/config/hoe.rb +0 -75
- data/config/requirements.rb +0 -15
- data/cucumber.yml +0 -3
- data/examples/cs/README.textile +0 -1
- data/examples/cs/Rakefile +0 -12
- data/examples/cs/compile.bat +0 -1
- data/examples/cs/features/addition.feature +0 -16
- data/examples/cs/features/step_definitons/calculator_steps.rb +0 -19
- data/examples/cs/src/demo/Calculator.cs +0 -20
- data/examples/dos_line_endings/Rakefile +0 -6
- data/examples/dos_line_endings/features/dos_line_endings.feature +0 -9
- data/examples/i18n/README.textile +0 -18
- data/examples/i18n/Rakefile +0 -32
- data/examples/i18n/ar/Rakefile +0 -6
- data/examples/i18n/ar/features/addition.feature +0 -17
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +0 -28
- data/examples/i18n/ar/lib/calculator.rb +0 -10
- data/examples/i18n/da/Rakefile +0 -6
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +0 -24
- data/examples/i18n/da/features/summering.feature +0 -17
- data/examples/i18n/da/lib/kalkulator.rb +0 -11
- data/examples/i18n/de/Rakefile +0 -6
- data/examples/i18n/de/features/addition.feature +0 -16
- data/examples/i18n/de/features/division.feature +0 -9
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/de/lib/calculator.rb +0 -14
- data/examples/i18n/en/Rakefile +0 -6
- data/examples/i18n/en/features/addition.feature +0 -16
- data/examples/i18n/en/features/division.feature +0 -9
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/en/lib/calculator.rb +0 -14
- data/examples/i18n/es/Rakefile +0 -6
- data/examples/i18n/es/features/adicion.feature +0 -16
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +0 -21
- data/examples/i18n/es/lib/calculador.rb +0 -14
- data/examples/i18n/et/Rakefile +0 -6
- data/examples/i18n/et/features/liitmine.feature +0 -17
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +0 -24
- data/examples/i18n/et/lib/kalkulaator.rb +0 -10
- data/examples/i18n/fi/Rakefile +0 -6
- data/examples/i18n/fi/features/jakolasku.feature +0 -9
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +0 -24
- data/examples/i18n/fi/features/yhteenlasku.feature +0 -16
- data/examples/i18n/fi/lib/laskin.rb +0 -14
- data/examples/i18n/fr/Rakefile +0 -6
- data/examples/i18n/fr/features/addition.feature +0 -15
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +0 -27
- data/examples/i18n/fr/lib/calculatrice.rb +0 -10
- data/examples/i18n/id/Rakefile +0 -6
- data/examples/i18n/id/features/addition.feature +0 -16
- data/examples/i18n/id/features/division.feature +0 -9
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/id/lib/calculator.rb +0 -14
- data/examples/i18n/it/Rakefile +0 -6
- data/examples/i18n/it/features/somma.feature +0 -10
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +0 -24
- data/examples/i18n/it/lib/calcolatrice.rb +0 -11
- data/examples/i18n/ja/README.txt +0 -5
- data/examples/i18n/ja/Rakefile +0 -6
- data/examples/i18n/ja/features/addition.feature +0 -16
- data/examples/i18n/ja/features/division.feature +0 -9
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/ja/lib/calculator.rb +0 -14
- data/examples/i18n/ko/Rakefile +0 -6
- data/examples/i18n/ko/features/addition.feature +0 -16
- data/examples/i18n/ko/features/division.feature +0 -10
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/ko/lib/calculator.rb +0 -14
- data/examples/i18n/lt/Rakefile +0 -6
- data/examples/i18n/lt/features/addition.feature +0 -17
- data/examples/i18n/lt/features/division.feature +0 -9
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/lt/lib/calculator.rb +0 -14
- data/examples/i18n/no/Rakefile +0 -6
- data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +0 -24
- data/examples/i18n/no/features/summering.feature +0 -18
- data/examples/i18n/no/lib/kalkulator.rb +0 -11
- data/examples/i18n/pt/Rakefile +0 -6
- data/examples/i18n/pt/features/adicao.feature +0 -10
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +0 -24
- data/examples/i18n/pt/lib/calculadora.rb +0 -10
- data/examples/i18n/ro/Rakefile +0 -6
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +0 -24
- data/examples/i18n/ro/features/suma.feature +0 -10
- data/examples/i18n/ro/lib/calculator.rb +0 -11
- data/examples/i18n/se/Rakefile +0 -6
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +0 -24
- data/examples/i18n/se/features/summering.feature +0 -17
- data/examples/i18n/se/lib/kalkulator.rb +0 -11
- data/examples/i18n/zh-CN/Rakefile +0 -6
- data/examples/i18n/zh-CN/features/addition.feature +0 -17
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +0 -26
- data/examples/i18n/zh-CN/lib/calculator.rb +0 -10
- data/examples/java/README.textile +0 -22
- data/examples/java/Rakefile +0 -12
- data/examples/java/features/hello.feature +0 -11
- data/examples/java/features/step_definitons/hello_steps.rb +0 -25
- data/examples/java/features/step_definitons/tree_steps.rb +0 -14
- data/examples/java/features/tree.feature +0 -9
- data/examples/java/src/cucumber/demo/Hello.java +0 -16
- data/examples/jbehave/README.textile +0 -17
- data/examples/jbehave/features/support/env.rb +0 -7
- data/examples/jbehave/features/trading.feature +0 -24
- data/examples/jbehave/pom.xml +0 -48
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/converters/TraderConverter.java +0 -32
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Stock.java +0 -42
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Trader.java +0 -29
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java +0 -22
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java +0 -65
- data/examples/selenium/Rakefile +0 -6
- data/examples/selenium/features/search.feature +0 -9
- data/examples/selenium/features/step_definitons/stories_steps.rb +0 -40
- data/examples/self_test/README.textile +0 -6
- data/examples/self_test/Rakefile +0 -6
- data/examples/self_test/features/background/failing_background.feature +0 -10
- data/examples/self_test/features/background/failing_background_after_success.feature +0 -11
- data/examples/self_test/features/background/multiline_args_background.feature +0 -32
- data/examples/self_test/features/background/passing_background.feature +0 -10
- data/examples/self_test/features/background/pending_background.feature +0 -10
- data/examples/self_test/features/background/scenario_outline_failing_background.feature +0 -16
- data/examples/self_test/features/background/scenario_outline_passing_background.feature +0 -16
- data/examples/self_test/features/call_undefined_step_from_step_def.feature +0 -7
- data/examples/self_test/features/lots_of_undefined.feature +0 -8
- data/examples/self_test/features/outline_sample.feature +0 -15
- data/examples/self_test/features/sample.feature +0 -19
- data/examples/self_test/features/step_definitions/sample_steps.rb +0 -62
- data/examples/self_test/features/support/env.rb +0 -1
- data/examples/self_test/features/support/tag_count_formatter.rb +0 -25
- data/examples/test_unit/Rakefile +0 -6
- data/examples/test_unit/features/step_definitions/test_unit_steps.rb +0 -26
- data/examples/test_unit/features/test_unit.feature +0 -9
- data/examples/tickets/Rakefile +0 -11
- data/examples/tickets/cucumber.yml +0 -2
- data/examples/tickets/features/172.feature +0 -28
- data/examples/tickets/features/177/1.feature +0 -29
- data/examples/tickets/features/177/2.feature +0 -21
- data/examples/tickets/features/177/3.feature +0 -18
- data/examples/tickets/features/180.feature +0 -7
- data/examples/tickets/features/lib/eatting_machine.rb +0 -18
- data/examples/tickets/features/lib/pantry.rb +0 -20
- data/examples/tickets/features/scenario_outline.feature +0 -95
- data/examples/tickets/features/step_definitons/scenario_outline_steps.rb +0 -42
- data/examples/tickets/features/step_definitons/tickets_steps.rb +0 -60
- data/examples/tickets/features/tickets.feature +0 -28
- data/examples/watir/README.textile +0 -16
- data/examples/watir/Rakefile +0 -6
- data/examples/watir/features/search.feature +0 -9
- data/examples/watir/features/step_definitons/search_steps.rb +0 -24
- data/examples/watir/features/support/env.rb +0 -32
- data/features/background.feature +0 -223
- data/features/cucumber_cli.feature +0 -343
- data/features/cucumber_cli_outlines.feature +0 -90
- data/features/custom_formatter.feature +0 -11
- data/features/report_called_undefined_steps.feature +0 -32
- data/features/step_definitions/cucumber_steps.rb +0 -31
- data/features/step_definitions/extra_steps.rb +0 -2
- data/features/support/env.rb +0 -8
- data/gem_tasks/deployment.rake +0 -11
- data/gem_tasks/environment.rake +0 -7
- data/gem_tasks/features.rake +0 -9
- data/gem_tasks/fix_cr_lf.rake +0 -10
- data/gem_tasks/flog.rake +0 -4
- data/gem_tasks/gemspec.rake +0 -10
- data/gem_tasks/jar.rake +0 -67
- data/gem_tasks/rspec.rake +0 -38
- data/gem_tasks/yard.rake +0 -8
- data/lib/autotest/cucumber.rb +0 -6
- data/lib/autotest/cucumber_mixin.rb +0 -124
- data/lib/autotest/cucumber_rails.rb +0 -6
- data/lib/autotest/cucumber_rails_rspec.rb +0 -6
- data/lib/autotest/cucumber_rspec.rb +0 -6
- data/lib/autotest/discover.rb +0 -9
- data/lib/cucumber/ast/background.rb +0 -88
- data/lib/cucumber/ast/comment.rb +0 -26
- data/lib/cucumber/ast/examples.rb +0 -26
- data/lib/cucumber/ast/feature.rb +0 -66
- data/lib/cucumber/ast/features.rb +0 -39
- data/lib/cucumber/ast/filter.rb +0 -22
- data/lib/cucumber/ast/outline_table.rb +0 -49
- data/lib/cucumber/ast/py_string.rb +0 -52
- data/lib/cucumber/ast/scenario.rb +0 -103
- data/lib/cucumber/ast/scenario_outline.rb +0 -92
- data/lib/cucumber/ast/step.rb +0 -161
- data/lib/cucumber/ast/steps.rb +0 -13
- data/lib/cucumber/ast/table.rb +0 -218
- data/lib/cucumber/ast/tags.rb +0 -40
- data/lib/cucumber/ast/visitor.rb +0 -109
- data/lib/cucumber/ast.rb +0 -29
- data/lib/cucumber/broadcaster.rb +0 -15
- data/lib/cucumber/cli/configuration.rb +0 -339
- data/lib/cucumber/cli/language_help_formatter.rb +0 -59
- data/lib/cucumber/cli/main.rb +0 -100
- data/lib/cucumber/core_ext/exception.rb +0 -53
- data/lib/cucumber/core_ext/instance_exec.rb +0 -54
- data/lib/cucumber/core_ext/proc.rb +0 -33
- data/lib/cucumber/core_ext/string.rb +0 -48
- data/lib/cucumber/formatter/ansicolor.rb +0 -103
- data/lib/cucumber/formatter/color_io.rb +0 -17
- data/lib/cucumber/formatter/console.rb +0 -119
- data/lib/cucumber/formatter/cucumber.css +0 -55
- data/lib/cucumber/formatter/cucumber.sass +0 -49
- data/lib/cucumber/formatter/html.rb +0 -121
- data/lib/cucumber/formatter/pretty.rb +0 -167
- data/lib/cucumber/formatter/profile.rb +0 -77
- data/lib/cucumber/formatter/progress.rb +0 -68
- data/lib/cucumber/formatter/rerun.rb +0 -35
- data/lib/cucumber/formatter/unicode.rb +0 -35
- data/lib/cucumber/formatter.rb +0 -1
- data/lib/cucumber/formatters/unicode.rb +0 -2
- data/lib/cucumber/jbehave.rb +0 -102
- data/lib/cucumber/languages.yml +0 -339
- data/lib/cucumber/parser/basic.rb +0 -0
- data/lib/cucumber/parser/feature.rb +0 -1490
- data/lib/cucumber/parser/feature.tt +0 -188
- data/lib/cucumber/parser/i18n.tt +0 -31
- data/lib/cucumber/parser/table.rb +0 -402
- data/lib/cucumber/parser/table.tt +0 -59
- data/lib/cucumber/parser/treetop_ext.rb +0 -75
- data/lib/cucumber/parser.rb +0 -43
- data/lib/cucumber/platform.rb +0 -18
- data/lib/cucumber/rails/rspec.rb +0 -8
- data/lib/cucumber/rails/world.rb +0 -73
- data/lib/cucumber/rake/task.rb +0 -111
- data/lib/cucumber/step_definition.rb +0 -87
- data/lib/cucumber/step_mother.rb +0 -183
- data/lib/cucumber/version.rb +0 -10
- data/lib/cucumber.rb +0 -71
- data/rails_generators/cucumber/USAGE +0 -14
- data/rails_generators/cucumber/cucumber_generator.rb +0 -54
- data/rails_generators/cucumber/templates/cucumber +0 -8
- data/rails_generators/cucumber/templates/cucumber.rake +0 -12
- data/rails_generators/cucumber/templates/env.rb +0 -16
- data/rails_generators/cucumber/templates/paths.rb +0 -12
- data/rails_generators/cucumber/templates/webrat_steps.rb +0 -99
- data/rails_generators/feature/USAGE +0 -15
- data/rails_generators/feature/feature_generator.rb +0 -60
- data/rails_generators/feature/templates/feature.erb +0 -31
- data/rails_generators/feature/templates/steps.erb +0 -24
- data/spec/cucumber/ast/background_spec.rb +0 -58
- data/spec/cucumber/ast/feature_factory.rb +0 -54
- data/spec/cucumber/ast/feature_spec.rb +0 -60
- data/spec/cucumber/ast/py_string_spec.rb +0 -40
- data/spec/cucumber/ast/scenario_outline_spec.rb +0 -64
- data/spec/cucumber/ast/scenario_spec.rb +0 -82
- data/spec/cucumber/ast/step_spec.rb +0 -45
- data/spec/cucumber/ast/table_spec.rb +0 -81
- data/spec/cucumber/ast/tags_spec.rb +0 -23
- data/spec/cucumber/broadcaster_spec.rb +0 -14
- data/spec/cucumber/cli/configuration_spec.rb +0 -239
- data/spec/cucumber/cli/main_spec.rb +0 -164
- data/spec/cucumber/core_ext/proc_spec.rb +0 -37
- data/spec/cucumber/core_ext/string_spec.rb +0 -42
- data/spec/cucumber/formatter/ansicolor_spec.rb +0 -35
- data/spec/cucumber/formatter/html/cucumber.css +0 -37
- data/spec/cucumber/formatter/html/cucumber.js +0 -13
- data/spec/cucumber/formatter/html/index.html +0 -45
- data/spec/cucumber/formatter/html/jquery-1.3.min.js +0 -19
- data/spec/cucumber/formatter/html/jquery.uitableedit.js +0 -100
- data/spec/cucumber/formatters/profile_formatter_spec.rb +0 -198
- data/spec/cucumber/parser/feature_parser_spec.rb +0 -281
- data/spec/cucumber/parser/table_parser_spec.rb +0 -48
- data/spec/cucumber/rails/stubs/mini_rails.rb +0 -18
- data/spec/cucumber/rails/stubs/test_help.rb +0 -1
- data/spec/cucumber/rails/world_spec.rb +0 -11
- data/spec/cucumber/sell_cucumbers.feature +0 -19
- data/spec/cucumber/step_definition_spec.rb +0 -62
- data/spec/cucumber/step_mother_spec.rb +0 -73
- data/spec/cucumber/treetop_parser/empty_feature.feature +0 -4
- data/spec/cucumber/treetop_parser/empty_scenario.feature +0 -9
- data/spec/cucumber/treetop_parser/empty_scenario_outline.feature +0 -3
- data/spec/cucumber/treetop_parser/fit_scenario.feature +0 -8
- data/spec/cucumber/treetop_parser/given_scenario.feature +0 -9
- data/spec/cucumber/treetop_parser/invalid_scenario_outlines.feature +0 -7
- data/spec/cucumber/treetop_parser/multiline_steps.feature +0 -17
- data/spec/cucumber/treetop_parser/multiple_tables.feature +0 -27
- data/spec/cucumber/treetop_parser/scenario_outline.feature +0 -16
- data/spec/cucumber/treetop_parser/spaces.feature +0 -12
- data/spec/cucumber/treetop_parser/test_dos.feature +0 -25
- data/spec/cucumber/treetop_parser/with_comments.feature +0 -10
- data/spec/cucumber/treetop_parser/with_tags.feature +0 -18
- data/spec/cucumber/world/pending_spec.rb +0 -47
- data/spec/spec.opts +0 -3
- data/spec/spec_helper.rb +0 -21
data/features/background.feature
DELETED
@@ -1,223 +0,0 @@
|
|
1
|
-
Feature: backgrounds
|
2
|
-
In order to provide a context to my scenarios within a feature
|
3
|
-
As a feature editor
|
4
|
-
I want to write a background section in my features.
|
5
|
-
|
6
|
-
Scenario: run a specific scenario with a background
|
7
|
-
When I run cucumber -q features/background/passing_background.feature:9 --require features
|
8
|
-
Then it should pass with
|
9
|
-
"""
|
10
|
-
Feature: Passing background sample
|
11
|
-
|
12
|
-
Background:
|
13
|
-
Given '10' cukes
|
14
|
-
|
15
|
-
Scenario: another passing background
|
16
|
-
Then I should have '10' cukes
|
17
|
-
|
18
|
-
1 scenario
|
19
|
-
2 passed steps
|
20
|
-
|
21
|
-
"""
|
22
|
-
|
23
|
-
Scenario: run a feature with a background that passes
|
24
|
-
When I run cucumber -q features/background/passing_background.feature --require features
|
25
|
-
Then it should pass with
|
26
|
-
"""
|
27
|
-
Feature: Passing background sample
|
28
|
-
|
29
|
-
Background:
|
30
|
-
Given '10' cukes
|
31
|
-
|
32
|
-
Scenario: passing background
|
33
|
-
Then I should have '10' cukes
|
34
|
-
|
35
|
-
Scenario: another passing background
|
36
|
-
Then I should have '10' cukes
|
37
|
-
|
38
|
-
2 scenarios
|
39
|
-
4 passed steps
|
40
|
-
|
41
|
-
"""
|
42
|
-
|
43
|
-
Scenario: run a feature with scenario outlines that has a background that passes
|
44
|
-
When I run cucumber -q features/background/scenario_outline_passing_background.feature --require features
|
45
|
-
Then it should pass with
|
46
|
-
"""
|
47
|
-
Feature: Passing background with scenario outlines sample
|
48
|
-
|
49
|
-
Background:
|
50
|
-
Given '10' cukes
|
51
|
-
|
52
|
-
Scenario Outline: passing background
|
53
|
-
Then I should have '<count>' cukes
|
54
|
-
|
55
|
-
Examples:
|
56
|
-
| count |
|
57
|
-
| 10 |
|
58
|
-
|
59
|
-
Scenario Outline: another passing background
|
60
|
-
Then I should have '<count>' cukes
|
61
|
-
|
62
|
-
Examples:
|
63
|
-
| count |
|
64
|
-
| 10 |
|
65
|
-
|
66
|
-
2 scenarios
|
67
|
-
4 passed steps
|
68
|
-
|
69
|
-
"""
|
70
|
-
|
71
|
-
Scenario: run a feature with a background that fails
|
72
|
-
When I run cucumber -q features/background/failing_background.feature --require features
|
73
|
-
Then it should fail with
|
74
|
-
"""
|
75
|
-
Feature: Failing background sample
|
76
|
-
|
77
|
-
Background:
|
78
|
-
Given failing without a table
|
79
|
-
FAIL (RuntimeError)
|
80
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
81
|
-
./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
|
82
|
-
features/background/failing_background.feature:4:in `Given failing without a table'
|
83
|
-
|
84
|
-
Scenario: failing background
|
85
|
-
Then I should have '10' cukes
|
86
|
-
|
87
|
-
Scenario: another failing background
|
88
|
-
Then I should have '10' cukes
|
89
|
-
|
90
|
-
2 scenarios
|
91
|
-
2 failed steps
|
92
|
-
2 skipped steps
|
93
|
-
|
94
|
-
"""
|
95
|
-
|
96
|
-
Scenario: run a feature with scenario outlines that has a background that fails
|
97
|
-
When I run cucumber -q features/background/scenario_outline_failing_background.feature --require features
|
98
|
-
Then it should fail with
|
99
|
-
"""
|
100
|
-
Feature: Failing background with scenario outlines sample
|
101
|
-
|
102
|
-
Background:
|
103
|
-
Given failing without a table
|
104
|
-
FAIL (RuntimeError)
|
105
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
106
|
-
./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
|
107
|
-
features/background/scenario_outline_failing_background.feature:4:in `Given failing without a table'
|
108
|
-
|
109
|
-
Scenario Outline: failing background
|
110
|
-
Then I should have '<count>' cukes
|
111
|
-
|
112
|
-
Examples:
|
113
|
-
| count |
|
114
|
-
| 10 |
|
115
|
-
|
116
|
-
Scenario Outline: another failing background
|
117
|
-
Then I should have '<count>' cukes
|
118
|
-
|
119
|
-
Examples:
|
120
|
-
| count |
|
121
|
-
| 10 |
|
122
|
-
|
123
|
-
2 scenarios
|
124
|
-
2 failed steps
|
125
|
-
2 skipped steps
|
126
|
-
|
127
|
-
"""
|
128
|
-
|
129
|
-
Scenario: run a feature with a background that is pending
|
130
|
-
When I run cucumber -q features/background/pending_background.feature --require features
|
131
|
-
Then it should pass with
|
132
|
-
"""
|
133
|
-
Feature: Pending background sample
|
134
|
-
|
135
|
-
Background:
|
136
|
-
Given pending
|
137
|
-
|
138
|
-
Scenario: pending background
|
139
|
-
Then I should have '10' cukes
|
140
|
-
|
141
|
-
Scenario: another pending background
|
142
|
-
Then I should have '10' cukes
|
143
|
-
|
144
|
-
2 scenarios
|
145
|
-
2 skipped steps
|
146
|
-
2 undefined steps
|
147
|
-
|
148
|
-
"""
|
149
|
-
|
150
|
-
Scenario: background passes with first scenario but fails with second
|
151
|
-
When I run cucumber -q features/background/failing_background_after_success.feature --require features
|
152
|
-
Then it should fail with
|
153
|
-
"""
|
154
|
-
Feature: Failing background after previously successful background sample
|
155
|
-
|
156
|
-
Background:
|
157
|
-
Given passing without a table
|
158
|
-
And '10' global cukes
|
159
|
-
|
160
|
-
Scenario: passing background
|
161
|
-
Then I should have '10' global cukes
|
162
|
-
|
163
|
-
Background:
|
164
|
-
Given passing without a table
|
165
|
-
And '10' global cukes
|
166
|
-
FAIL (RuntimeError)
|
167
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
168
|
-
./features/step_definitions/sample_steps.rb:37:in `/^'(.+)' global cukes$/'
|
169
|
-
features/background/failing_background_after_success.feature:3:in `And '10' global cukes'
|
170
|
-
|
171
|
-
Scenario: failing background
|
172
|
-
Then I should have '10' global cukes
|
173
|
-
|
174
|
-
2 scenarios
|
175
|
-
1 failed step
|
176
|
-
1 skipped step
|
177
|
-
4 passed steps
|
178
|
-
|
179
|
-
"""
|
180
|
-
|
181
|
-
Scenario: background with multline args
|
182
|
-
When I run cucumber -q features/background/multiline_args_background.feature --require features
|
183
|
-
Then it should pass with
|
184
|
-
"""
|
185
|
-
Feature: Passing background with multiline args
|
186
|
-
|
187
|
-
Background:
|
188
|
-
Given table
|
189
|
-
| a | b |
|
190
|
-
| c | d |
|
191
|
-
And multiline string
|
192
|
-
\"\"\"
|
193
|
-
I'm a cucumber and I'm okay.
|
194
|
-
I sleep all night and I test all day
|
195
|
-
\"\"\"
|
196
|
-
|
197
|
-
Scenario: passing background
|
198
|
-
Then the table should be
|
199
|
-
| a | b |
|
200
|
-
| c | d |
|
201
|
-
Then the multiline string should be
|
202
|
-
\"\"\"
|
203
|
-
I'm a cucumber and I'm okay.
|
204
|
-
I sleep all night and I test all day
|
205
|
-
\"\"\"
|
206
|
-
|
207
|
-
Scenario: another passing background
|
208
|
-
Then the table should be
|
209
|
-
| a | b |
|
210
|
-
| c | d |
|
211
|
-
Then the multiline string should be
|
212
|
-
\"\"\"
|
213
|
-
I'm a cucumber and I'm okay.
|
214
|
-
I sleep all night and I test all day
|
215
|
-
\"\"\"
|
216
|
-
|
217
|
-
2 scenarios
|
218
|
-
8 passed steps
|
219
|
-
|
220
|
-
"""
|
221
|
-
|
222
|
-
@josephwilk
|
223
|
-
Scenario: run a scenario showing explicit background steps --explicit-background
|
@@ -1,343 +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 single scenario with missing step definition
|
6
|
-
When I run cucumber -q features/sample.feature:5
|
7
|
-
Then it should pass with
|
8
|
-
"""
|
9
|
-
@one
|
10
|
-
Feature: Sample
|
11
|
-
|
12
|
-
@two @three
|
13
|
-
Scenario: Missing
|
14
|
-
Given missing
|
15
|
-
|
16
|
-
1 scenario
|
17
|
-
1 undefined step
|
18
|
-
|
19
|
-
"""
|
20
|
-
|
21
|
-
Scenario: Fail with --strict
|
22
|
-
When I run cucumber -q features/sample.feature:5 --strict
|
23
|
-
Then it should fail with
|
24
|
-
"""
|
25
|
-
@one
|
26
|
-
Feature: Sample
|
27
|
-
|
28
|
-
@two @three
|
29
|
-
Scenario: Missing
|
30
|
-
Given missing
|
31
|
-
Undefined step: "missing" (Cucumber::Undefined)
|
32
|
-
features/sample.feature:6:in `Given missing'
|
33
|
-
|
34
|
-
1 scenario
|
35
|
-
1 failed step
|
36
|
-
|
37
|
-
"""
|
38
|
-
|
39
|
-
Scenario: Specify 2 line numbers where one is a tag
|
40
|
-
When I run cucumber -q features/sample.feature:5:14
|
41
|
-
Then it should fail with
|
42
|
-
"""
|
43
|
-
@one
|
44
|
-
Feature: Sample
|
45
|
-
|
46
|
-
@two @three
|
47
|
-
Scenario: Missing
|
48
|
-
Given missing
|
49
|
-
|
50
|
-
@four
|
51
|
-
Scenario: Failing
|
52
|
-
Given failing
|
53
|
-
\"\"\"
|
54
|
-
hello
|
55
|
-
\"\"\"
|
56
|
-
FAIL (RuntimeError)
|
57
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
58
|
-
./features/step_definitions/sample_steps.rb:9:in `/^failing$/'
|
59
|
-
features/sample.feature:16:in `Given failing'
|
60
|
-
|
61
|
-
2 scenarios
|
62
|
-
1 failed step
|
63
|
-
1 undefined step
|
64
|
-
|
65
|
-
"""
|
66
|
-
|
67
|
-
Scenario: Require missing step definition from elsewhere
|
68
|
-
When I run cucumber -q -r ../../features/step_definitions/extra_steps.rb features/sample.feature:5
|
69
|
-
Then it should pass with
|
70
|
-
"""
|
71
|
-
@one
|
72
|
-
Feature: Sample
|
73
|
-
|
74
|
-
@two @three
|
75
|
-
Scenario: Missing
|
76
|
-
Given missing
|
77
|
-
|
78
|
-
1 scenario
|
79
|
-
1 passed step
|
80
|
-
|
81
|
-
"""
|
82
|
-
|
83
|
-
Scenario: Specify the line number of a row
|
84
|
-
When I run cucumber -q features/sample.feature:12
|
85
|
-
Then it should pass with
|
86
|
-
"""
|
87
|
-
@one
|
88
|
-
Feature: Sample
|
89
|
-
|
90
|
-
@three
|
91
|
-
Scenario: Passing
|
92
|
-
Given passing
|
93
|
-
| a | b |
|
94
|
-
| c | d |
|
95
|
-
|
96
|
-
1 scenario
|
97
|
-
1 passed step
|
98
|
-
|
99
|
-
"""
|
100
|
-
|
101
|
-
Scenario: Run all with progress formatter
|
102
|
-
When I run cucumber -q --format progress features/sample.feature
|
103
|
-
Then it should fail with
|
104
|
-
"""
|
105
|
-
U.F
|
106
|
-
|
107
|
-
(::) failed steps (::)
|
108
|
-
|
109
|
-
FAIL (RuntimeError)
|
110
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
111
|
-
./features/step_definitions/sample_steps.rb:9:in `/^failing$/'
|
112
|
-
features/sample.feature:16:in `Given failing'
|
113
|
-
|
114
|
-
3 scenarios
|
115
|
-
1 failed step
|
116
|
-
1 undefined step
|
117
|
-
1 passed step
|
118
|
-
|
119
|
-
"""
|
120
|
-
|
121
|
-
Scenario: Run Norwegian
|
122
|
-
Given I am in i18n/no
|
123
|
-
When I run cucumber -q --language no features
|
124
|
-
Then it should pass with
|
125
|
-
"""
|
126
|
-
Egenskap: Summering
|
127
|
-
For å slippe å gjøre dumme feil
|
128
|
-
Som en regnskapsfører
|
129
|
-
Vil jeg kunne legge sammen
|
130
|
-
|
131
|
-
Scenario: to tall
|
132
|
-
Gitt at jeg har tastet inn 5
|
133
|
-
Og at jeg har tastet inn 7
|
134
|
-
Når jeg summerer
|
135
|
-
Så skal resultatet være 12
|
136
|
-
|
137
|
-
@iterasjon3
|
138
|
-
Scenario: tre tall
|
139
|
-
Gitt at jeg har tastet inn 5
|
140
|
-
Og at jeg har tastet inn 7
|
141
|
-
Og at jeg har tastet inn 1
|
142
|
-
Når jeg summerer
|
143
|
-
Så skal resultatet være 13
|
144
|
-
|
145
|
-
2 scenarios
|
146
|
-
9 passed steps
|
147
|
-
|
148
|
-
"""
|
149
|
-
|
150
|
-
Scenario: --dry-run
|
151
|
-
When I run cucumber --dry-run --no-snippets features/*.feature
|
152
|
-
Then it should pass with
|
153
|
-
"""
|
154
|
-
Feature: Calling undefined step
|
155
|
-
|
156
|
-
Scenario: Call directly
|
157
|
-
Given a step definition that calls an undefined step
|
158
|
-
|
159
|
-
Scenario: Call via another
|
160
|
-
Given call step "a step definition that calls an undefined step"
|
161
|
-
|
162
|
-
Feature: Lots of undefined
|
163
|
-
|
164
|
-
Scenario: Implement me
|
165
|
-
Given it snows in Sahara
|
166
|
-
Given it's 40 degrees in Norway
|
167
|
-
And it's 40 degrees in Norway
|
168
|
-
When I stop procrastinating
|
169
|
-
And there is world peace
|
170
|
-
|
171
|
-
Feature: Outline Sample
|
172
|
-
|
173
|
-
Scenario: I have no steps
|
174
|
-
|
175
|
-
Scenario Outline: Test state
|
176
|
-
Given <state> without a table
|
177
|
-
Given <other_state> without a table
|
178
|
-
|
179
|
-
Examples: Rainbow colours
|
180
|
-
| state | other_state |
|
181
|
-
| missing | passing |
|
182
|
-
| passing | passing |
|
183
|
-
| failing | passing |
|
184
|
-
|
185
|
-
Examples: Only passing
|
186
|
-
| state | other_state |
|
187
|
-
| passing | passing |
|
188
|
-
|
189
|
-
@one
|
190
|
-
Feature: Sample
|
191
|
-
|
192
|
-
@two @three
|
193
|
-
Scenario: Missing
|
194
|
-
Given missing
|
195
|
-
|
196
|
-
@three
|
197
|
-
Scenario: Passing
|
198
|
-
Given passing
|
199
|
-
| a | b |
|
200
|
-
| c | d |
|
201
|
-
|
202
|
-
@four
|
203
|
-
Scenario: Failing
|
204
|
-
Given failing
|
205
|
-
\"\"\"
|
206
|
-
hello
|
207
|
-
\"\"\"
|
208
|
-
|
209
|
-
11 scenarios
|
210
|
-
11 skipped steps
|
211
|
-
7 undefined steps
|
212
|
-
|
213
|
-
"""
|
214
|
-
|
215
|
-
Scenario: Multiple formatters and outputs
|
216
|
-
When I run cucumber --format progress --out tmp/progress.txt --format pretty --out tmp/pretty.txt --dry-run features/lots_of_undefined.feature
|
217
|
-
And examples/self_test/tmp/progress.txt should contain
|
218
|
-
"""
|
219
|
-
UUUUU
|
220
|
-
|
221
|
-
1 scenario
|
222
|
-
5 undefined steps
|
223
|
-
|
224
|
-
"""
|
225
|
-
And examples/self_test/tmp/pretty.txt should match
|
226
|
-
"""
|
227
|
-
Feature: Lots of undefined
|
228
|
-
|
229
|
-
Scenario: Implement me
|
230
|
-
Given it snows in Sahara
|
231
|
-
Given it's 40 degrees in Norway
|
232
|
-
And it's 40 degrees in Norway
|
233
|
-
When I stop procrastinating
|
234
|
-
And there is world peace
|
235
|
-
|
236
|
-
1 scenario
|
237
|
-
5 undefined steps
|
238
|
-
|
239
|
-
"""
|
240
|
-
|
241
|
-
Scenario: Run scenario specified by name using --scenario
|
242
|
-
When I run cucumber --scenario Passing -q features
|
243
|
-
Then it should pass with
|
244
|
-
"""
|
245
|
-
@one
|
246
|
-
Feature: Sample
|
247
|
-
|
248
|
-
@three
|
249
|
-
Scenario: Passing
|
250
|
-
Given passing
|
251
|
-
| a | b |
|
252
|
-
| c | d |
|
253
|
-
|
254
|
-
1 scenario
|
255
|
-
1 passed step
|
256
|
-
|
257
|
-
"""
|
258
|
-
|
259
|
-
Scenario: Run with a tag that exists on 2 scenarios
|
260
|
-
When I run cucumber -q features --tags three
|
261
|
-
Then it should pass with
|
262
|
-
"""
|
263
|
-
@one
|
264
|
-
Feature: Sample
|
265
|
-
|
266
|
-
@two @three
|
267
|
-
Scenario: Missing
|
268
|
-
Given missing
|
269
|
-
|
270
|
-
@three
|
271
|
-
Scenario: Passing
|
272
|
-
Given passing
|
273
|
-
| a | b |
|
274
|
-
| c | d |
|
275
|
-
|
276
|
-
2 scenarios
|
277
|
-
1 undefined step
|
278
|
-
1 passed step
|
279
|
-
|
280
|
-
"""
|
281
|
-
|
282
|
-
Scenario: Run with a tag that exists on 1 feature
|
283
|
-
When I run cucumber -q features --tags one
|
284
|
-
Then it should fail with
|
285
|
-
"""
|
286
|
-
@one
|
287
|
-
Feature: Sample
|
288
|
-
|
289
|
-
@two @three
|
290
|
-
Scenario: Missing
|
291
|
-
Given missing
|
292
|
-
|
293
|
-
@three
|
294
|
-
Scenario: Passing
|
295
|
-
Given passing
|
296
|
-
| a | b |
|
297
|
-
| c | d |
|
298
|
-
|
299
|
-
@four
|
300
|
-
Scenario: Failing
|
301
|
-
Given failing
|
302
|
-
\"\"\"
|
303
|
-
hello
|
304
|
-
\"\"\"
|
305
|
-
FAIL (RuntimeError)
|
306
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
307
|
-
./features/step_definitions/sample_steps.rb:9:in `/^failing$/'
|
308
|
-
features/sample.feature:16:in `Given failing'
|
309
|
-
|
310
|
-
3 scenarios
|
311
|
-
1 failed step
|
312
|
-
1 undefined step
|
313
|
-
1 passed step
|
314
|
-
|
315
|
-
"""
|
316
|
-
|
317
|
-
Scenario: Reformat files with --autoformat
|
318
|
-
When I run cucumber --autoformat tmp/formatted features
|
319
|
-
Then examples/self_test/tmp/formatted/features/sample.feature should contain
|
320
|
-
"""
|
321
|
-
@one
|
322
|
-
Feature: Sample
|
323
|
-
|
324
|
-
@two @three
|
325
|
-
Scenario: Missing
|
326
|
-
Given missing
|
327
|
-
|
328
|
-
@three
|
329
|
-
Scenario: Passing
|
330
|
-
Given passing
|
331
|
-
| a | b |
|
332
|
-
| c | d |
|
333
|
-
|
334
|
-
@four
|
335
|
-
Scenario: Failing
|
336
|
-
Given failing
|
337
|
-
\"\"\"
|
338
|
-
hello
|
339
|
-
\"\"\"
|
340
|
-
|
341
|
-
|
342
|
-
"""
|
343
|
-
|
@@ -1,90 +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 steps only
|
6
|
-
When I run cucumber -q features/outline_sample.feature:7
|
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:12:in `Given failing without a table'
|
24
|
-
|
25
|
-
Examples: Only passing
|
26
|
-
| state | other_state |
|
27
|
-
| passing | passing |
|
28
|
-
|
29
|
-
4 scenarios
|
30
|
-
1 failed step
|
31
|
-
2 skipped steps
|
32
|
-
1 undefined step
|
33
|
-
4 passed steps
|
34
|
-
|
35
|
-
"""
|
36
|
-
|
37
|
-
# The "Only Passing" should not be printed
|
38
|
-
@buggy
|
39
|
-
Scenario: Run single failing scenario outline table row
|
40
|
-
When I run cucumber features/outline_sample.feature:12
|
41
|
-
Then it should fail with
|
42
|
-
"""
|
43
|
-
Feature: Outline Sample
|
44
|
-
|
45
|
-
Scenario Outline: Test state # features/outline_sample.feature:5
|
46
|
-
Given <state> without a table # features/step_definitions/sample_steps.rb:12
|
47
|
-
Given <other_state> without a table # features/step_definitions/sample_steps.rb:12
|
48
|
-
|
49
|
-
Examples: Rainbow colours
|
50
|
-
| state | other_state |
|
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:12:in `Given failing without a table'
|
56
|
-
|
57
|
-
Examples: Only passing
|
58
|
-
| state | other_state |
|
59
|
-
|
60
|
-
1 scenario
|
61
|
-
1 failed step
|
62
|
-
1 skipped step
|
63
|
-
|
64
|
-
"""
|
65
|
-
|
66
|
-
Scenario: Run all with progress formatter
|
67
|
-
When I run cucumber -q --format progress features/outline_sample.feature
|
68
|
-
Then it should fail with
|
69
|
-
"""
|
70
|
-
UUS..FS..
|
71
|
-
|
72
|
-
(::) undefined scenarios (::)
|
73
|
-
|
74
|
-
features/outline_sample.feature:3:in `Scenario: I have no steps'
|
75
|
-
|
76
|
-
(::) failed steps (::)
|
77
|
-
|
78
|
-
FAIL (RuntimeError)
|
79
|
-
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
80
|
-
./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
|
81
|
-
features/outline_sample.feature:12:in `Given failing without a table'
|
82
|
-
|
83
|
-
5 scenarios
|
84
|
-
1 failed step
|
85
|
-
2 skipped steps
|
86
|
-
1 undefined step
|
87
|
-
4 passed steps
|
88
|
-
|
89
|
-
"""
|
90
|
-
|
@@ -1,32 +0,0 @@
|
|
1
|
-
Feature: Cucumber command line
|
2
|
-
In order to find out what step definitions need to be implemented
|
3
|
-
Developers should always see what step definition is missing
|
4
|
-
|
5
|
-
Scenario: Get info at arbitrary levels of nesting
|
6
|
-
When I run cucumber features/call_undefined_step_from_step_def.feature
|
7
|
-
Then it should pass with
|
8
|
-
"""
|
9
|
-
Feature: Calling undefined step
|
10
|
-
|
11
|
-
Scenario: Call directly # features/call_undefined_step_from_step_def.feature:3
|
12
|
-
Given a step definition that calls an undefined step # features/step_definitions/sample_steps.rb:19
|
13
|
-
Undefined step: "this does not exist" (Cucumber::Undefined)
|
14
|
-
./features/step_definitions/sample_steps.rb:20:in `/^a step definition that calls an undefined step$/'
|
15
|
-
|
16
|
-
Scenario: Call via another # features/call_undefined_step_from_step_def.feature:6
|
17
|
-
Given call step "a step definition that calls an undefined step" # features/step_definitions/sample_steps.rb:23
|
18
|
-
Undefined step: "this does not exist" (Cucumber::Undefined)
|
19
|
-
./features/step_definitions/sample_steps.rb:20:in `/^a step definition that calls an undefined step$/'
|
20
|
-
|
21
|
-
2 scenarios
|
22
|
-
2 undefined steps
|
23
|
-
|
24
|
-
You can implement step definitions for missing steps with these snippets:
|
25
|
-
|
26
|
-
Given /^this does not exist$/ do
|
27
|
-
pending
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
"""
|
32
|
-
|