kosmas58-cucumber 0.2.3.3 → 0.3.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +203 -3
- data/Manifest.txt +0 -346
- data/README.txt +0 -21
- data/Rakefile +3 -1
- data/bin/cucumber +12 -1
- data/config/hoe.rb +6 -5
- data/cucumber.yml +3 -1
- data/examples/cs/Rakefile +1 -1
- data/examples/cs/features/addition.feature +5 -5
- data/examples/cs/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/dos_line_endings/Rakefile +1 -1
- data/examples/dos_line_endings/features/dos_line_endings.feature +9 -9
- data/examples/i18n/Rakefile +1 -1
- data/examples/i18n/ar/Rakefile +1 -1
- data/examples/i18n/bg/Rakefile +6 -0
- data/examples/i18n/bg/features/addition.feature +11 -0
- data/examples/i18n/bg/features/consecutive_calculations.feature +18 -0
- data/examples/i18n/bg/features/division.feature +16 -0
- data/examples/i18n/bg/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/bg/features/support/env.rb +6 -0
- data/examples/i18n/bg/features/support/world.rb +8 -0
- data/examples/i18n/bg/lib/calculator.rb +24 -0
- data/examples/i18n/cat/Rakefile +6 -0
- data/examples/i18n/cat/features/step_definitons/calculator_steps.rb +21 -0
- data/examples/i18n/cat/features/suma.feature +16 -0
- data/examples/i18n/cat/lib/calculadora.rb +16 -0
- data/examples/i18n/da/Rakefile +1 -1
- data/examples/i18n/de/Rakefile +1 -1
- data/examples/i18n/en/Rakefile +1 -1
- data/examples/i18n/en-lol/Rakefile +1 -1
- data/examples/i18n/es/Rakefile +1 -1
- data/examples/i18n/et/Rakefile +1 -1
- data/examples/i18n/fi/Rakefile +1 -1
- data/examples/i18n/fr/Rakefile +1 -1
- data/examples/i18n/fr/features/addition.feature +4 -4
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +1 -1
- data/examples/i18n/fr/lib/calculatrice.rb +1 -1
- data/examples/i18n/he/Rakefile +6 -0
- data/examples/i18n/he/features/addition.feature +16 -0
- data/examples/i18n/he/features/division.feature +9 -0
- data/examples/i18n/he/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/he/lib/calculator.rb +14 -0
- data/examples/i18n/hu/Rakefile +6 -0
- data/examples/i18n/hu/features/addition.feature +16 -0
- data/examples/i18n/hu/features/division.feature +9 -0
- data/examples/i18n/hu/features/step_definitons/calculator_steps.rb +25 -0
- data/examples/i18n/hu/lib/calculator.rb +14 -0
- data/examples/i18n/id/Rakefile +1 -1
- data/examples/i18n/it/Rakefile +1 -1
- data/examples/i18n/ja/Rakefile +1 -1
- data/examples/i18n/ja/features/addition.feature +1 -1
- data/examples/i18n/ja/features/division.feature +1 -1
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ko/Rakefile +1 -1
- data/examples/i18n/lt/Rakefile +1 -1
- data/examples/i18n/lt/features/addition.feature +2 -3
- data/examples/i18n/lv/Rakefile +6 -0
- data/examples/i18n/lv/features/addition.feature +16 -0
- data/examples/i18n/lv/features/division.feature +9 -0
- data/examples/i18n/lv/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/lv/lib/calculator.rb +14 -0
- data/examples/i18n/no/Rakefile +1 -1
- data/examples/i18n/pl/Rakefile +6 -0
- data/examples/i18n/pl/features/addition.feature +16 -0
- data/examples/i18n/pl/features/division.feature +9 -0
- data/examples/i18n/pl/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/pl/features/support/env.rb +6 -0
- data/examples/i18n/pl/lib/calculator.rb +14 -0
- data/examples/i18n/pt/Rakefile +1 -1
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +3 -7
- data/examples/i18n/pt/features/support/env.rb +6 -0
- data/examples/i18n/ro/Rakefile +1 -1
- data/examples/i18n/ru/Rakefile +1 -1
- data/examples/i18n/se/Rakefile +1 -1
- data/examples/i18n/sk/Rakefile +1 -1
- data/examples/i18n/zh-CN/Rakefile +1 -1
- data/examples/i18n/zh-TW/Rakefile +1 -1
- data/examples/java/README.textile +2 -6
- data/examples/java/build.xml +33 -0
- data/examples/java/features/step_definitons/hello_steps.rb +0 -2
- data/examples/junit/features/one_passing_one_failing.feature +8 -0
- data/examples/junit/features/pending.feature +5 -0
- data/examples/junit/features/step_definitions/steps.rb +11 -0
- data/examples/selenium/Rakefile +1 -1
- data/examples/selenium_webrat/Rakefile +1 -1
- data/examples/selenium_webrat/config.ru +0 -0
- data/examples/selenium_webrat/features/search.feature +1 -1
- data/examples/selenium_webrat/features/step_definitons/search_steps.rb +2 -2
- data/examples/selenium_webrat/features/support/env.rb +7 -3
- data/examples/self_test/features/background/background_tagged_before_on_outline.feature +12 -0
- data/examples/self_test/features/background/failing_background.feature +1 -0
- data/examples/self_test/features/background/passing_background.feature +2 -2
- data/examples/self_test/features/multiline_name.feature +27 -0
- data/examples/self_test/features/sample.feature +2 -0
- data/examples/self_test/features/search_sample.feature +32 -0
- data/examples/self_test/features/step_definitions/sample_steps.rb +11 -0
- data/examples/self_test/features/support/env.rb +17 -1
- data/examples/sinatra/Rakefile +1 -1
- data/examples/test_unit/Rakefile +1 -1
- data/examples/tickets/Rakefile +3 -3
- data/examples/tickets/features/229/tagged_hooks.feature +8 -0
- data/examples/tickets/features/229/tagged_hooks.rb +14 -0
- data/examples/tickets/features/236.feature +9 -9
- data/examples/tickets/features/272/hooks.feature +26 -0
- data/examples/tickets/features/272/hooks_steps.rb +53 -0
- data/examples/tickets/features/279/py_string_indent.feature +25 -0
- data/examples/tickets/features/279/py_string_indent.steps.rb +12 -0
- data/examples/tickets/features/279/wrong.feature_ +11 -0
- data/examples/tickets/features/301/filter_background_tagged_hooks.feature +6 -0
- data/examples/tickets/features/301/filter_background_tagged_hooks_steps.rb +12 -0
- data/examples/tickets/features/306/only_background.feature +4 -0
- data/examples/tickets/features/step_definitons/tickets_steps.rb +0 -7
- data/examples/watir/Rakefile +1 -1
- data/examples/watir/features/search.feature +4 -1
- data/examples/watir/features/step_definitons/search_steps.rb +2 -4
- data/features/after_block_exceptions.feature +99 -0
- data/features/after_step_block_exceptions.feature +101 -0
- data/features/background.feature +105 -38
- data/features/cucumber_cli.feature +201 -64
- data/features/cucumber_cli_diff_disabled.feature +6 -4
- data/features/cucumber_cli_outlines.feature +60 -35
- data/features/custom_formatter.feature +3 -3
- data/features/exclude_files.feature +20 -0
- data/features/expand.feature +48 -0
- data/features/html_formatter/a.html +1632 -0
- data/features/html_formatter.feature +7 -0
- data/features/junit_formatter.feature +62 -0
- data/features/multiline_names.feature +43 -0
- data/features/rake_task.feature +150 -0
- data/features/report_called_undefined_steps.feature +4 -3
- data/features/snippet.feature +2 -3
- data/features/step_definitions/cucumber_steps.rb +98 -15
- data/features/support/env.rb +78 -3
- data/features/usage.feature +32 -19
- data/features/work_in_progress.feature +148 -0
- data/gem_tasks/deployment.rake +1 -1
- data/gem_tasks/rspec.rake +9 -2
- data/lib/cucumber/ast/background.rb +19 -7
- data/lib/cucumber/ast/comment.rb +4 -0
- data/lib/cucumber/ast/feature.rb +7 -1
- data/lib/cucumber/ast/feature_element.rb +24 -9
- data/lib/cucumber/ast/features.rb +4 -0
- data/lib/cucumber/ast/outline_table.rb +74 -4
- data/lib/cucumber/ast/py_string.rb +5 -1
- data/lib/cucumber/ast/scenario.rb +31 -7
- data/lib/cucumber/ast/scenario_outline.rb +17 -9
- data/lib/cucumber/ast/step.rb +8 -5
- data/lib/cucumber/ast/step_collection.rb +14 -1
- data/lib/cucumber/ast/step_invocation.rb +29 -15
- data/lib/cucumber/ast/table.rb +9 -1
- data/lib/cucumber/ast/tags.rb +9 -1
- data/lib/cucumber/ast/visitor.rb +6 -2
- data/lib/cucumber/cli/configuration.rb +134 -105
- data/lib/cucumber/cli/main.rb +35 -12
- data/lib/cucumber/core_ext/proc.rb +9 -13
- data/lib/cucumber/formatter/ansicolor.rb +1 -1
- data/lib/cucumber/formatter/console.rb +36 -14
- data/lib/cucumber/formatter/cucumber.css +31 -12
- data/lib/cucumber/formatter/duration.rb +10 -0
- data/lib/cucumber/formatter/html.rb +76 -16
- data/lib/cucumber/formatter/junit.rb +79 -0
- data/lib/cucumber/formatter/pretty.rb +19 -14
- data/lib/cucumber/formatter/profile.rb +1 -1
- data/lib/cucumber/formatter/progress.rb +12 -12
- data/lib/cucumber/formatter/rerun.rb +1 -0
- data/lib/cucumber/formatter/tag_cloud.rb +28 -0
- data/lib/cucumber/formatter/usage.rb +5 -5
- data/lib/cucumber/formatters/unicode.rb +5 -0
- data/lib/cucumber/languages.yml +111 -34
- data/lib/cucumber/parser/feature.rb +237 -36
- data/lib/cucumber/parser/feature.tt +68 -30
- data/lib/cucumber/parser/treetop_ext.rb +12 -3
- data/lib/cucumber/rails/rspec.rb +5 -3
- data/lib/cucumber/rails/world.rb +29 -4
- data/lib/cucumber/rake/task.rb +125 -37
- data/lib/cucumber/rspec_neuter.rb +23 -0
- data/lib/cucumber/step_definition.rb +5 -2
- data/lib/cucumber/step_match.rb +10 -6
- data/lib/cucumber/step_mother.rb +98 -26
- data/lib/cucumber/version.rb +3 -3
- data/lib/cucumber/world.rb +2 -2
- data/lib/cucumber.rb +7 -2
- data/rails_generators/cucumber/USAGE +0 -3
- data/rails_generators/cucumber/cucumber_generator.rb +51 -44
- data/rails_generators/cucumber/templates/cucumber.rake +5 -5
- data/rails_generators/cucumber/templates/cucumber_environment.rb +23 -0
- data/rails_generators/cucumber/templates/de/paths.rb +27 -0
- data/rails_generators/cucumber/templates/de/webrat_steps.rb +139 -0
- data/rails_generators/cucumber/templates/en/paths.rb +27 -0
- data/rails_generators/cucumber/templates/{webrat_steps.rb → en/webrat_steps.rb} +26 -2
- data/rails_generators/cucumber/templates/env.rb +1 -1
- data/rails_generators/feature/USAGE +0 -3
- data/rails_generators/feature/feature_generator.rb +6 -30
- data/spec/cucumber/ast/feature_element_spec.rb +40 -0
- data/spec/cucumber/ast/py_string_spec.rb +4 -0
- data/spec/cucumber/ast/table_spec.rb +21 -5
- data/spec/cucumber/ast/visitor_spec.rb +27 -0
- data/spec/cucumber/cli/configuration_spec.rb +75 -54
- data/spec/cucumber/cli/main_spec.rb +60 -154
- data/spec/cucumber/formatter/color_io_spec.rb +1 -0
- data/spec/cucumber/formatter/duration_spec.rb +22 -0
- data/spec/cucumber/formatter/progress_spec.rb +36 -0
- data/spec/cucumber/parser/feature_parser_spec.rb +102 -1
- data/spec/cucumber/step_mother_spec.rb +23 -5
- metadata +79 -22
- data/examples/java/Rakefile +0 -12
- data/examples/self_test/features/support/tag_count_formatter.rb +0 -25
- data/lib/cucumber/formatter.rb +0 -1
- data/rails_generators/cucumber/templates/paths.rb +0 -29
- data/spec/cucumber/formatters/profile_formatter_spec.rb +0 -198
@@ -0,0 +1,20 @@
|
|
1
|
+
Feature: Exclude ruby and feature files from runs
|
2
|
+
Developers should be able to easily exclude files from cucumber runs
|
3
|
+
This is a nice feature to have in conjunction with profiles, so you can exclude
|
4
|
+
certain environment files from certain runs.
|
5
|
+
|
6
|
+
Scenario: exclude ruby files
|
7
|
+
Given a standard Cucumber project directory structure
|
8
|
+
And a file named "features/support/dont_require_me.rb"
|
9
|
+
And a file named "features/step_definitions/fooz.rb"
|
10
|
+
And a file named "features/step_definitions/foof.rb"
|
11
|
+
And a file named "features/step_definitions/foot.rb"
|
12
|
+
And a file named "features/support/require_me.rb"
|
13
|
+
|
14
|
+
When I run cucumber features -q --verbose --exclude features/support/dont --exclude foo[zf]
|
15
|
+
|
16
|
+
Then "features/support/require_me.rb" should be required
|
17
|
+
And "features/step_definitions/foot.rb" should be required
|
18
|
+
And "features/support/dont_require_me.rb" should not be required
|
19
|
+
And "features/step_definitions/foof.rb" should not be required
|
20
|
+
And "features/step_definitions/fooz.rb" should not be required
|
@@ -0,0 +1,48 @@
|
|
1
|
+
Feature: --expand option
|
2
|
+
In order to make it easier to writhe certain editor plugins
|
3
|
+
and also for some people to understand scenarios, Cucumber
|
4
|
+
should expand examples in outlines.
|
5
|
+
|
6
|
+
Background:
|
7
|
+
Given a standard Cucumber project directory structure
|
8
|
+
And a file named "features/expand_me.feature" with:
|
9
|
+
"""
|
10
|
+
Feature: submit guess
|
11
|
+
Scenario Outline: submit guess
|
12
|
+
Given the secret code is <code>
|
13
|
+
When I guess <guess>
|
14
|
+
Then the mark should be <mark>
|
15
|
+
|
16
|
+
Examples: all colors correct
|
17
|
+
| code | guess | mark |
|
18
|
+
| r g y c | r g y c | bbbb |
|
19
|
+
| r g y c | r g c y | bbww |
|
20
|
+
"""
|
21
|
+
|
22
|
+
Scenario: Expand the outline
|
23
|
+
When I run cucumber -i -q --expand features/expand_me.feature
|
24
|
+
Then it should pass with
|
25
|
+
"""
|
26
|
+
Feature: submit guess
|
27
|
+
|
28
|
+
Scenario Outline: submit guess
|
29
|
+
Given the secret code is <code>
|
30
|
+
When I guess <guess>
|
31
|
+
Then the mark should be <mark>
|
32
|
+
|
33
|
+
Examples: all colors correct
|
34
|
+
|
35
|
+
Scenario: | r g y c | r g y c | bbbb |
|
36
|
+
Given the secret code is r g y c
|
37
|
+
When I guess r g y c
|
38
|
+
Then the mark should be bbbb
|
39
|
+
|
40
|
+
Scenario: | r g y c | r g c y | bbww |
|
41
|
+
Given the secret code is r g y c
|
42
|
+
When I guess r g c y
|
43
|
+
Then the mark should be bbww
|
44
|
+
|
45
|
+
2 scenarios (2 undefined)
|
46
|
+
6 steps (6 undefined)
|
47
|
+
|
48
|
+
"""
|