cucumber 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +223 -5
- data/License.txt +1 -1
- data/Manifest.txt +174 -85
- data/README.txt +2 -39
- data/Rakefile +1 -2
- data/bin/cucumber +2 -2
- data/config/hoe.rb +9 -3
- data/examples/cs/README.textile +1 -22
- data/examples/cs/Rakefile +1 -1
- data/examples/cs/compile.bat +1 -0
- data/examples/cs/features/addition.feature +16 -0
- data/examples/cs/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/cs/src/demo/Calculator.cs +20 -0
- data/examples/i18n/README.textile +1 -1
- data/examples/i18n/Rakefile +20 -4
- data/examples/i18n/ar/features/addition.feature +10 -11
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +4 -12
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +4 -2
- data/examples/i18n/de/features/addition.feature +10 -11
- data/examples/i18n/de/features/division.feature +0 -1
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +5 -11
- data/examples/i18n/en/features/addition.feature +10 -11
- data/examples/i18n/en/features/division.feature +0 -1
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +5 -12
- data/examples/i18n/en-lol/Rakefile +6 -0
- data/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +16 -0
- data/examples/i18n/en-lol/features/stuffing.feature +8 -0
- data/examples/i18n/en-lol/features/support/env.rb +8 -0
- data/examples/i18n/en-lol/lib/basket.rb +12 -0
- data/examples/i18n/en-lol/lib/belly.rb +11 -0
- data/examples/i18n/es/features/adicion.feature +11 -12
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +10 -11
- data/examples/i18n/es/lib/calculador.rb +4 -1
- data/examples/i18n/et/features/jagamine.feature +9 -0
- data/examples/i18n/et/features/liitmine.feature +10 -11
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +7 -9
- data/examples/i18n/et/lib/kalkulaator.rb +5 -1
- data/examples/i18n/fi/Rakefile +6 -0
- data/examples/i18n/fi/features/jakolasku.feature +9 -0
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +24 -0
- data/examples/i18n/fi/features/yhteenlasku.feature +16 -0
- data/examples/i18n/fi/lib/laskin.rb +14 -0
- data/examples/i18n/fr/features/addition.feature +16 -12
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +14 -11
- data/examples/i18n/fr/lib/calculatrice.rb +1 -1
- data/examples/i18n/id/features/addition.feature +10 -11
- data/examples/i18n/id/features/division.feature +0 -1
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +5 -12
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +4 -2
- data/examples/i18n/ja/features/addition.feature +10 -11
- data/examples/i18n/ja/features/division.feature +2 -3
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +6 -12
- data/examples/i18n/ko/Rakefile +6 -0
- data/examples/i18n/ko/features/addition.feature +16 -0
- data/examples/i18n/ko/features/division.feature +10 -0
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/ko/lib/calculator.rb +14 -0
- data/examples/i18n/lt/features/addition.feature +11 -11
- data/examples/i18n/lt/features/division.feature +0 -1
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +5 -12
- data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +4 -9
- data/examples/i18n/no/features/summering.feature +1 -0
- data/examples/i18n/no/features/support/env.rb +6 -0
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +4 -2
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +4 -2
- data/examples/i18n/ru/Rakefile +6 -0
- data/examples/i18n/ru/features/addition.feature +10 -0
- data/examples/i18n/ru/features/consecutive_calculations.feature +16 -0
- data/examples/i18n/ru/features/division.feature +15 -0
- data/examples/i18n/ru/features/step_definitons/calculator_steps.rb +19 -0
- data/examples/i18n/ru/features/support/env.rb +6 -0
- data/examples/i18n/ru/features/support/world.rb +7 -0
- data/examples/i18n/ru/lib/calculator.rb +24 -0
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +4 -2
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +5 -3
- data/examples/i18n/zh-TW/Rakefile +6 -0
- data/examples/i18n/zh-TW/features/addition.feature +16 -0
- data/examples/i18n/zh-TW/features/division.feature +10 -0
- data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +24 -0
- data/examples/i18n/zh-TW/lib/calculator.rb +14 -0
- data/examples/java/features/step_definitons/hello_steps.rb +1 -1
- data/examples/java/features/step_definitons/tree_steps.rb +1 -1
- data/examples/jbehave/README.textile +20 -0
- data/examples/jbehave/features/support/env.rb +7 -0
- data/examples/jbehave/features/trading.feature +28 -0
- data/examples/jbehave/pom.xml +53 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/converters/TraderConverter.java +32 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Stock.java +42 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Trader.java +29 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java +22 -0
- data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java +70 -0
- data/examples/selenium/features/search.feature +1 -1
- data/examples/selenium/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium/features/support/env.rb +19 -0
- data/examples/selenium_webrat/features/search.feature +9 -0
- data/examples/selenium_webrat/features/step_definitons/search_steps.rb +13 -0
- data/examples/selenium_webrat/features/support/env.rb +41 -0
- data/examples/self_test/README.textile +6 -0
- data/examples/self_test/Rakefile +6 -0
- data/examples/self_test/features/background/failing_background.feature +11 -0
- data/examples/self_test/features/background/failing_background_after_success.feature +11 -0
- data/examples/self_test/features/background/multiline_args_background.feature +32 -0
- data/examples/self_test/features/background/passing_background.feature +10 -0
- data/examples/self_test/features/background/pending_background.feature +10 -0
- data/examples/self_test/features/background/scenario_outline_failing_background.feature +16 -0
- data/examples/self_test/features/background/scenario_outline_passing_background.feature +16 -0
- data/examples/self_test/features/call_undefined_step_from_step_def.feature +7 -0
- data/examples/self_test/features/failing_expectation.feature +4 -0
- data/examples/self_test/features/lots_of_undefined.feature +8 -0
- data/examples/self_test/features/outline_sample.feature +15 -0
- data/examples/self_test/features/sample.feature +19 -0
- data/examples/self_test/features/step_definitions/sample_steps.rb +64 -0
- data/examples/self_test/features/support/env.rb +1 -0
- data/examples/self_test/features/support/tag_count_formatter.rb +25 -0
- data/examples/sinatra/Rakefile +6 -0
- data/examples/sinatra/app.rb +14 -0
- data/examples/sinatra/features/add.feature +11 -0
- data/examples/sinatra/features/step_definitions/add_steps.rb +15 -0
- data/examples/sinatra/features/support/env.rb +20 -0
- data/examples/sinatra/views/add.erb +5 -0
- data/examples/sinatra/views/layout.erb +8 -0
- data/examples/tickets/Rakefile +13 -8
- data/examples/tickets/cucumber.yml +2 -1
- data/examples/tickets/features/172.feature +28 -0
- data/examples/tickets/features/177/1.feature +29 -0
- data/examples/tickets/features/177/2.feature +21 -0
- data/examples/tickets/features/177/3.feature +18 -0
- data/examples/tickets/features/180.feature +7 -0
- data/examples/tickets/features/236.feature +13 -0
- data/examples/tickets/features/241.feature +13 -0
- data/examples/tickets/features/lib/eatting_machine.rb +18 -0
- data/examples/tickets/features/lib/pantry.rb +20 -0
- data/examples/tickets/features/scenario_outline.feature +95 -0
- data/examples/tickets/features/step_definitons/scenario_outline_steps.rb +42 -0
- data/examples/tickets/features/step_definitons/tickets_steps.rb +46 -5
- data/examples/tickets/features/tickets.feature +5 -1
- data/examples/watir/README.textile +16 -0
- data/examples/watir/features/step_definitons/search_steps.rb +24 -0
- data/examples/watir/features/support/env.rb +32 -0
- data/features/background.feature +221 -0
- data/features/cucumber_cli.feature +389 -0
- data/features/cucumber_cli_diff_disabled.feature +45 -0
- data/features/cucumber_cli_outlines.feature +81 -0
- data/features/custom_formatter.feature +11 -0
- data/features/report_called_undefined_steps.feature +34 -0
- data/features/step_definitions/cucumber_steps.rb +30 -0
- data/features/step_definitions/extra_steps.rb +2 -0
- data/features/support/env.rb +8 -0
- data/gem_tasks/deployment.rake +0 -23
- data/gem_tasks/features.rake +1 -1
- data/gem_tasks/fix_cr_lf.rake +1 -1
- data/gem_tasks/flog.rake +1 -1
- data/gem_tasks/gemspec.rake +4 -0
- data/gem_tasks/jar.rake +67 -0
- data/gem_tasks/rspec.rake +31 -15
- data/gem_tasks/yard.rake +8 -0
- data/lib/autotest/cucumber_mixin.rb +41 -25
- data/lib/cucumber/ast/background.rb +50 -0
- data/lib/cucumber/ast/comment.rb +26 -0
- data/lib/cucumber/ast/examples.rb +38 -0
- data/lib/cucumber/ast/feature.rb +62 -0
- data/lib/cucumber/ast/feature_element.rb +46 -0
- data/lib/cucumber/ast/features.rb +20 -0
- data/lib/cucumber/ast/outline_table.rb +81 -0
- data/lib/cucumber/ast/py_string.rb +58 -0
- data/lib/cucumber/ast/scenario.rb +64 -0
- data/lib/cucumber/ast/scenario_outline.rb +90 -0
- data/lib/cucumber/ast/step.rb +122 -0
- data/lib/cucumber/ast/step_collection.rb +66 -0
- data/lib/cucumber/ast/step_invocation.rb +110 -0
- data/lib/cucumber/ast/table.rb +318 -0
- data/lib/cucumber/ast/tags.rb +33 -0
- data/lib/cucumber/ast/visitor.rb +125 -0
- data/lib/cucumber/ast.rb +29 -0
- data/lib/cucumber/broadcaster.rb +2 -9
- data/lib/cucumber/cli/configuration.rb +364 -0
- data/lib/cucumber/cli/language_help_formatter.rb +59 -0
- data/lib/cucumber/cli/main.rb +109 -0
- data/lib/cucumber/core_ext/exception.rb +53 -0
- data/lib/cucumber/core_ext/instance_exec.rb +54 -0
- data/lib/cucumber/core_ext/proc.rb +29 -65
- data/lib/cucumber/core_ext/string.rb +26 -0
- data/lib/cucumber/formatter/ansicolor.rb +102 -0
- data/lib/cucumber/formatter/color_io.rb +23 -0
- data/lib/cucumber/formatter/console.rb +109 -0
- data/lib/cucumber/formatter/cucumber.css +55 -0
- data/lib/cucumber/formatter/cucumber.sass +49 -0
- data/lib/cucumber/formatter/html.rb +133 -0
- data/lib/cucumber/formatter/pretty.rb +179 -0
- data/lib/cucumber/formatter/profile.rb +77 -0
- data/lib/cucumber/formatter/progress.rb +60 -0
- data/lib/cucumber/formatter/rerun.rb +35 -0
- data/lib/cucumber/formatter/unicode.rb +35 -0
- data/lib/cucumber/formatter.rb +1 -0
- data/lib/cucumber/formatters/unicode.rb +2 -0
- data/lib/cucumber/jbehave.rb +97 -0
- data/lib/cucumber/languages.yml +214 -72
- data/lib/cucumber/parser/basic.rb +0 -0
- data/lib/cucumber/parser/feature.rb +1487 -0
- data/lib/cucumber/parser/feature.tt +193 -0
- data/lib/cucumber/parser/i18n.tt +31 -0
- data/lib/cucumber/parser/table.rb +402 -0
- data/lib/cucumber/parser/table.tt +59 -0
- data/lib/cucumber/parser/treetop_ext.rb +75 -0
- data/lib/cucumber/parser.rb +43 -0
- data/lib/cucumber/platform.rb +13 -8
- data/lib/cucumber/rails/rspec.rb +6 -10
- data/lib/cucumber/rails/world.rb +8 -8
- data/lib/cucumber/rake/task.rb +46 -9
- data/lib/cucumber/step_definition.rb +103 -0
- data/lib/cucumber/step_match.rb +49 -0
- data/lib/cucumber/step_mother.rb +184 -65
- data/lib/cucumber/version.rb +4 -3
- data/lib/cucumber/world.rb +53 -0
- data/lib/cucumber.rb +45 -21
- data/rails_generators/cucumber/cucumber_generator.rb +23 -3
- data/rails_generators/cucumber/templates/cucumber +2 -1
- data/rails_generators/cucumber/templates/cucumber.rake +13 -5
- data/rails_generators/cucumber/templates/env.rb +11 -2
- data/rails_generators/cucumber/templates/paths.rb +19 -0
- data/rails_generators/cucumber/templates/webrat_steps.rb +60 -40
- data/rails_generators/feature/feature_generator.rb +26 -2
- data/rails_generators/feature/templates/feature.erb +15 -12
- data/rails_generators/feature/templates/steps.erb +14 -16
- data/spec/cucumber/ast/background_spec.rb +49 -0
- data/spec/cucumber/ast/feature_factory.rb +63 -0
- data/spec/cucumber/ast/feature_spec.rb +37 -0
- data/spec/cucumber/ast/py_string_spec.rb +47 -0
- data/spec/cucumber/ast/scenario_outline_spec.rb +67 -0
- data/spec/cucumber/ast/scenario_spec.rb +65 -0
- data/spec/cucumber/ast/step_collection_spec.rb +8 -0
- data/spec/cucumber/ast/step_spec.rb +66 -0
- data/spec/cucumber/ast/table_spec.rb +149 -0
- data/spec/cucumber/ast/tags_spec.rb +19 -0
- data/spec/cucumber/broadcaster_spec.rb +6 -18
- data/spec/cucumber/cli/configuration_spec.rb +275 -0
- data/spec/cucumber/cli/main_spec.rb +203 -0
- data/spec/cucumber/core_ext/proc_spec.rb +27 -35
- data/spec/cucumber/core_ext/string_spec.rb +8 -0
- data/spec/cucumber/formatter/ansicolor_spec.rb +35 -0
- data/spec/cucumber/formatter/color_io_spec.rb +26 -0
- data/spec/cucumber/formatter/html/cucumber.css +37 -0
- data/spec/cucumber/formatter/html/cucumber.js +13 -0
- data/spec/cucumber/formatter/html/index.html +45 -0
- data/spec/cucumber/formatter/html/jquery-1.3.min.js +19 -0
- data/spec/cucumber/formatter/html/jquery.uitableedit.js +100 -0
- data/spec/cucumber/formatters/profile_formatter_spec.rb +22 -16
- data/spec/cucumber/parser/feature_parser_spec.rb +282 -0
- data/spec/cucumber/parser/table_parser_spec.rb +48 -0
- data/spec/cucumber/rails/stubs/mini_rails.rb +4 -3
- data/spec/cucumber/step_definition_spec.rb +81 -0
- data/spec/cucumber/step_mother_spec.rb +50 -51
- data/spec/cucumber/treetop_parser/empty_feature.feature +1 -1
- data/spec/cucumber/treetop_parser/empty_scenario_outline.feature +3 -0
- data/spec/cucumber/treetop_parser/invalid_scenario_outlines.feature +7 -0
- data/spec/cucumber/treetop_parser/multiple_tables.feature +6 -8
- data/spec/cucumber/treetop_parser/scenario_outline.feature +16 -0
- data/spec/cucumber/treetop_parser/spaces.feature +3 -1
- data/spec/cucumber/treetop_parser/with_comments.feature +1 -1
- data/spec/cucumber/treetop_parser/with_tags.feature +18 -0
- data/spec/cucumber/world/pending_spec.rb +47 -0
- data/spec/spec_helper.rb +4 -3
- metadata +192 -95
- data/TODO.txt +0 -26
- data/examples/calculator_ruby_features/features/addition.rb +0 -23
- data/examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb +0 -43
- data/examples/cs/features/hello.feature +0 -11
- data/examples/cs/features/step_definitons/hello_steps.rb +0 -25
- data/examples/cs/features/step_definitons/tree_steps.rb +0 -14
- data/examples/cs/features/tree.feature +0 -9
- data/examples/cs/src/Hello.cs +0 -18
- data/examples/i18n/ja/README.txt +0 -5
- data/examples/selenium/features/step_definitons/stories_steps.rb +0 -41
- data/examples/watir/features/step_definitons/stories_steps.rb +0 -51
- data/features/see_features.feature +0 -8
- data/features/steps/features_steps.rb +0 -9
- data/gem_tasks/treetop.rake +0 -41
- data/lib/cucumber/cli.rb +0 -279
- data/lib/cucumber/executor.rb +0 -190
- data/lib/cucumber/formatters/ansicolor.rb +0 -109
- data/lib/cucumber/formatters/autotest_formatter.rb +0 -23
- data/lib/cucumber/formatters/cucumber.css +0 -132
- data/lib/cucumber/formatters/cucumber.js +0 -11
- data/lib/cucumber/formatters/html_formatter.rb +0 -128
- data/lib/cucumber/formatters/jquery.js +0 -32
- data/lib/cucumber/formatters/pretty_formatter.rb +0 -234
- data/lib/cucumber/formatters/profile_formatter.rb +0 -92
- data/lib/cucumber/formatters/progress_formatter.rb +0 -58
- data/lib/cucumber/formatters.rb +0 -1
- data/lib/cucumber/model/table.rb +0 -28
- data/lib/cucumber/model.rb +0 -1
- data/lib/cucumber/step_methods.rb +0 -49
- data/lib/cucumber/tree/feature.rb +0 -63
- data/lib/cucumber/tree/features.rb +0 -21
- data/lib/cucumber/tree/given_scenario.rb +0 -13
- data/lib/cucumber/tree/scenario.rb +0 -174
- data/lib/cucumber/tree/step.rb +0 -134
- data/lib/cucumber/tree/table.rb +0 -26
- data/lib/cucumber/tree/top_down_visitor.rb +0 -23
- data/lib/cucumber/tree.rb +0 -18
- data/lib/cucumber/treetop_parser/feature.treetop.erb +0 -206
- data/lib/cucumber/treetop_parser/feature_ar.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_cy.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_da.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_de.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_en-tx.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_en.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_es.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_et.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_fr.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_id.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_it.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_ja.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_lt.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_nl.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_no.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_parser.rb +0 -34
- data/lib/cucumber/treetop_parser/feature_pl.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_pt.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_ro.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_ro2.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_ru.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_se.rb +0 -1591
- data/lib/cucumber/treetop_parser/feature_zh-CN.rb +0 -1591
- data/script/console +0 -10
- data/script/console.cmd +0 -1
- data/script/destroy +0 -14
- data/script/destroy.cmd +0 -1
- data/script/generate +0 -14
- data/script/generate.cmd +0 -1
- data/script/txt2html +0 -74
- data/script/txt2html.cmd +0 -1
- data/setup.rb +0 -1585
- data/spec/cucumber/cli_spec.rb +0 -274
- data/spec/cucumber/executor_spec.rb +0 -298
- data/spec/cucumber/formatters/ansicolor_spec.rb +0 -35
- data/spec/cucumber/formatters/autotest_formatter_spec.rb +0 -26
- data/spec/cucumber/formatters/features.html +0 -269
- data/spec/cucumber/formatters/html_formatter_spec.rb +0 -74
- data/spec/cucumber/formatters/pretty_formatter_spec.rb +0 -204
- data/spec/cucumber/formatters/progress_formatter_spec.rb +0 -65
- data/spec/cucumber/model/table_spec.rb +0 -20
- data/spec/cucumber/tree/feature_spec.rb +0 -43
- data/spec/cucumber/tree/row_scenario_spec.rb +0 -55
- data/spec/cucumber/tree/scenario_spec.rb +0 -76
- data/spec/cucumber/tree/step_spec.rb +0 -50
- data/spec/cucumber/treetop_parser/feature_parser_spec.rb +0 -98
- /data/examples/{calculator_ruby_features → selenium_webrat}/Rakefile +0 -0
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Aslak Helles\xC3\xB8y"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-03-18 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -32,6 +32,16 @@ dependencies:
|
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 1.2.4
|
|
34
34
|
version:
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: polyglot
|
|
37
|
+
type: :runtime
|
|
38
|
+
version_requirement:
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 0.2.4
|
|
44
|
+
version:
|
|
35
45
|
- !ruby/object:Gem::Dependency
|
|
36
46
|
name: diff-lcs
|
|
37
47
|
type: :runtime
|
|
@@ -43,14 +53,14 @@ dependencies:
|
|
|
43
53
|
version: 1.1.2
|
|
44
54
|
version:
|
|
45
55
|
- !ruby/object:Gem::Dependency
|
|
46
|
-
name:
|
|
47
|
-
type: :
|
|
56
|
+
name: builder
|
|
57
|
+
type: :runtime
|
|
48
58
|
version_requirement:
|
|
49
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
60
|
requirements:
|
|
51
61
|
- - ">="
|
|
52
62
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
63
|
+
version: 2.1.2
|
|
54
64
|
version:
|
|
55
65
|
- !ruby/object:Gem::Dependency
|
|
56
66
|
name: hoe
|
|
@@ -60,7 +70,7 @@ dependencies:
|
|
|
60
70
|
requirements:
|
|
61
71
|
- - ">="
|
|
62
72
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 1.8.
|
|
73
|
+
version: 1.8.3
|
|
64
74
|
version:
|
|
65
75
|
description: Executable Feature scenarios
|
|
66
76
|
email:
|
|
@@ -74,29 +84,22 @@ extra_rdoc_files:
|
|
|
74
84
|
- License.txt
|
|
75
85
|
- Manifest.txt
|
|
76
86
|
- README.txt
|
|
77
|
-
- TODO.txt
|
|
78
|
-
- examples/i18n/ja/README.txt
|
|
79
87
|
files:
|
|
80
88
|
- History.txt
|
|
81
89
|
- License.txt
|
|
82
90
|
- Manifest.txt
|
|
83
91
|
- README.txt
|
|
84
92
|
- Rakefile
|
|
85
|
-
- TODO.txt
|
|
86
93
|
- bin/cucumber
|
|
87
94
|
- config/hoe.rb
|
|
88
95
|
- config/requirements.rb
|
|
89
96
|
- cucumber.yml
|
|
90
|
-
- examples/calculator_ruby_features/Rakefile
|
|
91
|
-
- examples/calculator_ruby_features/features/addition.rb
|
|
92
|
-
- examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb
|
|
93
97
|
- examples/cs/README.textile
|
|
94
98
|
- examples/cs/Rakefile
|
|
95
|
-
- examples/cs/
|
|
96
|
-
- examples/cs/features/
|
|
97
|
-
- examples/cs/features/step_definitons/
|
|
98
|
-
- examples/cs/
|
|
99
|
-
- examples/cs/src/Hello.cs
|
|
99
|
+
- examples/cs/compile.bat
|
|
100
|
+
- examples/cs/features/addition.feature
|
|
101
|
+
- examples/cs/features/step_definitons/calculator_steps.rb
|
|
102
|
+
- examples/cs/src/demo/Calculator.cs
|
|
100
103
|
- examples/dos_line_endings/Rakefile
|
|
101
104
|
- examples/dos_line_endings/features/dos_line_endings.feature
|
|
102
105
|
- examples/i18n/README.textile
|
|
@@ -114,6 +117,12 @@ files:
|
|
|
114
117
|
- examples/i18n/de/features/division.feature
|
|
115
118
|
- examples/i18n/de/features/step_definitons/calculator_steps.rb
|
|
116
119
|
- examples/i18n/de/lib/calculator.rb
|
|
120
|
+
- examples/i18n/en-lol/Rakefile
|
|
121
|
+
- examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb
|
|
122
|
+
- examples/i18n/en-lol/features/stuffing.feature
|
|
123
|
+
- examples/i18n/en-lol/features/support/env.rb
|
|
124
|
+
- examples/i18n/en-lol/lib/basket.rb
|
|
125
|
+
- examples/i18n/en-lol/lib/belly.rb
|
|
117
126
|
- examples/i18n/en/Rakefile
|
|
118
127
|
- examples/i18n/en/features/addition.feature
|
|
119
128
|
- examples/i18n/en/features/division.feature
|
|
@@ -124,9 +133,15 @@ files:
|
|
|
124
133
|
- examples/i18n/es/features/step_definitons/calculador_steps.rb
|
|
125
134
|
- examples/i18n/es/lib/calculador.rb
|
|
126
135
|
- examples/i18n/et/Rakefile
|
|
136
|
+
- examples/i18n/et/features/jagamine.feature
|
|
127
137
|
- examples/i18n/et/features/liitmine.feature
|
|
128
138
|
- examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
|
|
129
139
|
- examples/i18n/et/lib/kalkulaator.rb
|
|
140
|
+
- examples/i18n/fi/Rakefile
|
|
141
|
+
- examples/i18n/fi/features/jakolasku.feature
|
|
142
|
+
- examples/i18n/fi/features/step_definitons/laskin_steps.rb
|
|
143
|
+
- examples/i18n/fi/features/yhteenlasku.feature
|
|
144
|
+
- examples/i18n/fi/lib/laskin.rb
|
|
130
145
|
- examples/i18n/fr/Rakefile
|
|
131
146
|
- examples/i18n/fr/features/addition.feature
|
|
132
147
|
- examples/i18n/fr/features/step_definitions/calculatrice_steps.rb
|
|
@@ -140,12 +155,16 @@ files:
|
|
|
140
155
|
- examples/i18n/it/features/somma.feature
|
|
141
156
|
- examples/i18n/it/features/step_definitons/calcolatrice_steps.rb
|
|
142
157
|
- examples/i18n/it/lib/calcolatrice.rb
|
|
143
|
-
- examples/i18n/ja/README.txt
|
|
144
158
|
- examples/i18n/ja/Rakefile
|
|
145
159
|
- examples/i18n/ja/features/addition.feature
|
|
146
160
|
- examples/i18n/ja/features/division.feature
|
|
147
161
|
- examples/i18n/ja/features/step_definitons/calculator_steps.rb
|
|
148
162
|
- examples/i18n/ja/lib/calculator.rb
|
|
163
|
+
- examples/i18n/ko/Rakefile
|
|
164
|
+
- examples/i18n/ko/features/addition.feature
|
|
165
|
+
- examples/i18n/ko/features/division.feature
|
|
166
|
+
- examples/i18n/ko/features/step_definitons/calculator_steps.rb
|
|
167
|
+
- examples/i18n/ko/lib/calculator.rb
|
|
149
168
|
- examples/i18n/lt/Rakefile
|
|
150
169
|
- examples/i18n/lt/features/addition.feature
|
|
151
170
|
- examples/i18n/lt/features/division.feature
|
|
@@ -154,6 +173,7 @@ files:
|
|
|
154
173
|
- examples/i18n/no/Rakefile
|
|
155
174
|
- examples/i18n/no/features/step_definitons/kalkulator_steps.rb
|
|
156
175
|
- examples/i18n/no/features/summering.feature
|
|
176
|
+
- examples/i18n/no/features/support/env.rb
|
|
157
177
|
- examples/i18n/no/lib/kalkulator.rb
|
|
158
178
|
- examples/i18n/pt/Rakefile
|
|
159
179
|
- examples/i18n/pt/features/adicao.feature
|
|
@@ -163,6 +183,14 @@ files:
|
|
|
163
183
|
- examples/i18n/ro/features/step_definitons/calculator_steps.rb
|
|
164
184
|
- examples/i18n/ro/features/suma.feature
|
|
165
185
|
- examples/i18n/ro/lib/calculator.rb
|
|
186
|
+
- examples/i18n/ru/Rakefile
|
|
187
|
+
- examples/i18n/ru/features/addition.feature
|
|
188
|
+
- examples/i18n/ru/features/consecutive_calculations.feature
|
|
189
|
+
- examples/i18n/ru/features/division.feature
|
|
190
|
+
- examples/i18n/ru/features/step_definitons/calculator_steps.rb
|
|
191
|
+
- examples/i18n/ru/features/support/env.rb
|
|
192
|
+
- examples/i18n/ru/features/support/world.rb
|
|
193
|
+
- examples/i18n/ru/lib/calculator.rb
|
|
166
194
|
- examples/i18n/se/Rakefile
|
|
167
195
|
- examples/i18n/se/features/step_definitons/kalkulator_steps.rb
|
|
168
196
|
- examples/i18n/se/features/summering.feature
|
|
@@ -171,6 +199,11 @@ files:
|
|
|
171
199
|
- examples/i18n/zh-CN/features/addition.feature
|
|
172
200
|
- examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb
|
|
173
201
|
- examples/i18n/zh-CN/lib/calculator.rb
|
|
202
|
+
- examples/i18n/zh-TW/Rakefile
|
|
203
|
+
- examples/i18n/zh-TW/features/addition.feature
|
|
204
|
+
- examples/i18n/zh-TW/features/division.feature
|
|
205
|
+
- examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb
|
|
206
|
+
- examples/i18n/zh-TW/lib/calculator.rb
|
|
174
207
|
- examples/java/README.textile
|
|
175
208
|
- examples/java/Rakefile
|
|
176
209
|
- examples/java/features/hello.feature
|
|
@@ -178,29 +211,88 @@ files:
|
|
|
178
211
|
- examples/java/features/step_definitons/tree_steps.rb
|
|
179
212
|
- examples/java/features/tree.feature
|
|
180
213
|
- examples/java/src/cucumber/demo/Hello.java
|
|
214
|
+
- examples/jbehave/README.textile
|
|
215
|
+
- examples/jbehave/features/support/env.rb
|
|
216
|
+
- examples/jbehave/features/trading.feature
|
|
217
|
+
- examples/jbehave/pom.xml
|
|
218
|
+
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/converters/TraderConverter.java
|
|
219
|
+
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Stock.java
|
|
220
|
+
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Trader.java
|
|
221
|
+
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
|
|
222
|
+
- examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java
|
|
181
223
|
- examples/selenium/Rakefile
|
|
182
224
|
- examples/selenium/features/search.feature
|
|
183
|
-
- examples/selenium/features/step_definitons/
|
|
225
|
+
- examples/selenium/features/step_definitons/search_steps.rb
|
|
226
|
+
- examples/selenium/features/support/env.rb
|
|
227
|
+
- examples/selenium_webrat/Rakefile
|
|
228
|
+
- examples/selenium_webrat/features/search.feature
|
|
229
|
+
- examples/selenium_webrat/features/step_definitons/search_steps.rb
|
|
230
|
+
- examples/selenium_webrat/features/support/env.rb
|
|
231
|
+
- examples/self_test/README.textile
|
|
232
|
+
- examples/self_test/Rakefile
|
|
233
|
+
- examples/self_test/features/background/failing_background.feature
|
|
234
|
+
- examples/self_test/features/background/failing_background_after_success.feature
|
|
235
|
+
- examples/self_test/features/background/multiline_args_background.feature
|
|
236
|
+
- examples/self_test/features/background/passing_background.feature
|
|
237
|
+
- examples/self_test/features/background/pending_background.feature
|
|
238
|
+
- examples/self_test/features/background/scenario_outline_failing_background.feature
|
|
239
|
+
- examples/self_test/features/background/scenario_outline_passing_background.feature
|
|
240
|
+
- examples/self_test/features/call_undefined_step_from_step_def.feature
|
|
241
|
+
- examples/self_test/features/failing_expectation.feature
|
|
242
|
+
- examples/self_test/features/lots_of_undefined.feature
|
|
243
|
+
- examples/self_test/features/outline_sample.feature
|
|
244
|
+
- examples/self_test/features/sample.feature
|
|
245
|
+
- examples/self_test/features/step_definitions/sample_steps.rb
|
|
246
|
+
- examples/self_test/features/support/env.rb
|
|
247
|
+
- examples/self_test/features/support/tag_count_formatter.rb
|
|
248
|
+
- examples/sinatra/Rakefile
|
|
249
|
+
- examples/sinatra/app.rb
|
|
250
|
+
- examples/sinatra/features/add.feature
|
|
251
|
+
- examples/sinatra/features/step_definitions/add_steps.rb
|
|
252
|
+
- examples/sinatra/features/support/env.rb
|
|
253
|
+
- examples/sinatra/views/add.erb
|
|
254
|
+
- examples/sinatra/views/layout.erb
|
|
184
255
|
- examples/test_unit/Rakefile
|
|
185
256
|
- examples/test_unit/features/step_definitions/test_unit_steps.rb
|
|
186
257
|
- examples/test_unit/features/test_unit.feature
|
|
187
258
|
- examples/tickets/Rakefile
|
|
188
259
|
- examples/tickets/cucumber.yml
|
|
260
|
+
- examples/tickets/features/172.feature
|
|
261
|
+
- examples/tickets/features/177/1.feature
|
|
262
|
+
- examples/tickets/features/177/2.feature
|
|
263
|
+
- examples/tickets/features/177/3.feature
|
|
264
|
+
- examples/tickets/features/180.feature
|
|
265
|
+
- examples/tickets/features/236.feature
|
|
266
|
+
- examples/tickets/features/241.feature
|
|
267
|
+
- examples/tickets/features/lib/eatting_machine.rb
|
|
268
|
+
- examples/tickets/features/lib/pantry.rb
|
|
269
|
+
- examples/tickets/features/scenario_outline.feature
|
|
270
|
+
- examples/tickets/features/step_definitons/scenario_outline_steps.rb
|
|
189
271
|
- examples/tickets/features/step_definitons/tickets_steps.rb
|
|
190
272
|
- examples/tickets/features/tickets.feature
|
|
273
|
+
- examples/watir/README.textile
|
|
191
274
|
- examples/watir/Rakefile
|
|
192
275
|
- examples/watir/features/search.feature
|
|
193
|
-
- examples/watir/features/step_definitons/
|
|
194
|
-
- features/
|
|
195
|
-
- features/
|
|
276
|
+
- examples/watir/features/step_definitons/search_steps.rb
|
|
277
|
+
- examples/watir/features/support/env.rb
|
|
278
|
+
- features/background.feature
|
|
279
|
+
- features/cucumber_cli.feature
|
|
280
|
+
- features/cucumber_cli_diff_disabled.feature
|
|
281
|
+
- features/cucumber_cli_outlines.feature
|
|
282
|
+
- features/custom_formatter.feature
|
|
283
|
+
- features/report_called_undefined_steps.feature
|
|
284
|
+
- features/step_definitions/cucumber_steps.rb
|
|
285
|
+
- features/step_definitions/extra_steps.rb
|
|
286
|
+
- features/support/env.rb
|
|
196
287
|
- gem_tasks/deployment.rake
|
|
197
288
|
- gem_tasks/environment.rake
|
|
198
289
|
- gem_tasks/features.rake
|
|
199
290
|
- gem_tasks/fix_cr_lf.rake
|
|
200
291
|
- gem_tasks/flog.rake
|
|
201
292
|
- gem_tasks/gemspec.rake
|
|
293
|
+
- gem_tasks/jar.rake
|
|
202
294
|
- gem_tasks/rspec.rake
|
|
203
|
-
- gem_tasks/
|
|
295
|
+
- gem_tasks/yard.rake
|
|
204
296
|
- lib/autotest/cucumber.rb
|
|
205
297
|
- lib/autotest/cucumber_mixin.rb
|
|
206
298
|
- lib/autotest/cucumber_rails.rb
|
|
@@ -208,118 +300,123 @@ files:
|
|
|
208
300
|
- lib/autotest/cucumber_rspec.rb
|
|
209
301
|
- lib/autotest/discover.rb
|
|
210
302
|
- lib/cucumber.rb
|
|
303
|
+
- lib/cucumber/ast.rb
|
|
304
|
+
- lib/cucumber/ast/background.rb
|
|
305
|
+
- lib/cucumber/ast/comment.rb
|
|
306
|
+
- lib/cucumber/ast/examples.rb
|
|
307
|
+
- lib/cucumber/ast/feature.rb
|
|
308
|
+
- lib/cucumber/ast/feature_element.rb
|
|
309
|
+
- lib/cucumber/ast/features.rb
|
|
310
|
+
- lib/cucumber/ast/outline_table.rb
|
|
311
|
+
- lib/cucumber/ast/py_string.rb
|
|
312
|
+
- lib/cucumber/ast/scenario.rb
|
|
313
|
+
- lib/cucumber/ast/scenario_outline.rb
|
|
314
|
+
- lib/cucumber/ast/step.rb
|
|
315
|
+
- lib/cucumber/ast/step_collection.rb
|
|
316
|
+
- lib/cucumber/ast/step_invocation.rb
|
|
317
|
+
- lib/cucumber/ast/table.rb
|
|
318
|
+
- lib/cucumber/ast/tags.rb
|
|
319
|
+
- lib/cucumber/ast/visitor.rb
|
|
211
320
|
- lib/cucumber/broadcaster.rb
|
|
212
|
-
- lib/cucumber/cli.rb
|
|
321
|
+
- lib/cucumber/cli/configuration.rb
|
|
322
|
+
- lib/cucumber/cli/language_help_formatter.rb
|
|
323
|
+
- lib/cucumber/cli/main.rb
|
|
324
|
+
- lib/cucumber/core_ext/exception.rb
|
|
325
|
+
- lib/cucumber/core_ext/instance_exec.rb
|
|
213
326
|
- lib/cucumber/core_ext/proc.rb
|
|
214
327
|
- lib/cucumber/core_ext/string.rb
|
|
215
|
-
- lib/cucumber/
|
|
216
|
-
- lib/cucumber/
|
|
217
|
-
- lib/cucumber/
|
|
218
|
-
- lib/cucumber/
|
|
219
|
-
- lib/cucumber/
|
|
220
|
-
- lib/cucumber/
|
|
221
|
-
- lib/cucumber/
|
|
222
|
-
- lib/cucumber/
|
|
223
|
-
- lib/cucumber/
|
|
224
|
-
- lib/cucumber/
|
|
225
|
-
- lib/cucumber/
|
|
328
|
+
- lib/cucumber/formatter.rb
|
|
329
|
+
- lib/cucumber/formatter/ansicolor.rb
|
|
330
|
+
- lib/cucumber/formatter/color_io.rb
|
|
331
|
+
- lib/cucumber/formatter/console.rb
|
|
332
|
+
- lib/cucumber/formatter/cucumber.css
|
|
333
|
+
- lib/cucumber/formatter/cucumber.sass
|
|
334
|
+
- lib/cucumber/formatter/html.rb
|
|
335
|
+
- lib/cucumber/formatter/pretty.rb
|
|
336
|
+
- lib/cucumber/formatter/profile.rb
|
|
337
|
+
- lib/cucumber/formatter/progress.rb
|
|
338
|
+
- lib/cucumber/formatter/rerun.rb
|
|
339
|
+
- lib/cucumber/formatter/unicode.rb
|
|
340
|
+
- lib/cucumber/formatters/unicode.rb
|
|
341
|
+
- lib/cucumber/jbehave.rb
|
|
226
342
|
- lib/cucumber/languages.yml
|
|
227
|
-
- lib/cucumber/
|
|
228
|
-
- lib/cucumber/
|
|
343
|
+
- lib/cucumber/parser.rb
|
|
344
|
+
- lib/cucumber/parser/basic.rb
|
|
345
|
+
- lib/cucumber/parser/feature.rb
|
|
346
|
+
- lib/cucumber/parser/feature.tt
|
|
347
|
+
- lib/cucumber/parser/i18n.tt
|
|
348
|
+
- lib/cucumber/parser/table.rb
|
|
349
|
+
- lib/cucumber/parser/table.tt
|
|
350
|
+
- lib/cucumber/parser/treetop_ext.rb
|
|
229
351
|
- lib/cucumber/platform.rb
|
|
230
352
|
- lib/cucumber/rails/rspec.rb
|
|
231
353
|
- lib/cucumber/rails/world.rb
|
|
232
354
|
- lib/cucumber/rake/task.rb
|
|
233
|
-
- lib/cucumber/
|
|
355
|
+
- lib/cucumber/step_definition.rb
|
|
356
|
+
- lib/cucumber/step_match.rb
|
|
234
357
|
- lib/cucumber/step_mother.rb
|
|
235
|
-
- lib/cucumber/tree.rb
|
|
236
|
-
- lib/cucumber/tree/feature.rb
|
|
237
|
-
- lib/cucumber/tree/features.rb
|
|
238
|
-
- lib/cucumber/tree/given_scenario.rb
|
|
239
|
-
- lib/cucumber/tree/scenario.rb
|
|
240
|
-
- lib/cucumber/tree/step.rb
|
|
241
|
-
- lib/cucumber/tree/table.rb
|
|
242
|
-
- lib/cucumber/tree/top_down_visitor.rb
|
|
243
|
-
- lib/cucumber/treetop_parser/feature.treetop.erb
|
|
244
|
-
- lib/cucumber/treetop_parser/feature_ar.rb
|
|
245
|
-
- lib/cucumber/treetop_parser/feature_cy.rb
|
|
246
|
-
- lib/cucumber/treetop_parser/feature_da.rb
|
|
247
|
-
- lib/cucumber/treetop_parser/feature_de.rb
|
|
248
|
-
- lib/cucumber/treetop_parser/feature_en-tx.rb
|
|
249
|
-
- lib/cucumber/treetop_parser/feature_en.rb
|
|
250
|
-
- lib/cucumber/treetop_parser/feature_es.rb
|
|
251
|
-
- lib/cucumber/treetop_parser/feature_et.rb
|
|
252
|
-
- lib/cucumber/treetop_parser/feature_fr.rb
|
|
253
|
-
- lib/cucumber/treetop_parser/feature_id.rb
|
|
254
|
-
- lib/cucumber/treetop_parser/feature_it.rb
|
|
255
|
-
- lib/cucumber/treetop_parser/feature_ja.rb
|
|
256
|
-
- lib/cucumber/treetop_parser/feature_lt.rb
|
|
257
|
-
- lib/cucumber/treetop_parser/feature_nl.rb
|
|
258
|
-
- lib/cucumber/treetop_parser/feature_no.rb
|
|
259
|
-
- lib/cucumber/treetop_parser/feature_parser.rb
|
|
260
|
-
- lib/cucumber/treetop_parser/feature_pl.rb
|
|
261
|
-
- lib/cucumber/treetop_parser/feature_pt.rb
|
|
262
|
-
- lib/cucumber/treetop_parser/feature_ro.rb
|
|
263
|
-
- lib/cucumber/treetop_parser/feature_ro2.rb
|
|
264
|
-
- lib/cucumber/treetop_parser/feature_ru.rb
|
|
265
|
-
- lib/cucumber/treetop_parser/feature_se.rb
|
|
266
|
-
- lib/cucumber/treetop_parser/feature_zh-CN.rb
|
|
267
358
|
- lib/cucumber/version.rb
|
|
359
|
+
- lib/cucumber/world.rb
|
|
268
360
|
- rails_generators/cucumber/USAGE
|
|
269
361
|
- rails_generators/cucumber/cucumber_generator.rb
|
|
270
362
|
- rails_generators/cucumber/templates/cucumber
|
|
271
363
|
- rails_generators/cucumber/templates/cucumber.rake
|
|
272
364
|
- rails_generators/cucumber/templates/env.rb
|
|
365
|
+
- rails_generators/cucumber/templates/paths.rb
|
|
273
366
|
- rails_generators/cucumber/templates/webrat_steps.rb
|
|
274
367
|
- rails_generators/feature/USAGE
|
|
275
368
|
- rails_generators/feature/feature_generator.rb
|
|
276
369
|
- rails_generators/feature/templates/feature.erb
|
|
277
370
|
- rails_generators/feature/templates/steps.erb
|
|
278
|
-
-
|
|
279
|
-
-
|
|
280
|
-
-
|
|
281
|
-
-
|
|
282
|
-
-
|
|
283
|
-
-
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
-
|
|
371
|
+
- spec/cucumber/ast/background_spec.rb
|
|
372
|
+
- spec/cucumber/ast/feature_factory.rb
|
|
373
|
+
- spec/cucumber/ast/feature_spec.rb
|
|
374
|
+
- spec/cucumber/ast/py_string_spec.rb
|
|
375
|
+
- spec/cucumber/ast/scenario_outline_spec.rb
|
|
376
|
+
- spec/cucumber/ast/scenario_spec.rb
|
|
377
|
+
- spec/cucumber/ast/step_collection_spec.rb
|
|
378
|
+
- spec/cucumber/ast/step_spec.rb
|
|
379
|
+
- spec/cucumber/ast/table_spec.rb
|
|
380
|
+
- spec/cucumber/ast/tags_spec.rb
|
|
287
381
|
- spec/cucumber/broadcaster_spec.rb
|
|
288
|
-
- spec/cucumber/
|
|
382
|
+
- spec/cucumber/cli/configuration_spec.rb
|
|
383
|
+
- spec/cucumber/cli/main_spec.rb
|
|
289
384
|
- spec/cucumber/core_ext/proc_spec.rb
|
|
290
385
|
- spec/cucumber/core_ext/string_spec.rb
|
|
291
|
-
- spec/cucumber/
|
|
292
|
-
- spec/cucumber/
|
|
293
|
-
- spec/cucumber/
|
|
294
|
-
- spec/cucumber/
|
|
295
|
-
- spec/cucumber/
|
|
296
|
-
- spec/cucumber/
|
|
386
|
+
- spec/cucumber/formatter/ansicolor_spec.rb
|
|
387
|
+
- spec/cucumber/formatter/color_io_spec.rb
|
|
388
|
+
- spec/cucumber/formatter/html/cucumber.css
|
|
389
|
+
- spec/cucumber/formatter/html/cucumber.js
|
|
390
|
+
- spec/cucumber/formatter/html/index.html
|
|
391
|
+
- spec/cucumber/formatter/html/jquery-1.3.min.js
|
|
392
|
+
- spec/cucumber/formatter/html/jquery.uitableedit.js
|
|
297
393
|
- spec/cucumber/formatters/profile_formatter_spec.rb
|
|
298
|
-
- spec/cucumber/
|
|
299
|
-
- spec/cucumber/
|
|
394
|
+
- spec/cucumber/parser/feature_parser_spec.rb
|
|
395
|
+
- spec/cucumber/parser/table_parser_spec.rb
|
|
300
396
|
- spec/cucumber/rails/stubs/mini_rails.rb
|
|
301
397
|
- spec/cucumber/rails/stubs/test_help.rb
|
|
302
398
|
- spec/cucumber/rails/world_spec.rb
|
|
303
399
|
- spec/cucumber/sell_cucumbers.feature
|
|
400
|
+
- spec/cucumber/step_definition_spec.rb
|
|
304
401
|
- spec/cucumber/step_mother_spec.rb
|
|
305
|
-
- spec/cucumber/tree/feature_spec.rb
|
|
306
|
-
- spec/cucumber/tree/row_scenario_spec.rb
|
|
307
|
-
- spec/cucumber/tree/scenario_spec.rb
|
|
308
|
-
- spec/cucumber/tree/step_spec.rb
|
|
309
402
|
- spec/cucumber/treetop_parser/empty_feature.feature
|
|
310
403
|
- spec/cucumber/treetop_parser/empty_scenario.feature
|
|
311
|
-
- spec/cucumber/treetop_parser/
|
|
404
|
+
- spec/cucumber/treetop_parser/empty_scenario_outline.feature
|
|
312
405
|
- spec/cucumber/treetop_parser/fit_scenario.feature
|
|
313
406
|
- spec/cucumber/treetop_parser/given_scenario.feature
|
|
407
|
+
- spec/cucumber/treetop_parser/invalid_scenario_outlines.feature
|
|
314
408
|
- spec/cucumber/treetop_parser/multiline_steps.feature
|
|
315
409
|
- spec/cucumber/treetop_parser/multiple_tables.feature
|
|
410
|
+
- spec/cucumber/treetop_parser/scenario_outline.feature
|
|
316
411
|
- spec/cucumber/treetop_parser/spaces.feature
|
|
317
412
|
- spec/cucumber/treetop_parser/test_dos.feature
|
|
318
413
|
- spec/cucumber/treetop_parser/with_comments.feature
|
|
414
|
+
- spec/cucumber/treetop_parser/with_tags.feature
|
|
415
|
+
- spec/cucumber/world/pending_spec.rb
|
|
319
416
|
- spec/spec.opts
|
|
320
417
|
- spec/spec_helper.rb
|
|
321
418
|
has_rdoc: true
|
|
322
|
-
homepage: http://
|
|
419
|
+
homepage: http://cukes.info
|
|
323
420
|
post_install_message:
|
|
324
421
|
rdoc_options:
|
|
325
422
|
- --main
|
|
@@ -341,7 +438,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
341
438
|
requirements: []
|
|
342
439
|
|
|
343
440
|
rubyforge_project: rspec
|
|
344
|
-
rubygems_version: 1.
|
|
441
|
+
rubygems_version: 1.3.1
|
|
345
442
|
signing_key:
|
|
346
443
|
specification_version: 2
|
|
347
444
|
summary: Executable Feature scenarios
|
data/TODO.txt
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
== FEATURES/PROBLEMS:
|
|
2
|
-
|
|
3
|
-
* TODO: OK Refactor: Extract explicit node classes with RDoc (for better API doc)
|
|
4
|
-
* TODO: OK Get rid of the compile method. Compile the parser in Rake.
|
|
5
|
-
* TODO: OK Make grammar support \r\n, \r and \n (Add some fixture features for that)
|
|
6
|
-
* TODO: OK Make grammar support indentation
|
|
7
|
-
* TODO: OK Make grammar be totally relaxed about narrative
|
|
8
|
-
* TODO: OK Add a yaml file for different languages
|
|
9
|
-
* TODO: OK Custom nodes for the syntax tree
|
|
10
|
-
* TODO: OK Actually execute the features
|
|
11
|
-
* TODO: Make rake run specs by default
|
|
12
|
-
* TODO: OK Make it work with pure ruby regexen
|
|
13
|
-
* TODO: OK Make it work with string steps
|
|
14
|
-
* TODO: bin/cucumber --require [dir|file|glob]* --language no --format [file]*
|
|
15
|
-
* TODO: OK Pending steps shold print a block of code that can be pasted into code
|
|
16
|
-
* TODO: cucumber --where "Some text from a step" that prints "__FILE__:__LINE__ (STEP PATTERN)"
|
|
17
|
-
* TODO: Customisable trace output (like javascriptlint)
|
|
18
|
-
* TODO: Experiment: Make $variables become @variables
|
|
19
|
-
* TODO: OK GivenScenario
|
|
20
|
-
* TODO: OK PureRuby
|
|
21
|
-
* Make two trees include accept mixin
|
|
22
|
-
* TODO: Call steps from steps
|
|
23
|
-
* TODO: i18n in ruby too
|
|
24
|
-
* TODO: Don't load any treetop files if no .feature files are found
|
|
25
|
-
* TODO: Summary prints execution time
|
|
26
|
-
* TODO: --nocolor option
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
require 'cucumber/cli' # Needed in order to run the feature with ruby
|
|
2
|
-
|
|
3
|
-
Feature %|Addition
|
|
4
|
-
In order to avoid silly mistakes
|
|
5
|
-
As a math idiot
|
|
6
|
-
I want to be told the sum of two numbers| do
|
|
7
|
-
|
|
8
|
-
Scenario "Add two numbers" do
|
|
9
|
-
Given "I have entered 50 into the calculator"
|
|
10
|
-
And "I have entered 70 into the calculator"
|
|
11
|
-
When "I add"
|
|
12
|
-
Then "the result should be 120 on the screen"
|
|
13
|
-
And "the result class should be Fixnum"
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
Table do |t|
|
|
17
|
-
t | "input_1" | "input_2" | "output" | "class" | t
|
|
18
|
-
# This is kind of dumb - but it illustrates how scenarios can be "generated" in code.
|
|
19
|
-
10.times do |n|
|
|
20
|
-
t | n | n*2 | n*3 | Fixnum | t
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
require 'spec'
|
|
2
|
-
|
|
3
|
-
class Calculator
|
|
4
|
-
def push(n)
|
|
5
|
-
@args ||= []
|
|
6
|
-
@args << n
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def add
|
|
10
|
-
@args.inject(0){|n,sum| sum+=n}
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def divide
|
|
14
|
-
@args[0].to_f / @args[1].to_f
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
Before do
|
|
19
|
-
@calc = Calculator.new
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
After do
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
Given /I have entered (\d+) into the calculator/ do |n|
|
|
26
|
-
@calc.push n.to_i
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
When 'I add' do
|
|
30
|
-
@result = @calc.add
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
When 'I divide' do
|
|
34
|
-
@result = @calc.divide
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
Then /the result should be (\d*) on the screen/ do |result|
|
|
38
|
-
@result.should == result.to_i
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
Then /the result class should be (\w*)/ do |class_name|
|
|
42
|
-
@result.class.name.should == class_name
|
|
43
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Feature: Hello
|
|
2
|
-
In order to have more friends
|
|
3
|
-
I want to say hello
|
|
4
|
-
|
|
5
|
-
Scenario: Personal greeting
|
|
6
|
-
Given my name is Aslak
|
|
7
|
-
When I greet David
|
|
8
|
-
Then he should hear Hi, David. I'm Aslak.
|
|
9
|
-
And I should remember David as a friend
|
|
10
|
-
And I should get David's phone number
|
|
11
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
require 'spec' # so we can call .should
|
|
2
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../src') # so the jar is found
|
|
3
|
-
require 'dotnet'
|
|
4
|
-
loadLibrary 'Cucumber.Demo'
|
|
5
|
-
|
|
6
|
-
Given /my name is (\w+)/ do |name|
|
|
7
|
-
@hello = Hello.new # A .net object
|
|
8
|
-
@name = name
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
When /I greet (.*)/ do |someone|
|
|
12
|
-
@greeting = @hello.greet(someone, @name)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
Then /he should hear (.*)\./ do |message|
|
|
16
|
-
@greeting.should == message
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
Then /I should remember (\w+) as a friend/ do |name|
|
|
20
|
-
@hello.isFriend(name).should == true
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
Then /I should get (\w+)'s phone number/ do |name|
|
|
24
|
-
@hello.getPhoneNumber(name).should_not == nil
|
|
25
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
require 'spec'
|
|
2
|
-
require 'dotnet'
|
|
3
|
-
|
|
4
|
-
Given /I have an empty set/ do
|
|
5
|
-
@set = System.Collections.ArrayList.new
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
When /I add (\w+)/ do |s|
|
|
9
|
-
@set.add(s)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
Then /the contents should be (.*)/ do |s|
|
|
13
|
-
@set.to_a.join(" ").should == s
|
|
14
|
-
end
|
data/examples/cs/src/Hello.cs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
using System;
|
|
2
|
-
|
|
3
|
-
namespace Cucumber.Demo {
|
|
4
|
-
public class Hello {
|
|
5
|
-
public string Greet(string who, string from) {
|
|
6
|
-
return "Hi, " + who + ". I'm " + from;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
public bool IsFriend(string who) {
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public string GetPhoneNumber(string who) {
|
|
14
|
-
return "99999";
|
|
15
|
-
//throw new Exception("My phone is secret!");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|