hiptest-publisher-fork 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +295 -0
- data/LICENSE +21 -0
- data/README.md +265 -0
- data/bin/hiptest-publisher +47 -0
- data/config/i18n-tasks.yml +137 -0
- data/config/locales/en.yml +250 -0
- data/lib/config/behat.conf +44 -0
- data/lib/config/behave.conf +40 -0
- data/lib/config/csharp-nunit.conf +15 -0
- data/lib/config/cucumber-groovy.conf +40 -0
- data/lib/config/cucumber-java.conf +24 -0
- data/lib/config/cucumber-javascript.conf +23 -0
- data/lib/config/cucumber-ruby.conf +22 -0
- data/lib/config/cucumber-typescript.conf +41 -0
- data/lib/config/cucumber_legacy-groovy.conf +40 -0
- data/lib/config/cucumber_legacy-java.conf +24 -0
- data/lib/config/cucumber_legacy-typescript.conf +41 -0
- data/lib/config/groovy-spock.conf +25 -0
- data/lib/config/java-espresso.conf +15 -0
- data/lib/config/java-junit.conf +21 -0
- data/lib/config/java-testng.conf +15 -0
- data/lib/config/javascript-codeceptjs.conf +23 -0
- data/lib/config/javascript-jasmine.conf +12 -0
- data/lib/config/javascript-mocha.conf +12 -0
- data/lib/config/javascript-protractor.conf +12 -0
- data/lib/config/javascript-qunit.conf +12 -0
- data/lib/config/jbehave.conf +24 -0
- data/lib/config/php-phpunit.conf +14 -0
- data/lib/config/python-unittest.conf +13 -0
- data/lib/config/robotframework.conf +13 -0
- data/lib/config/ruby-minitest.conf +11 -0
- data/lib/config/ruby-rspec.conf +11 -0
- data/lib/config/seleniumide.conf +12 -0
- data/lib/config/specflow.conf +25 -0
- data/lib/config/swift-xctest.conf +18 -0
- data/lib/hiptest-publisher/cli_options_checker.rb +270 -0
- data/lib/hiptest-publisher/client.rb +326 -0
- data/lib/hiptest-publisher/export_cache.rb +85 -0
- data/lib/hiptest-publisher/file_writer.rb +30 -0
- data/lib/hiptest-publisher/formatters/console_formatter.rb +101 -0
- data/lib/hiptest-publisher/formatters/diff_displayer.rb +173 -0
- data/lib/hiptest-publisher/formatters/reporter.rb +74 -0
- data/lib/hiptest-publisher/handlebars_helper.rb +314 -0
- data/lib/hiptest-publisher/i18n.rb +5 -0
- data/lib/hiptest-publisher/indexers/actionword_indexer.rb +32 -0
- data/lib/hiptest-publisher/indexers/library_actionword_indexer.rb +32 -0
- data/lib/hiptest-publisher/node_modifiers/actionword_uniq_renamer.rb +39 -0
- data/lib/hiptest-publisher/node_modifiers/add_all.rb +21 -0
- data/lib/hiptest-publisher/node_modifiers/call_arguments_adder.rb +46 -0
- data/lib/hiptest-publisher/node_modifiers/datatable_fixer.rb +32 -0
- data/lib/hiptest-publisher/node_modifiers/gherkin_adder.rb +252 -0
- data/lib/hiptest-publisher/node_modifiers/items_orderer.rb +33 -0
- data/lib/hiptest-publisher/node_modifiers/parameter_type_adder.rb +141 -0
- data/lib/hiptest-publisher/node_modifiers/parent_adder.rb +18 -0
- data/lib/hiptest-publisher/nodes.rb +601 -0
- data/lib/hiptest-publisher/nodes_walker.rb +34 -0
- data/lib/hiptest-publisher/options_parser.rb +826 -0
- data/lib/hiptest-publisher/project_grapher.rb +94 -0
- data/lib/hiptest-publisher/render_context_maker.rb +194 -0
- data/lib/hiptest-publisher/renderer.rb +52 -0
- data/lib/hiptest-publisher/renderer_addons/behave_addon.rb +23 -0
- data/lib/hiptest-publisher/renderer_addons/gherkin_addon.rb +59 -0
- data/lib/hiptest-publisher/renderer_addons/groovy_spock_addon.rb +34 -0
- data/lib/hiptest-publisher/renderer_addons/robot_framework_addon.rb +42 -0
- data/lib/hiptest-publisher/renderer_addons.rb +4 -0
- data/lib/hiptest-publisher/signature_differ.rb +105 -0
- data/lib/hiptest-publisher/signature_exporter.rb +56 -0
- data/lib/hiptest-publisher/string.rb +76 -0
- data/lib/hiptest-publisher/utils.rb +39 -0
- data/lib/hiptest-publisher/version_checker.rb +41 -0
- data/lib/hiptest-publisher/xml_parser.rb +407 -0
- data/lib/hiptest-publisher.rb +261 -0
- data/lib/templates/behat/actionword.hbs +8 -0
- data/lib/templates/behat/actionwords/parameter.hbs +1 -0
- data/lib/templates/behat/actionwords.hbs +16 -0
- data/lib/templates/behat/library.hbs +16 -0
- data/lib/templates/behat/libraryactionword.hbs +8 -0
- data/lib/templates/behat/parameter.hbs +1 -0
- data/lib/templates/behave/actionword.hbs +4 -0
- data/lib/templates/behave/actionwords.hbs +12 -0
- data/lib/templates/behave/library.hbs +7 -0
- data/lib/templates/behave/libraryactionword.hbs +4 -0
- data/lib/templates/behave/nullliteral.hbs +1 -0
- data/lib/templates/common/_gherkin_pattern.hbs +1 -0
- data/lib/templates/common/_gherkin_typed_pattern.hbs +1 -0
- data/lib/templates/common/booleanliteral.hbs +1 -0
- data/lib/templates/common/dataset.hbs +0 -0
- data/lib/templates/common/datatable.hbs +3 -0
- data/lib/templates/common/empty.hbs +0 -0
- data/lib/templates/common/nullliteral.hbs +1 -0
- data/lib/templates/common/numericliteral.hbs +1 -0
- data/lib/templates/common/stringliteral.hbs +1 -0
- data/lib/templates/common/symbol.hbs +1 -0
- data/lib/templates/common/unaryexpression.hbs +1 -0
- data/lib/templates/common/variable.hbs +1 -0
- data/lib/templates/csharp/_body.hbs +5 -0
- data/lib/templates/csharp/_item_as_function.hbs +8 -0
- data/lib/templates/csharp/_scenario.hbs +8 -0
- data/lib/templates/csharp/actionword.hbs +1 -0
- data/lib/templates/csharp/actionwords.hbs +10 -0
- data/lib/templates/csharp/argument.hbs +1 -0
- data/lib/templates/csharp/assign.hbs +1 -0
- data/lib/templates/csharp/binaryexpression.hbs +1 -0
- data/lib/templates/csharp/call.hbs +2 -0
- data/lib/templates/csharp/dataset.hbs +4 -0
- data/lib/templates/csharp/dict.hbs +1 -0
- data/lib/templates/csharp/field.hbs +1 -0
- data/lib/templates/csharp/folder.hbs +22 -0
- data/lib/templates/csharp/ifthen.hbs +7 -0
- data/lib/templates/csharp/index.hbs +1 -0
- data/lib/templates/csharp/list.hbs +1 -0
- data/lib/templates/csharp/nullliteral.hbs +1 -0
- data/lib/templates/csharp/parameter.hbs +1 -0
- data/lib/templates/csharp/parenthesis.hbs +1 -0
- data/lib/templates/csharp/property.hbs +1 -0
- data/lib/templates/csharp/scenario.hbs +1 -0
- data/lib/templates/csharp/scenarios.hbs +20 -0
- data/lib/templates/csharp/single_scenario.hbs +16 -0
- data/lib/templates/csharp/single_test.hbs +15 -0
- data/lib/templates/csharp/step.hbs +1 -0
- data/lib/templates/csharp/stringliteral.hbs +1 -0
- data/lib/templates/csharp/tag.hbs +1 -0
- data/lib/templates/csharp/template.hbs +1 -0
- data/lib/templates/csharp/test.hbs +1 -0
- data/lib/templates/csharp/tests.hbs +15 -0
- data/lib/templates/csharp/variable.hbs +1 -0
- data/lib/templates/csharp/while.hbs +4 -0
- data/lib/templates/cucumber/actionword.hbs +5 -0
- data/lib/templates/cucumber/actionwords.hbs +5 -0
- data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -0
- data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +5 -0
- data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +11 -0
- data/lib/templates/cucumber/groovy/step-definitions/library.hbs +11 -0
- data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +5 -0
- data/lib/templates/cucumber/groovy/step-definitions/parameter.hbs +1 -0
- data/lib/templates/cucumber/java/actionword.hbs +6 -0
- data/lib/templates/cucumber/java/actionwords/parameter.hbs +1 -0
- data/lib/templates/cucumber/java/actionwords.hbs +12 -0
- data/lib/templates/cucumber/java/parameter.hbs +1 -0
- data/lib/templates/cucumber/javascript/_after_hook.hbs +4 -0
- data/lib/templates/cucumber/javascript/_before_hook.hbs +4 -0
- data/lib/templates/cucumber/javascript/actionword.hbs +6 -0
- data/lib/templates/cucumber/javascript/actionwords.hbs +8 -0
- data/lib/templates/cucumber/parameter.hbs +1 -0
- data/lib/templates/cucumber/typescript/_after_hook.hbs +4 -0
- data/lib/templates/cucumber/typescript/_before_hook.hbs +4 -0
- data/lib/templates/cucumber/typescript/actionword.hbs +5 -0
- data/lib/templates/cucumber/typescript/actionwords.hbs +10 -0
- data/lib/templates/cucumber/typescript/library.hbs +12 -0
- data/lib/templates/cucumber/typescript/libraryactionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/actionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/actionwords.hbs +10 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/library.hbs +10 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/libraryactionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/java/actionword.hbs +6 -0
- data/lib/templates/cucumber_legacy/java/actionwords.hbs +12 -0
- data/lib/templates/cucumber_legacy/typescript/actionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/typescript/libraryactionword.hbs +5 -0
- data/lib/templates/gherkin/_call.hbs +5 -0
- data/lib/templates/gherkin/_gherkin_text.hbs +1 -0
- data/lib/templates/gherkin/_scenario.hbs +18 -0
- data/lib/templates/gherkin/_scenario_outline_title.hbs +1 -0
- data/lib/templates/gherkin/argument.hbs +1 -0
- data/lib/templates/gherkin/call.hbs +1 -0
- data/lib/templates/gherkin/dataset.hbs +1 -0
- data/lib/templates/gherkin/datatable.hbs +2 -0
- data/lib/templates/gherkin/folder.hbs +10 -0
- data/lib/templates/gherkin/inlined_uids/_scenario_outline_title.hbs +1 -0
- data/lib/templates/gherkin/java/single_scenario.hbs +1 -0
- data/lib/templates/gherkin/parameter.hbs +1 -0
- data/lib/templates/gherkin/scenarios.hbs +3 -0
- data/lib/templates/gherkin/single_scenario.hbs +1 -0
- data/lib/templates/gherkin/single_test.hbs +3 -0
- data/lib/templates/gherkin/step.hbs +1 -0
- data/lib/templates/gherkin/stringliteral.hbs +1 -0
- data/lib/templates/gherkin/tag.hbs +1 -0
- data/lib/templates/gherkin/template.hbs +1 -0
- data/lib/templates/groovy/_body.hbs +8 -0
- data/lib/templates/groovy/_desc.hbs +5 -0
- data/lib/templates/groovy/_scenario.hbs +10 -0
- data/lib/templates/groovy/_steps.hbs +4 -0
- data/lib/templates/groovy/_test.hbs +4 -0
- data/lib/templates/groovy/actionword.hbs +2 -0
- data/lib/templates/groovy/actionwords.hbs +7 -0
- data/lib/templates/groovy/assign.hbs +1 -0
- data/lib/templates/groovy/call.hbs +2 -0
- data/lib/templates/groovy/dataset.hbs +1 -0
- data/lib/templates/groovy/datatable.hbs +2 -0
- data/lib/templates/groovy/dict.hbs +1 -0
- data/lib/templates/groovy/folder.hbs +18 -0
- data/lib/templates/groovy/index.hbs +1 -0
- data/lib/templates/groovy/libraries.hbs +9 -0
- data/lib/templates/groovy/library.hbs +8 -0
- data/lib/templates/groovy/libraryactionword.hbs +2 -0
- data/lib/templates/groovy/list.hbs +1 -0
- data/lib/templates/groovy/nullliteral.hbs +1 -0
- data/lib/templates/groovy/parameter.hbs +1 -0
- data/lib/templates/groovy/property.hbs +1 -0
- data/lib/templates/groovy/scenario.hbs +1 -0
- data/lib/templates/groovy/scenarios.hbs +10 -0
- data/lib/templates/groovy/single_scenario.hbs +9 -0
- data/lib/templates/groovy/single_test.hbs +10 -0
- data/lib/templates/groovy/template.hbs +1 -0
- data/lib/templates/groovy/test.hbs +1 -0
- data/lib/templates/groovy/tests.hbs +10 -0
- data/lib/templates/java/_body.hbs +5 -0
- data/lib/templates/java/_item_as_function.hbs +8 -0
- data/lib/templates/java/_scenario.hbs +7 -0
- data/lib/templates/java/actionword.hbs +1 -0
- data/lib/templates/java/actionwords.hbs +8 -0
- data/lib/templates/java/argument.hbs +1 -0
- data/lib/templates/java/assign.hbs +1 -0
- data/lib/templates/java/binaryexpression.hbs +1 -0
- data/lib/templates/java/call.hbs +2 -0
- data/lib/templates/java/dataset.hbs +3 -0
- data/lib/templates/java/dict.hbs +1 -0
- data/lib/templates/java/espresso/_scenario.hbs +8 -0
- data/lib/templates/java/espresso/dataset.hbs +4 -0
- data/lib/templates/java/espresso/folder.hbs +29 -0
- data/lib/templates/java/espresso/scenarios.hbs +23 -0
- data/lib/templates/java/espresso/single_scenario.hbs +24 -0
- data/lib/templates/java/espresso/single_test.hbs +22 -0
- data/lib/templates/java/espresso/tests.hbs +23 -0
- data/lib/templates/java/field.hbs +1 -0
- data/lib/templates/java/folder.hbs +18 -0
- data/lib/templates/java/ifthen.hbs +7 -0
- data/lib/templates/java/index.hbs +1 -0
- data/lib/templates/java/libraries.hbs +9 -0
- data/lib/templates/java/library.hbs +7 -0
- data/lib/templates/java/libraryactionword.hbs +1 -0
- data/lib/templates/java/list.hbs +1 -0
- data/lib/templates/java/nullliteral.hbs +1 -0
- data/lib/templates/java/parameter.hbs +1 -0
- data/lib/templates/java/parenthesis.hbs +1 -0
- data/lib/templates/java/property.hbs +1 -0
- data/lib/templates/java/scenario.hbs +1 -0
- data/lib/templates/java/scenarios.hbs +11 -0
- data/lib/templates/java/single_scenario.hbs +12 -0
- data/lib/templates/java/single_test.hbs +11 -0
- data/lib/templates/java/step.hbs +1 -0
- data/lib/templates/java/stringliteral.hbs +1 -0
- data/lib/templates/java/tag.hbs +1 -0
- data/lib/templates/java/template.hbs +1 -0
- data/lib/templates/java/test.hbs +1 -0
- data/lib/templates/java/testng/_scenario.hbs +8 -0
- data/lib/templates/java/testng/dataset.hbs +4 -0
- data/lib/templates/java/testng/folder.hbs +19 -0
- data/lib/templates/java/testng/scenarios.hbs +16 -0
- data/lib/templates/java/testng/single_scenario.hbs +12 -0
- data/lib/templates/java/testng/single_test.hbs +11 -0
- data/lib/templates/java/testng/tests.hbs +16 -0
- data/lib/templates/java/tests.hbs +11 -0
- data/lib/templates/java/variable.hbs +1 -0
- data/lib/templates/java/while.hbs +4 -0
- data/lib/templates/javascript/_body.hbs +10 -0
- data/lib/templates/javascript/_item_as_function.hbs +3 -0
- data/lib/templates/javascript/_item_as_hash_key.hbs +3 -0
- data/lib/templates/javascript/_module_declaration.hbs +5 -0
- data/lib/templates/javascript/_scenario.hbs +4 -0
- data/lib/templates/javascript/actionword.hbs +1 -0
- data/lib/templates/javascript/actionwords.hbs +4 -0
- data/lib/templates/javascript/argument.hbs +1 -0
- data/lib/templates/javascript/assign.hbs +1 -0
- data/lib/templates/javascript/binaryexpression.hbs +1 -0
- data/lib/templates/javascript/call.hbs +2 -0
- data/lib/templates/javascript/codeceptjs/actionword.hbs +5 -0
- data/lib/templates/javascript/codeceptjs/actionwords.hbs +9 -0
- data/lib/templates/javascript/dataset.hbs +3 -0
- data/lib/templates/javascript/dict.hbs +1 -0
- data/lib/templates/javascript/es6/actionwords.hbs +4 -0
- data/lib/templates/javascript/field.hbs +1 -0
- data/lib/templates/javascript/folder.hbs +14 -0
- data/lib/templates/javascript/ifthen.hbs +7 -0
- data/lib/templates/javascript/index.hbs +1 -0
- data/lib/templates/javascript/jasmine/_before_each.hbs +3 -0
- data/lib/templates/javascript/jasmine/_scenario.hbs +8 -0
- data/lib/templates/javascript/jasmine/dataset.hbs +3 -0
- data/lib/templates/javascript/jasmine/folder.hbs +11 -0
- data/lib/templates/javascript/jasmine/scenarios.hbs +8 -0
- data/lib/templates/javascript/jasmine/single_scenario.hbs +6 -0
- data/lib/templates/javascript/jasmine/single_test.hbs +6 -0
- data/lib/templates/javascript/jasmine/tests.hbs +8 -0
- data/lib/templates/javascript/list.hbs +1 -0
- data/lib/templates/javascript/mocha/_before_each.hbs +4 -0
- data/lib/templates/javascript/mocha/folder.hbs +11 -0
- data/lib/templates/javascript/nullliteral.hbs +1 -0
- data/lib/templates/javascript/parameter.hbs +1 -0
- data/lib/templates/javascript/parenthesis.hbs +1 -0
- data/lib/templates/javascript/project.hbs +2 -0
- data/lib/templates/javascript/property.hbs +1 -0
- data/lib/templates/javascript/scenario.hbs +1 -0
- data/lib/templates/javascript/scenarios.hbs +8 -0
- data/lib/templates/javascript/single_scenario.hbs +6 -0
- data/lib/templates/javascript/single_test.hbs +6 -0
- data/lib/templates/javascript/step.hbs +1 -0
- data/lib/templates/javascript/tag.hbs +1 -0
- data/lib/templates/javascript/template.hbs +1 -0
- data/lib/templates/javascript/test.hbs +1 -0
- data/lib/templates/javascript/tests.hbs +8 -0
- data/lib/templates/javascript/while.hbs +5 -0
- data/lib/templates/jbehave/_scenario.hbs +9 -0
- data/lib/templates/jbehave/actionwords/parameter.hbs +1 -0
- data/lib/templates/jbehave/call.hbs +5 -0
- data/lib/templates/jbehave/folder.hbs +16 -0
- data/lib/templates/jbehave/single_test.hbs +3 -0
- data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -0
- data/lib/templates/jbehave/steps/actionword.hbs +6 -0
- data/lib/templates/jbehave/steps/actionwords.hbs +18 -0
- data/lib/templates/php/_body.hbs +9 -0
- data/lib/templates/php/_item_as_function.hbs +3 -0
- data/lib/templates/php/_scenario.hbs +4 -0
- data/lib/templates/php/_setup.hbs +4 -0
- data/lib/templates/php/actionword.hbs +1 -0
- data/lib/templates/php/actionwords.hbs +9 -0
- data/lib/templates/php/argument.hbs +1 -0
- data/lib/templates/php/assign.hbs +1 -0
- data/lib/templates/php/binaryexpression.hbs +1 -0
- data/lib/templates/php/call.hbs +2 -0
- data/lib/templates/php/dataset.hbs +3 -0
- data/lib/templates/php/dict.hbs +1 -0
- data/lib/templates/php/field.hbs +1 -0
- data/lib/templates/php/folder.hbs +17 -0
- data/lib/templates/php/ifthen.hbs +7 -0
- data/lib/templates/php/index.hbs +1 -0
- data/lib/templates/php/libraries.hbs +11 -0
- data/lib/templates/php/library.hbs +20 -0
- data/lib/templates/php/libraryactionword.hbs +1 -0
- data/lib/templates/php/list.hbs +1 -0
- data/lib/templates/php/nullliteral.hbs +1 -0
- data/lib/templates/php/parameter.hbs +1 -0
- data/lib/templates/php/parenthesis.hbs +1 -0
- data/lib/templates/php/project.hbs +2 -0
- data/lib/templates/php/property.hbs +1 -0
- data/lib/templates/php/scenario.hbs +1 -0
- data/lib/templates/php/scenarios.hbs +13 -0
- data/lib/templates/php/single_scenario.hbs +11 -0
- data/lib/templates/php/single_test.hbs +11 -0
- data/lib/templates/php/step.hbs +1 -0
- data/lib/templates/php/tag.hbs +1 -0
- data/lib/templates/php/template.hbs +1 -0
- data/lib/templates/php/test.hbs +1 -0
- data/lib/templates/php/tests.hbs +13 -0
- data/lib/templates/php/variable.hbs +1 -0
- data/lib/templates/php/while.hbs +5 -0
- data/lib/templates/python/_body.hbs +11 -0
- data/lib/templates/python/_item_as_def.hbs +2 -0
- data/lib/templates/python/_parameters.hbs +1 -0
- data/lib/templates/python/_scenario.hbs +4 -0
- data/lib/templates/python/actionword.hbs +1 -0
- data/lib/templates/python/actionwords.hbs +12 -0
- data/lib/templates/python/argument.hbs +1 -0
- data/lib/templates/python/assign.hbs +1 -0
- data/lib/templates/python/binaryexpression.hbs +1 -0
- data/lib/templates/python/booleanliteral.hbs +1 -0
- data/lib/templates/python/call.hbs +2 -0
- data/lib/templates/python/dataset.hbs +2 -0
- data/lib/templates/python/dict.hbs +1 -0
- data/lib/templates/python/field.hbs +1 -0
- data/lib/templates/python/folder.hbs +12 -0
- data/lib/templates/python/ifthen.hbs +4 -0
- data/lib/templates/python/index.hbs +1 -0
- data/lib/templates/python/libraries.hbs +9 -0
- data/lib/templates/python/library.hbs +17 -0
- data/lib/templates/python/libraryactionword.hbs +1 -0
- data/lib/templates/python/list.hbs +1 -0
- data/lib/templates/python/nullliteral.hbs +1 -0
- data/lib/templates/python/parameter.hbs +1 -0
- data/lib/templates/python/parenthesis.hbs +1 -0
- data/lib/templates/python/project.hbs +2 -0
- data/lib/templates/python/property.hbs +1 -0
- data/lib/templates/python/scenario.hbs +1 -0
- data/lib/templates/python/scenarios.hbs +11 -0
- data/lib/templates/python/single_scenario.hbs +9 -0
- data/lib/templates/python/single_test.hbs +9 -0
- data/lib/templates/python/step.hbs +1 -0
- data/lib/templates/python/tag.hbs +1 -0
- data/lib/templates/python/template.hbs +1 -0
- data/lib/templates/python/test.hbs +1 -0
- data/lib/templates/python/tests.hbs +11 -0
- data/lib/templates/python/unittest/actionwords.hbs +9 -0
- data/lib/templates/python/while.hbs +4 -0
- data/lib/templates/robotframework/_keyword.hbs +1 -0
- data/lib/templates/robotframework/_keyword_body.hbs +4 -0
- data/lib/templates/robotframework/_scenario.hbs +12 -0
- data/lib/templates/robotframework/actionword.hbs +3 -0
- data/lib/templates/robotframework/actionwords.hbs +4 -0
- data/lib/templates/robotframework/argument.hbs +1 -0
- data/lib/templates/robotframework/call.hbs +1 -0
- data/lib/templates/robotframework/dataset.hbs +1 -0
- data/lib/templates/robotframework/datatable.hbs +2 -0
- data/lib/templates/robotframework/folder.hbs +35 -0
- data/lib/templates/robotframework/ifthen.hbs +1 -0
- data/lib/templates/robotframework/parameter.hbs +1 -0
- data/lib/templates/robotframework/property.hbs +1 -0
- data/lib/templates/robotframework/scenarios.hbs +25 -0
- data/lib/templates/robotframework/single_scenario.hbs +10 -0
- data/lib/templates/robotframework/single_test.hbs +10 -0
- data/lib/templates/robotframework/stringliteral.hbs +1 -0
- data/lib/templates/robotframework/template.hbs +1 -0
- data/lib/templates/robotframework/test.hbs +1 -0
- data/lib/templates/robotframework/tests.hbs +7 -0
- data/lib/templates/robotframework/variable.hbs +1 -0
- data/lib/templates/robotframework/while.hbs +1 -0
- data/lib/templates/ruby/_body.hbs +10 -0
- data/lib/templates/ruby/_item_as_def.hbs +3 -0
- data/lib/templates/ruby/_scenario.hbs +5 -0
- data/lib/templates/ruby/actionword.hbs +1 -0
- data/lib/templates/ruby/actionwords.hbs +6 -0
- data/lib/templates/ruby/argument.hbs +1 -0
- data/lib/templates/ruby/assign.hbs +1 -0
- data/lib/templates/ruby/binaryexpression.hbs +1 -0
- data/lib/templates/ruby/call.hbs +2 -0
- data/lib/templates/ruby/dataset.hbs +3 -0
- data/lib/templates/ruby/dict.hbs +1 -0
- data/lib/templates/ruby/field.hbs +1 -0
- data/lib/templates/ruby/folder.hbs +16 -0
- data/lib/templates/ruby/ifthen.hbs +7 -0
- data/lib/templates/ruby/index.hbs +1 -0
- data/lib/templates/ruby/list.hbs +1 -0
- data/lib/templates/ruby/minitest/_item_as_def.hbs +3 -0
- data/lib/templates/ruby/minitest/_scenario.hbs +4 -0
- data/lib/templates/ruby/minitest/dataset.hbs +3 -0
- data/lib/templates/ruby/minitest/folder.hbs +18 -0
- data/lib/templates/ruby/minitest/scenario.hbs +1 -0
- data/lib/templates/ruby/minitest/scenarios.hbs +13 -0
- data/lib/templates/ruby/minitest/single_scenario.hbs +11 -0
- data/lib/templates/ruby/minitest/single_test.hbs +11 -0
- data/lib/templates/ruby/minitest/test.hbs +1 -0
- data/lib/templates/ruby/minitest/tests.hbs +13 -0
- data/lib/templates/ruby/parameter.hbs +1 -0
- data/lib/templates/ruby/parenthesis.hbs +1 -0
- data/lib/templates/ruby/project.hbs +2 -0
- data/lib/templates/ruby/property.hbs +1 -0
- data/lib/templates/ruby/scenario.hbs +1 -0
- data/lib/templates/ruby/scenarios.hbs +12 -0
- data/lib/templates/ruby/single_scenario.hbs +11 -0
- data/lib/templates/ruby/single_test.hbs +11 -0
- data/lib/templates/ruby/step.hbs +1 -0
- data/lib/templates/ruby/symbol.hbs +1 -0
- data/lib/templates/ruby/tag.hbs +1 -0
- data/lib/templates/ruby/template.hbs +1 -0
- data/lib/templates/ruby/test.hbs +1 -0
- data/lib/templates/ruby/tests.hbs +12 -0
- data/lib/templates/ruby/while.hbs +5 -0
- data/lib/templates/seleniumide/argument.hbs +1 -0
- data/lib/templates/seleniumide/call.hbs +6 -0
- data/lib/templates/seleniumide/single_test.hbs +28 -0
- data/lib/templates/seleniumide/step.hbs +0 -0
- data/lib/templates/seleniumide/stringliteral.hbs +1 -0
- data/lib/templates/seleniumide/template.hbs +1 -0
- data/lib/templates/seleniumide/test.hbs +4 -0
- data/lib/templates/seleniumide/tests.hbs +19 -0
- data/lib/templates/specflow/actionword.hbs +6 -0
- data/lib/templates/specflow/actionwords/parameter.hbs +1 -0
- data/lib/templates/specflow/actionwords.hbs +14 -0
- data/lib/templates/specflow/gherkin/tag.hbs +1 -0
- data/lib/templates/specflow/parameter.hbs +1 -0
- data/lib/templates/swift/_body.hbs +11 -0
- data/lib/templates/swift/_item_as_def.hbs +5 -0
- data/lib/templates/swift/_scenario.hbs +7 -0
- data/lib/templates/swift/actionword.hbs +1 -0
- data/lib/templates/swift/actionwords.hbs +6 -0
- data/lib/templates/swift/argument.hbs +1 -0
- data/lib/templates/swift/assign.hbs +1 -0
- data/lib/templates/swift/binaryexpression.hbs +1 -0
- data/lib/templates/swift/call.hbs +2 -0
- data/lib/templates/swift/dataset.hbs +4 -0
- data/lib/templates/swift/dict.hbs +1 -0
- data/lib/templates/swift/field.hbs +1 -0
- data/lib/templates/swift/folder.hbs +23 -0
- data/lib/templates/swift/ifthen.hbs +7 -0
- data/lib/templates/swift/index.hbs +1 -0
- data/lib/templates/swift/list.hbs +1 -0
- data/lib/templates/swift/parameter.hbs +1 -0
- data/lib/templates/swift/parenthesis.hbs +1 -0
- data/lib/templates/swift/project.hbs +2 -0
- data/lib/templates/swift/property.hbs +1 -0
- data/lib/templates/swift/scenario.hbs +1 -0
- data/lib/templates/swift/scenarios.hbs +25 -0
- data/lib/templates/swift/single_scenario.hbs +24 -0
- data/lib/templates/swift/single_test.hbs +23 -0
- data/lib/templates/swift/step.hbs +1 -0
- data/lib/templates/swift/stringliteral.hbs +1 -0
- data/lib/templates/swift/symbol.hbs +1 -0
- data/lib/templates/swift/tag.hbs +1 -0
- data/lib/templates/swift/template.hbs +1 -0
- data/lib/templates/swift/test.hbs +1 -0
- data/lib/templates/swift/tests.hbs +25 -0
- data/lib/templates/swift/while.hbs +5 -0
- data/lib/templates/typescript/_item_as_function.hbs +3 -0
- data/lib/templates/typescript/actionword.hbs +1 -0
- data/lib/templates/typescript/actionwords.hbs +7 -0
- data/lib/templates/typescript/libraries.hbs +9 -0
- data/lib/templates/typescript/library.hbs +18 -0
- data/lib/templates/typescript/libraryactionword.hbs +1 -0
- data/lib/templates/typescript/parameter.hbs +1 -0
- metadata +783 -0
@@ -0,0 +1 @@
|
|
1
|
+
{{#comment '//'}}TODO: Implement {{{rendered_children.key}}}: {{{rendered_children.value}}}{{/comment}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}{{#if has_value?}}:{{{rendered_children.value}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#join treated_chunks ' + ' as |treated_chunk|}}{{#if treated_chunk.is_variable?}}String({{{treated_chunk.raw.children.name}}}){{else}}"{{{ escape_double_quotes treated_chunk.raw.children.value }}}"{{/if}}{{else}}""{{/join}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}
|
2
|
+
{{#if has_tags?}}Meta:
|
3
|
+
{{join rendered_children.tags ' '}}
|
4
|
+
{{/if}}{{#if has_description?}}{{description_with_annotations rendered_children.description}}
|
5
|
+
{{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
|
6
|
+
{{/each}}{{#if has_datasets?}}
|
7
|
+
Examples:
|
8
|
+
{{#if context.with_dataset_names}}| dataset name {{/if}}| {{ join rendered_children.parameters ' | ' }} |{{#if context.uids}} hiptest-uid |{{/if}}
|
9
|
+
{{{rendered_children.datatable}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#if is_datatable?}}ExamplesTable{{else}}{{#if is_bool?}}boolean{{else}}{{{ node.type }}}{{/if}}{{/if}} {{{ camelize_lower rendered_children.name }}}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{{{ rendered_children.name }}}
|
2
|
+
{{#if context.parent_folder_tags}}{{#if rendered_children.ancestor_tags}}Meta:
|
3
|
+
{{join rendered_children.ancestor_tags " "}}{{/if}}{{#if has_tags?}}{{#if rendered_children.ancestor_tags}} {{else}}Meta:
|
4
|
+
{{/if}}{{join rendered_children.tags " "}}
|
5
|
+
{{/if}}{{else}}Meta:
|
6
|
+
{{join rendered_children.tags " "}}
|
7
|
+
{{/if}}{{#if rendered_children.description}}
|
8
|
+
Narrative:
|
9
|
+
{{rendered_children.description}}{{/if}}
|
10
|
+
{{#unless is_empty?}}
|
11
|
+
Lifecycle:
|
12
|
+
Before:
|
13
|
+
Scope: SCENARIO
|
14
|
+
{{#each rendered_children.body as |step|}}{{{ step }}}
|
15
|
+
{{/each}}{{/unless}}{{#each rendered_children.scenarios as |scenario|}}
|
16
|
+
{{{scenario}}}{{/each}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#strip}}{{#join chunks context.parameter_delimiter as |treated_chunk|}}{{#if treated_chunk.is_parameter}}${{treated_chunk.name}}{{else}}{{treated_chunk.value}}{{/if}}{{/join}}{{#each extra_inlined_parameters as |param|}} {{context.parameter_delimiter}}${{param.name}}{{context.parameter_delimiter}}{{/each}}{{/strip}}{{#if has_free_text_parameter?}} """$freeText"""{{/if}}{{#if has_datatable_parameter?}} $datatable{{/if}}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
{{#if rendered_children.gherkin_annotation }}@{{{ rendered_children.gherkin_annotation }}}("{{#escape_backslashes_and_double_quotes}}{{> gherkin_pattern}}{{/escape_backslashes_and_double_quotes}}")
|
2
|
+
public void {{{camelize_lower rendered_children.name}}}({{{ join rendered_children.parameters_ordered_by_pattern ', '}}}) {{#curly}}{{#indent}}
|
3
|
+
{{{ context.call_prefix }}}.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}});
|
4
|
+
{{/indent}}
|
5
|
+
{{/curly}}
|
6
|
+
{{/if}}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
package {{{ context.package }}};
|
2
|
+
|
3
|
+
import org.jbehave.core.annotations.*;
|
4
|
+
import org.jbehave.core.model.ExamplesTable;
|
5
|
+
|
6
|
+
public class StepDefinitions {{#curly}}{{#indent}}
|
7
|
+
public Actionwords {{{ context.call_prefix }}};
|
8
|
+
|
9
|
+
@BeforeScenario
|
10
|
+
public void beforeEachScenario() {{#curly}}{{#indent}}
|
11
|
+
actionwords = new Actionwords();
|
12
|
+
{{/indent}}
|
13
|
+
{{/curly}}
|
14
|
+
|
15
|
+
{{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
|
16
|
+
{{/each}}
|
17
|
+
{{/indent}}
|
18
|
+
{{/curly}}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
{{#clear_empty_lines}}
|
2
|
+
{{#indent}}
|
3
|
+
{{#comment '//'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
|
+
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
|
+
{{/if}}{{/comment}}
|
6
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
7
|
+
{{/each}}{{#if has_step?}}
|
8
|
+
throw new Exception('Not implemented');{{/if}}{{/indent}}
|
9
|
+
{{/clear_empty_lines}}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
{{#if has_datasets?}}{{> item_as_function}}
|
2
|
+
{{{ rendered_children.datatable }}}{{else}}public function test{{{ camelize_upper rendered_children.name }}}{{#if rendered_children.uid}}Uid{{{camelize_upper rendered_children.uid}}}{{/if}}() {{#curly}}
|
3
|
+
{{> body}}
|
4
|
+
{{/curly}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_function }}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?php
|
2
|
+
{{#if uses_library?}}require_once('ActionwordLibrary.php');{{/if}}
|
3
|
+
|
4
|
+
class Actionwords {{#if uses_library?}}extends ActionwordLibrary {{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords as |actionword|}}
|
5
|
+
{{{actionword}}}
|
6
|
+
{{/each}}
|
7
|
+
{{/indent}}
|
8
|
+
{{/curly}}
|
9
|
+
?>
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{escape_new_line rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.to }}} = {{{ rendered_children.value }}};
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.left }}} {{{ rendered_children.operator }}} {{{ rendered_children.right }}}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
{{#if has_annotation? }}{{#comment '//'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
+
{{/if}}{{#if context.call_prefix}}{{{ context.call_prefix }}}->{{/if}}{{#if is_shared?}}get{{{camelize rendered_children.library_name}}}Library()->{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}});
|
@@ -0,0 +1,3 @@
|
|
1
|
+
public function test{{camelize_upper scenario_name}}{{{camelize_upper rendered_children.name}}}{{#if rendered_children.test_snapshot_uid}}Uid{{{camelize_upper rendered_children.test_snapshot_uid}}}{{/if}}() {{#curly}}
|
2
|
+
$this->{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', ' }}});
|
3
|
+
{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}->{{{ rendered_children.name }}}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?php
|
2
|
+
require_once(__DIR__.'{{{ relative_path 'Actionwords.php' '/'}}}');
|
3
|
+
|
4
|
+
class {{{ clear_extension context.filename }}} extends PHPUnit_Framework_TestCase {{#curly}}{{#indent}}
|
5
|
+
public $actionwords;
|
6
|
+
public function setUp() {{#curly}}{{#indent}}
|
7
|
+
$this->actionwords = new Actionwords();{{/indent}}
|
8
|
+
{{#unless is_empty?}}
|
9
|
+
{{>body}}
|
10
|
+
{{/unless}}{{/curly}}
|
11
|
+
|
12
|
+
{{#each rendered_children.scenarios as |scenario|}}{{scenario}}
|
13
|
+
|
14
|
+
{{/each}}
|
15
|
+
{{/indent}}
|
16
|
+
{{/curly}}
|
17
|
+
?>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
if ({{{ rendered_children.condition }}}) {{#curly}}
|
2
|
+
{{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}{{/each}}
|
3
|
+
{{/indent}}
|
4
|
+
{{#if has_else?}}} else {
|
5
|
+
{{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}{{/each}}
|
6
|
+
{{/indent}}
|
7
|
+
{{/if}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?php
|
2
|
+
{{#each library_names as |library_name|}}require_once('{{camelize library_name}}Library.php');
|
3
|
+
{{/each}}
|
4
|
+
class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names as |library_name|}}
|
5
|
+
public function get{{camelize library_name}}Library() {{#curly}}{{#indent}}
|
6
|
+
return {{camelize library_name}}Library::getInstance();
|
7
|
+
{{/indent}}
|
8
|
+
{{/curly}}
|
9
|
+
{{/each}}{{/indent}}
|
10
|
+
{{/curly}}
|
11
|
+
?>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?php
|
2
|
+
class {{camelize rendered_children.name}}Library {{#curly}}{{#indent}}
|
3
|
+
private static $_instance = null;
|
4
|
+
|
5
|
+
private function __construct(){{#curly}}{{/curly}}
|
6
|
+
|
7
|
+
public static function getInstance(){{#curly}}{{#indent}}
|
8
|
+
if (is_null(self::$_instance)) {{#curly}}{{#indent}}
|
9
|
+
self::$_instance = new {{camelize rendered_children.name}}Library();
|
10
|
+
{{/indent}}
|
11
|
+
{{/curly}}
|
12
|
+
return self::$_instance;
|
13
|
+
{{/indent}}
|
14
|
+
{{/curly}}
|
15
|
+
{{#each rendered_children.library_actionwords as |actionword|}}
|
16
|
+
{{{actionword}}}
|
17
|
+
{{/each}}
|
18
|
+
{{/indent}}
|
19
|
+
{{/curly}}
|
20
|
+
?>
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_function }}
|
@@ -0,0 +1 @@
|
|
1
|
+
[{{{ join rendered_children.items ', '}}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
NULL
|
@@ -0,0 +1 @@
|
|
1
|
+
${{{ underscore rendered_children.name }}}{{#if has_default_value?}} = {{{ rendered_children.default }}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
({{{ rendered_children.content }}})
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}} => {{{ rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?php
|
2
|
+
require_once('Actionwords.php');
|
3
|
+
|
4
|
+
class {{{ clear_extension context.filename }}} extends PHPUnit_Framework_TestCase {{#curly}}{{#indent}}
|
5
|
+
public $actionwords;
|
6
|
+
{{> setup}}
|
7
|
+
|
8
|
+
{{#each rendered_children.scenarios as |scenario|}}{{scenario}}
|
9
|
+
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
12
|
+
{{/curly}}
|
13
|
+
?>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?php
|
2
|
+
require_once(__DIR__.'{{{ relative_path 'Actionwords.php' '/'}}}');
|
3
|
+
|
4
|
+
class {{{ clear_extension context.filename }}} extends PHPUnit_Framework_TestCase {{#curly}}{{#indent}}
|
5
|
+
public $actionwords;
|
6
|
+
{{> setup}}
|
7
|
+
|
8
|
+
{{> scenario}}
|
9
|
+
{{/indent}}
|
10
|
+
{{/curly}}
|
11
|
+
?>
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#comment '//'}}TODO: Implement {{{rendered_children.key}}}: {{{rendered_children.value}}}{{/comment}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}{{#if has_value?}}:{{{rendered_children.value}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}{${{{camelize_lower treated_chunk.raw.children.name}}}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?php
|
2
|
+
require_once('Actionwords.php');
|
3
|
+
|
4
|
+
class {{{ clear_extension context.filename }}} extends PHPUnit_Framework_TestCase {{#curly}}{{#indent}}
|
5
|
+
public $actionwords;
|
6
|
+
{{> setup}}
|
7
|
+
|
8
|
+
{{#each rendered_children.tests as |test|}}{{{test}}}
|
9
|
+
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
12
|
+
{{/curly}}
|
13
|
+
?>
|
@@ -0,0 +1 @@
|
|
1
|
+
${{ underscore rendered_children.name }}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{{#clear_empty_lines}}
|
2
|
+
{{#indent}}
|
3
|
+
{{#comment '#'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
|
+
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
|
+
{{/if}}{{/comment}}
|
6
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
7
|
+
{{/each}}
|
8
|
+
{{#if has_step?}}raise NotImplementedError{{/if}}
|
9
|
+
{{#if is_empty?}}pass{{/if}}
|
10
|
+
{{/indent}}
|
11
|
+
{{/clear_empty_lines}}
|
@@ -0,0 +1 @@
|
|
1
|
+
self{{#if has_parameters?}}, {{{join rendered_children.parameters ', '}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_def}}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
{{#if uses_library?}}from steps.actionword_library import ActionwordLibrary{{/if}}
|
4
|
+
|
5
|
+
|
6
|
+
class Actionwords{{#if uses_library?}}(ActionwordLibrary){{/if}}:{{#indent}}
|
7
|
+
def __init__(self):{{#indent}}
|
8
|
+
pass{{/indent}}
|
9
|
+
|
10
|
+
{{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
|
11
|
+
{{/each}}
|
12
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#escape_new_line}}{{#trim_surrounding_characters "__"}}{{{ underscore rendered_children.name }}}{{/trim_surrounding_characters}} = {{{ rendered_children.value }}}{{/escape_new_line}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.to }}} = {{{ rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.left }}} {{{ rendered_children.operator }}} {{{ rendered_children.right }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{capitalize rendered_children.value }}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
{{#if has_annotation? }}{{#comment '#'}}{{{ rendered_children.gherkin_text }}}{{/comment}}
|
2
|
+
{{/if}}self.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{#if is_shared?}}get{{{camelize rendered_children.library_name}}}Library().{{/if}}{{{ underscore rendered_children.actionword }}}({{{ join rendered_children.all_arguments ', '}}})
|
@@ -0,0 +1,2 @@
|
|
1
|
+
def test_{{{ normalize scenario_name}}}_{{{ normalize_lower rendered_children.name}}}{{#if rendered_children.test_snapshot_uid}}_uid{{{ normalize rendered_children.test_snapshot_uid}}}{{/if}}(self):
|
2
|
+
self.{{{ underscore scenario_name }}}({{{ join rendered_children.arguments ', ' }}})
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}.{{{ rendered_children.name }}}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
import unittest
|
3
|
+
from actionwords import Actionwords
|
4
|
+
|
5
|
+
class Test{{{ camelize self_name }}}(unittest.TestCase):{{#indent}}
|
6
|
+
def setUp(self):{{#indent}}
|
7
|
+
self.actionwords = Actionwords(self){{/indent}}
|
8
|
+
{{#unless is_empty?}}{{> body}}
|
9
|
+
{{/unless}}
|
10
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
11
|
+
{{/each}}
|
12
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
{{#each library_names as |library_name|}}from steps.{{downcase library_name}}_library import {{camelize library_name}}Library
|
4
|
+
{{/each}}
|
5
|
+
|
6
|
+
class ActionwordLibrary:{{#indent}}{{#each library_names as |library_name|}}
|
7
|
+
def get{{camelize library_name}}Library(self):{{#indent}}
|
8
|
+
return {{camelize library_name}}Library(self){{/indent}}
|
9
|
+
{{/each}}{{/indent}}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
from behave import *
|
4
|
+
|
5
|
+
|
6
|
+
class {{capitalize rendered_children.name}}Library:{{#indent}}
|
7
|
+
__instance = None
|
8
|
+
|
9
|
+
def __new__(cls, context):{{#indent}}
|
10
|
+
if {{capitalize rendered_children.name}}Library.__instance is None{{#indent}}
|
11
|
+
{{capitalize rendered_children.name}}Library.__instance = object.__new__(cls){{/indent}}
|
12
|
+
|
13
|
+
return {{capitalize rendered_children.name}}Library.__instance{{/indent}}
|
14
|
+
|
15
|
+
{{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
|
16
|
+
{{/each}}
|
17
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> item_as_def}}
|
@@ -0,0 +1 @@
|
|
1
|
+
[{{{ join rendered_children.items ', '}}}]
|
@@ -0,0 +1 @@
|
|
1
|
+
None
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#trim_surrounding_characters "__"}}{{{ underscore rendered_children.name }}}{{/trim_surrounding_characters}}{{#if has_default_value?}} = {{{ rendered_children.default }}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
({{{ rendered_children.content }}})
|
@@ -0,0 +1 @@
|
|
1
|
+
'{{{ escape_single_quotes rendered_children.key }}}': {{{ rendered_children.value }}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
import unittest
|
3
|
+
from actionwords import Actionwords
|
4
|
+
|
5
|
+
class Test{{{ camelize self_name }}}(unittest.TestCase):
|
6
|
+
def setUp(self):
|
7
|
+
self.actionwords = Actionwords(self)
|
8
|
+
{{#indent}}
|
9
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#comment '#'}}TODO: Implement {{{ rendered_children.key }}}: {{{ rendered_children.value }}}{{/comment}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ rendered_children.key }}}{{#if has_value?}}:{{{rendered_children.value}}}{{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}%s{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}} % ({{{ join variable_names ', '}}}){{/if}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{> scenario}}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
import unittest
|
3
|
+
from actionwords import Actionwords
|
4
|
+
|
5
|
+
class Test{{{ camelize self_name }}}(unittest.TestCase):
|
6
|
+
def setUp(self):
|
7
|
+
self.actionwords = Actionwords(self)
|
8
|
+
{{#indent}}
|
9
|
+
{{#each rendered_children.tests as |test|}}{{{test}}}
|
10
|
+
{{/each}}
|
11
|
+
{{/indent}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{{ underscore rendered_children.name }}}{{#if rendered_children.uid}}_uid{{{ normalize rendered_children.uid}}}{{/if}}{{> keyword_body}}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{{#if has_datasets?}}
|
2
|
+
Test Template{{tab}}{{{ normalize_with_spaces rendered_children.name }}}
|
3
|
+
|
4
|
+
*** Test Cases ***{{#each node.children.parameters as |parameter|}}{{{ tab }}}{{{ parameter.children.name}}}{{/each}}
|
5
|
+
{{{ rendered_children.datatable }}}
|
6
|
+
|
7
|
+
*** Keywords ***
|
8
|
+
|
9
|
+
{{{normalize_with_spaces rendered_children.name }}}{{else}}
|
10
|
+
*** Test Cases ***
|
11
|
+
|
12
|
+
{{{normalize_with_spaces rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{normalize rendered_children.uid}}){{/if}}{{/if}}{{> keyword_body}}
|