hiptest-publisher 1.29.2 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +5 -5
  2. data/config/locales/en.yml +7 -0
  3. data/lib/config/swift-xctest.conf +18 -0
  4. data/lib/hiptest-publisher.rb +1 -3
  5. data/lib/hiptest-publisher/client.rb +26 -4
  6. data/lib/hiptest-publisher/export_cache.rb +85 -0
  7. data/lib/hiptest-publisher/formatters/reporter.rb +4 -0
  8. data/lib/hiptest-publisher/handlebars_helper.rb +13 -4
  9. data/lib/hiptest-publisher/options_parser.rb +6 -0
  10. data/lib/templates/behat/actionword.hbs +1 -1
  11. data/lib/templates/behat/actionwords.hbs +2 -2
  12. data/lib/templates/behat/library.hbs +2 -2
  13. data/lib/templates/behat/libraryactionword.hbs +1 -1
  14. data/lib/templates/behave/actionword.hbs +2 -2
  15. data/lib/templates/behave/actionwords.hbs +2 -2
  16. data/lib/templates/behave/library.hbs +2 -2
  17. data/lib/templates/behave/libraryactionword.hbs +2 -2
  18. data/lib/templates/common/_gherkin_pattern.hbs +1 -1
  19. data/lib/templates/common/datatable.hbs +2 -2
  20. data/lib/templates/csharp/_body.hbs +1 -1
  21. data/lib/templates/csharp/actionwords.hbs +2 -2
  22. data/lib/templates/csharp/folder.hbs +1 -1
  23. data/lib/templates/csharp/ifthen.hbs +2 -2
  24. data/lib/templates/csharp/scenarios.hbs +1 -1
  25. data/lib/templates/csharp/template.hbs +1 -1
  26. data/lib/templates/csharp/tests.hbs +1 -1
  27. data/lib/templates/csharp/while.hbs +1 -1
  28. data/lib/templates/cucumber/actionwords.hbs +1 -1
  29. data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -1
  30. data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +1 -1
  31. data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +1 -1
  32. data/lib/templates/cucumber/groovy/step-definitions/library.hbs +1 -1
  33. data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +1 -1
  34. data/lib/templates/cucumber/java/actionword.hbs +1 -1
  35. data/lib/templates/cucumber/java/actionwords.hbs +1 -1
  36. data/lib/templates/cucumber/javascript/actionword.hbs +1 -1
  37. data/lib/templates/cucumber/javascript/actionwords.hbs +1 -1
  38. data/lib/templates/cucumber/typescript/actionword.hbs +1 -1
  39. data/lib/templates/cucumber/typescript/actionwords.hbs +1 -1
  40. data/lib/templates/cucumber/typescript/library.hbs +1 -1
  41. data/lib/templates/cucumber/typescript/libraryactionword.hbs +1 -1
  42. data/lib/templates/gherkin/_gherkin_text.hbs +1 -1
  43. data/lib/templates/gherkin/_scenario.hbs +2 -2
  44. data/lib/templates/gherkin/datatable.hbs +1 -1
  45. data/lib/templates/gherkin/folder.hbs +3 -3
  46. data/lib/templates/gherkin/single_test.hbs +1 -1
  47. data/lib/templates/gherkin/template.hbs +1 -1
  48. data/lib/templates/groovy/_steps.hbs +1 -1
  49. data/lib/templates/groovy/actionwords.hbs +2 -2
  50. data/lib/templates/groovy/datatable.hbs +1 -1
  51. data/lib/templates/groovy/folder.hbs +2 -2
  52. data/lib/templates/groovy/libraries.hbs +3 -3
  53. data/lib/templates/groovy/library.hbs +2 -2
  54. data/lib/templates/groovy/scenarios.hbs +1 -1
  55. data/lib/templates/groovy/template.hbs +1 -1
  56. data/lib/templates/groovy/tests.hbs +1 -1
  57. data/lib/templates/java/_body.hbs +1 -1
  58. data/lib/templates/java/actionwords.hbs +2 -2
  59. data/lib/templates/java/espresso/folder.hbs +1 -1
  60. data/lib/templates/java/espresso/scenarios.hbs +1 -1
  61. data/lib/templates/java/espresso/tests.hbs +1 -1
  62. data/lib/templates/java/folder.hbs +1 -1
  63. data/lib/templates/java/ifthen.hbs +2 -2
  64. data/lib/templates/java/libraries.hbs +3 -3
  65. data/lib/templates/java/library.hbs +2 -2
  66. data/lib/templates/java/scenarios.hbs +1 -1
  67. data/lib/templates/java/template.hbs +1 -1
  68. data/lib/templates/java/testng/folder.hbs +1 -1
  69. data/lib/templates/java/testng/scenarios.hbs +1 -1
  70. data/lib/templates/java/testng/tests.hbs +1 -1
  71. data/lib/templates/java/tests.hbs +1 -1
  72. data/lib/templates/java/while.hbs +1 -1
  73. data/lib/templates/javascript/_body.hbs +2 -2
  74. data/lib/templates/javascript/actionwords.hbs +2 -2
  75. data/lib/templates/javascript/codeceptjs/actionword.hbs +1 -1
  76. data/lib/templates/javascript/codeceptjs/actionwords.hbs +1 -1
  77. data/lib/templates/javascript/es6/actionwords.hbs +2 -2
  78. data/lib/templates/javascript/folder.hbs +1 -1
  79. data/lib/templates/javascript/ifthen.hbs +2 -2
  80. data/lib/templates/javascript/jasmine/folder.hbs +1 -1
  81. data/lib/templates/javascript/jasmine/scenarios.hbs +1 -1
  82. data/lib/templates/javascript/jasmine/tests.hbs +1 -1
  83. data/lib/templates/javascript/mocha/folder.hbs +1 -1
  84. data/lib/templates/javascript/scenarios.hbs +1 -1
  85. data/lib/templates/javascript/template.hbs +1 -1
  86. data/lib/templates/javascript/tests.hbs +1 -1
  87. data/lib/templates/javascript/while.hbs +1 -1
  88. data/lib/templates/jbehave/_scenario.hbs +1 -1
  89. data/lib/templates/jbehave/folder.hbs +3 -3
  90. data/lib/templates/jbehave/single_test.hbs +1 -1
  91. data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -1
  92. data/lib/templates/jbehave/steps/actionword.hbs +1 -1
  93. data/lib/templates/jbehave/steps/actionwords.hbs +1 -1
  94. data/lib/templates/php/_body.hbs +1 -1
  95. data/lib/templates/php/actionwords.hbs +2 -2
  96. data/lib/templates/php/folder.hbs +1 -1
  97. data/lib/templates/php/ifthen.hbs +2 -2
  98. data/lib/templates/php/libraries.hbs +4 -4
  99. data/lib/templates/php/library.hbs +2 -2
  100. data/lib/templates/php/scenarios.hbs +1 -1
  101. data/lib/templates/php/template.hbs +1 -1
  102. data/lib/templates/php/tests.hbs +1 -1
  103. data/lib/templates/php/while.hbs +1 -1
  104. data/lib/templates/python/_body.hbs +1 -1
  105. data/lib/templates/python/actionwords.hbs +1 -1
  106. data/lib/templates/python/folder.hbs +1 -1
  107. data/lib/templates/python/libraries.hbs +4 -4
  108. data/lib/templates/python/library.hbs +1 -1
  109. data/lib/templates/python/scenarios.hbs +1 -1
  110. data/lib/templates/python/template.hbs +1 -1
  111. data/lib/templates/python/tests.hbs +1 -1
  112. data/lib/templates/python/unittest/actionwords.hbs +1 -1
  113. data/lib/templates/python/while.hbs +1 -1
  114. data/lib/templates/robotframework/_keyword_body.hbs +1 -1
  115. data/lib/templates/robotframework/_scenario.hbs +1 -1
  116. data/lib/templates/robotframework/actionwords.hbs +1 -1
  117. data/lib/templates/robotframework/datatable.hbs +1 -1
  118. data/lib/templates/robotframework/folder.hbs +16 -16
  119. data/lib/templates/robotframework/scenarios.hbs +15 -15
  120. data/lib/templates/robotframework/template.hbs +1 -1
  121. data/lib/templates/robotframework/tests.hbs +2 -2
  122. data/lib/templates/ruby/_body.hbs +1 -1
  123. data/lib/templates/ruby/actionwords.hbs +2 -2
  124. data/lib/templates/ruby/folder.hbs +1 -1
  125. data/lib/templates/ruby/ifthen.hbs +2 -2
  126. data/lib/templates/ruby/minitest/folder.hbs +1 -1
  127. data/lib/templates/ruby/minitest/scenarios.hbs +1 -1
  128. data/lib/templates/ruby/minitest/tests.hbs +1 -1
  129. data/lib/templates/ruby/scenarios.hbs +1 -1
  130. data/lib/templates/ruby/template.hbs +1 -1
  131. data/lib/templates/ruby/tests.hbs +1 -1
  132. data/lib/templates/ruby/while.hbs +1 -1
  133. data/lib/templates/seleniumide/call.hbs +1 -1
  134. data/lib/templates/seleniumide/single_test.hbs +1 -1
  135. data/lib/templates/seleniumide/tests.hbs +1 -1
  136. data/lib/templates/specflow/actionword.hbs +1 -1
  137. data/lib/templates/specflow/actionwords.hbs +2 -2
  138. data/lib/templates/swift/_body.hbs +11 -0
  139. data/lib/templates/swift/_item_as_def.hbs +5 -0
  140. data/lib/templates/swift/_scenario.hbs +7 -0
  141. data/lib/templates/swift/actionword.hbs +1 -0
  142. data/lib/templates/swift/actionwords.hbs +6 -0
  143. data/lib/templates/swift/argument.hbs +1 -0
  144. data/lib/templates/swift/assign.hbs +1 -0
  145. data/lib/templates/swift/binaryexpression.hbs +1 -0
  146. data/lib/templates/swift/call.hbs +2 -0
  147. data/lib/templates/swift/dataset.hbs +4 -0
  148. data/lib/templates/swift/dict.hbs +1 -0
  149. data/lib/templates/swift/field.hbs +1 -0
  150. data/lib/templates/swift/folder.hbs +23 -0
  151. data/lib/templates/swift/ifthen.hbs +7 -0
  152. data/lib/templates/swift/index.hbs +1 -0
  153. data/lib/templates/swift/list.hbs +1 -0
  154. data/lib/templates/swift/parameter.hbs +1 -0
  155. data/lib/templates/swift/parenthesis.hbs +1 -0
  156. data/lib/templates/swift/project.hbs +2 -0
  157. data/lib/templates/swift/property.hbs +1 -0
  158. data/lib/templates/swift/scenario.hbs +1 -0
  159. data/lib/templates/swift/scenarios.hbs +25 -0
  160. data/lib/templates/swift/single_scenario.hbs +24 -0
  161. data/lib/templates/swift/single_test.hbs +23 -0
  162. data/lib/templates/swift/step.hbs +1 -0
  163. data/lib/templates/swift/stringliteral.hbs +1 -0
  164. data/lib/templates/swift/symbol.hbs +1 -0
  165. data/lib/templates/swift/tag.hbs +1 -0
  166. data/lib/templates/swift/template.hbs +1 -0
  167. data/lib/templates/swift/test.hbs +1 -0
  168. data/lib/templates/swift/tests.hbs +25 -0
  169. data/lib/templates/swift/while.hbs +5 -0
  170. data/lib/templates/typescript/actionwords.hbs +1 -1
  171. data/lib/templates/typescript/libraries.hbs +4 -4
  172. data/lib/templates/typescript/library.hbs +1 -1
  173. metadata +73 -40
@@ -2,4 +2,4 @@
2
2
 
3
3
  require_relative 'actionwords'
4
4
  World(Actionwords)
5
- {{#each rendered_children.actionwords}}{{{this}}}{{/each}}
5
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}{{/each}}
@@ -1 +1 @@
1
- {{#strip}}{{#join chunks context.parameter_delimiter}}{{this.value}}{{/join}}{{#each extra_inlined_parameters}} {{context.parameter_delimiter}}{{this.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
1
+ {{#strip}}{{#join chunks context.parameter_delimiter as |treated_chunk|}}{{treated_chunk.value}}{{/join}}{{#each extra_inlined_parameters as |param|}} {{context.parameter_delimiter}}{{param.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
@@ -1,5 +1,5 @@
1
1
  {{#if rendered_children.gherkin_annotation }}{{{ rendered_children.gherkin_annotation }}}(~"^{{#escape_backslashes_and_double_quotes}}{{> gherkin_pattern}}{{/escape_backslashes_and_double_quotes}}\$") { {{{ join rendered_children.parameters_ordered_by_pattern ', '}}} ->{{#indent}}
2
- {{{ context.call_prefix }}}.{{{camelize_lower uniq_name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{camelize_lower this}}}{{/join}}{{/if}})
2
+ {{{ context.call_prefix }}}.{{{camelize_lower uniq_name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}})
3
3
  {{/indent}}
4
4
  }
5
5
  {{/if}}
@@ -6,5 +6,5 @@ this.metaClass.mixin(cucumber.api.groovy.EN)
6
6
 
7
7
  Actionwords {{{ context.call_prefix }}} = new Actionwords()
8
8
 
9
- {{#each rendered_children.actionwords}}{{{this}}}
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
10
  {{/each}}
@@ -6,5 +6,5 @@ this.metaClass.mixin(cucumber.api.groovy.EN)
6
6
 
7
7
  Actionwords {{{ context.call_prefix }}} = new Actionwords()
8
8
 
9
- {{#each rendered_children.library_actionwords}}{{{this}}}
9
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
10
10
  {{/each}}
@@ -1,5 +1,5 @@
1
1
  {{#if rendered_children.gherkin_annotation }}{{{ rendered_children.gherkin_annotation }}}(~"^{{#escape_backslashes_and_double_quotes}}{{> gherkin_pattern}}{{/escape_backslashes_and_double_quotes}}\$") { {{{ join rendered_children.parameters_ordered_by_pattern ', '}}} ->{{#indent}}
2
- {{{ context.call_prefix }}}.get{{{camelize library_name}}}Library().{{{camelize_lower uniq_name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{camelize_lower this}}}{{/join}}{{/if}})
2
+ {{{ context.call_prefix }}}.get{{{camelize library_name}}}Library().{{{camelize_lower uniq_name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}})
3
3
  {{/indent}}
4
4
  }
5
5
  {{/if}}
@@ -1,6 +1,6 @@
1
1
  {{#if rendered_children.gherkin_annotation }}@{{{ rendered_children.gherkin_annotation }}}("{{#escape_backslashes_and_double_quotes}}{{> gherkin_pattern}}{{/escape_backslashes_and_double_quotes}}")
2
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 ', '}}{{{camelize_lower this}}}{{/join}}{{/if}});
3
+ {{{ context.call_prefix }}}.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}});
4
4
  {{/indent}}
5
5
  {{/curly}}
6
6
  {{/if}}
@@ -6,7 +6,7 @@ import cucumber.api.java.en.*;
6
6
  public class StepDefinitions {{#curly}}{{#indent}}
7
7
  public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
8
 
9
- {{#each rendered_children.actionwords}}{{{this}}}
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
10
  {{/each}}
11
11
  {{/indent}}
12
12
  {{/curly}}
@@ -1,6 +1,6 @@
1
1
  {{#if rendered_children.gherkin_annotation }}
2
2
  this.{{{ rendered_children.gherkin_annotation }}}(/{{> gherkin_pattern}}/, function ({{#if rendered_children.parameters}}{{{ join rendered_children.parameters_ordered_by_pattern ', '}}}, {{/if}}callback) {{#curly}}{{#indent}}
3
- this.actionwords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{underscore this}}}{{/join}}{{/if}});
3
+ this.actionwords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
4
  callback();
5
5
  {{/indent}}
6
6
  {{/curly}});{{/if}}
@@ -3,6 +3,6 @@ module.exports = function () {{#curly}}{{#indent}}
3
3
 
4
4
  {{> after_hook}}
5
5
 
6
- {{#each rendered_children.actionwords}}{{{this}}}
6
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
7
7
  {{/each}}{{/indent}}
8
8
  {{/curly}}
@@ -1,5 +1,5 @@
1
1
  {{#if rendered_children.gherkin_annotation }}
2
2
  {{{ rendered_children.gherkin_annotation }}}(/{{> gherkin_pattern}}/, async ({{#if rendered_children.parameters}}{{{ join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}) => {{#curly}}{{#indent}}
3
- actionWords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{underscore this}}}{{/join}}{{/if}});
3
+ actionWords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
4
  {{/indent}}
5
5
  {{/curly}});{{/if}}
@@ -6,5 +6,5 @@ let actionWords : ActionWords;
6
6
 
7
7
  {{> after_hook}}
8
8
 
9
- {{#each rendered_children.actionwords}}{{{this}}}
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
10
  {{/each}}
@@ -8,5 +8,5 @@ Before(async () => {
8
8
 
9
9
  {{> after_hook}}
10
10
 
11
- {{#each rendered_children.library_actionwords}}{{{this}}}
11
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
12
12
  {{/each}}
@@ -1,5 +1,5 @@
1
1
  {{#if rendered_children.gherkin_annotation}}
2
2
  {{{ rendered_children.gherkin_annotation }}}(/{{> gherkin_pattern}}/, async ({{#if rendered_children.parameters}}{{{ join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}) => {{#curly}}{{#indent}}
3
- libraryActionWord.getDefaultLibrary().{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{underscore this}}}{{/join}}{{/if}});
3
+ libraryActionWord.getDefaultLibrary().{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
4
  {{/indent}}
5
5
  {{/curly}});{{/if}}
@@ -1 +1 @@
1
- {{#if rendered_children.annotation}}{{{capitalize rendered_children.annotation }}}{{else}}*{{/if}} {{#strip}}{{#join chunks context.parameter_delimiter}}{{this.value}}{{/join}}{{#each extra_inlined_arguments}} {{context.parameter_delimiter}}{{this.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
1
+ {{#if rendered_children.annotation}}{{{capitalize rendered_children.annotation }}}{{else}}*{{/if}} {{#strip}}{{#join chunks context.parameter_delimiter as |treated_chunk|}}{{treated_chunk.value}}{{/join}}{{#each extra_inlined_arguments as |argument|}} {{context.parameter_delimiter}}{{argument.value}}{{context.parameter_delimiter}}{{/each}}{{/strip}}
@@ -2,7 +2,7 @@
2
2
  {{#if has_tags?}}{{join rendered_children.tags ' '}}
3
3
  {{/if}}{{> scenario_outline_title}}{{#indent}}
4
4
  {{#if has_description?}}{{description_with_annotations rendered_children.description}}
5
- {{/if}}{{#each rendered_children.body}}{{{ this }}}
5
+ {{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
6
6
  {{/each}}
7
7
  Examples:{{#indent}}
8
8
  {{#if context.with_dataset_names}}| dataset name {{/if}}| {{ join rendered_children.parameters ' | ' }} |{{#if context.uids}} hiptest-uid |{{/if}}
@@ -12,7 +12,7 @@ Examples:{{#indent}}
12
12
  {{#if has_tags?}}{{join rendered_children.tags ' '}}
13
13
  {{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
14
14
  {{#if has_description?}}{{description_with_annotations rendered_children.description}}
15
- {{/if}}{{#each rendered_children.body}}{{{ this }}}
15
+ {{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
16
16
  {{/each}}
17
17
  {{/indent}}
18
18
  {{/if}}
@@ -1,2 +1,2 @@
1
- {{#each rendered_children.datasets}}{{{this}}}
1
+ {{#each rendered_children.datasets as |dataset|}}{{{dataset}}}
2
2
  {{/each}}
@@ -1,10 +1,10 @@
1
- {{#if rendered_children.ancestor_tags}}{{#if context.parent_folder_tags}}{{#each rendered_children.ancestor_tags}}{{this}} {{/each}}{{#unless has_tags?}}
1
+ {{#if rendered_children.ancestor_tags}}{{#if context.parent_folder_tags}}{{#each rendered_children.ancestor_tags as |tag|}}{{tag}} {{/each}}{{#unless has_tags?}}
2
2
  {{/unless}}{{/if}}{{/if}}{{#if has_tags?}}{{join rendered_children.tags ' '}}
3
3
  {{/if}}Feature: {{{ rendered_children.name }}}{{#indent}}
4
4
  {{#if rendered_children.description}}{{#indent}}{{description_with_annotations rendered_children.description}}{{/indent}}{{/if}}
5
5
  {{#unless is_empty?}}
6
6
  Background:{{#indent}}
7
- {{#each rendered_children.body}}{{{ this }}}
7
+ {{#each rendered_children.body as |step|}}{{{ step }}}
8
8
  {{/each}}{{/indent}}
9
- {{/unless}}{{#each rendered_children.scenarios}}{{{this}}}{{/each}}
9
+ {{/unless}}{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}{{/each}}
10
10
  {{/indent}}
@@ -1,3 +1,3 @@
1
1
  Scenario: {{{ rendered_children.name }}}{{#indent}}
2
- {{#each rendered_children.body}}{{{ this }}}
2
+ {{#each rendered_children.body as |step|}}{{{ step }}}
3
3
  {{/each}}{{/indent}}
@@ -1 +1 @@
1
- {{#each treated_chunks}}{{#if this.is_variable?}}<{{{this.raw.children.name}}}>{{else}}{{{ this.raw.children.value }}}{{/if}}{{/each}}
1
+ {{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}<{{{treated_chunk.raw.children.name}}}>{{else}}{{{ treated_chunk.raw.children.value }}}{{/if}}{{/each}}
@@ -1,4 +1,4 @@
1
1
 
2
- {{#each rendered_children.body}}{{{this}}}
2
+ {{#each rendered_children.body as |step|}}{{{step}}}
3
3
  {{/each}}{{#if has_step?}}
4
4
  throw new UnsupportedOperationException(){{/if}}
@@ -1,7 +1,7 @@
1
1
  package {{{ context.package }}}
2
2
 
3
- class Actionwords {{#if uses_library? }}extends ActionwordLibrary{{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords}}
4
- {{{this}}}
3
+ class Actionwords {{#if uses_library? }}extends ActionwordLibrary{{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords as |actionword|}}
4
+ {{actionword}}
5
5
  {{/each}}
6
6
  {{/indent}}
7
7
  {{/curly}}
@@ -1,2 +1,2 @@
1
- {{#each rendered_children.datasets}}{{{this}}}
1
+ {{#each rendered_children.datasets as |dataset|}}{{{dataset}}}
2
2
  {{/each}}
@@ -7,12 +7,12 @@ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
7
 
8
8
  {{#unless is_empty?}}
9
9
  def setup() {{#curly}}{{#indent}}
10
- {{#each rendered_children.body}}{{{this}}}
10
+ {{#each rendered_children.body as |step|}}{{{step}}}
11
11
  {{/each}}
12
12
  {{/indent}}{{/curly}}
13
13
  {{/unless}}
14
14
 
15
- {{#each rendered_children.scenarios}}{{{this}}}
15
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
16
16
  {{/each}}
17
17
  {{/indent}}
18
18
  {{/curly}}
@@ -1,8 +1,8 @@
1
1
  package {{{ context.package }}}
2
2
 
3
- class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names}}
4
- {{camelize this}}Library get{{camelize this}}Library() {{#curly}}{{#indent}}
5
- return {{camelize this}}Library.instance
3
+ class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names as |library_name|}}
4
+ {{camelize library_name}}Library get{{camelize library_name}}Library() {{#curly}}{{#indent}}
5
+ return {{camelize library_name}}Library.instance
6
6
  {{/indent}}
7
7
  {{/curly}}
8
8
  {{/each}}{{/indent}}
@@ -1,8 +1,8 @@
1
1
  package {{{ context.package }}}
2
2
 
3
3
  @Singleton
4
- class {{camelize rendered_children.name}}Library {{#curly}}{{#indent}}{{#each rendered_children.library_actionwords}}
5
- {{{this}}}
4
+ class {{camelize rendered_children.name}}Library {{#curly}}{{#indent}}{{#each rendered_children.library_actionwords as |actionword|}}
5
+ {{{actionword}}}
6
6
  {{/each}}
7
7
  {{/indent}}
8
8
  {{/curly}}
@@ -5,6 +5,6 @@ import spock.lang.*
5
5
  class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
6
  def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
7
 
8
- {{#each rendered_children.scenarios}}{{{this}}}
8
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
9
9
  {{/each}}{{/indent}}
10
10
  {{/curly}}
@@ -1 +1 @@
1
- "{{#each treated_chunks}}{{#if this.is_variable?}}${{#curly}}{{{this.raw.children.name}}}{{/curly}}{{else}}{{{ escape_double_quotes this.raw.children.value }}}{{/if}}{{/each}}"
1
+ "{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}${{#curly}}{{{treated_chunk.raw.children.name}}}{{/curly}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"
@@ -5,6 +5,6 @@ import spock.lang.*
5
5
  class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
6
  def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
7
 
8
- {{#each rendered_children.tests}}{{{this}}}
8
+ {{#each rendered_children.tests as |test|}}{{{test}}}
9
9
  {{/each}}{{/indent}}
10
10
  {{/curly}}
@@ -1,5 +1,5 @@
1
1
  {{#indent}}
2
- {{#each rendered_children.body}}{{{this}}}
2
+ {{#each rendered_children.body as |step|}}{{{step}}}
3
3
  {{/each}}
4
4
  {{#if has_step?}}throw new UnsupportedOperationException();{{/if}}
5
5
  {{/indent}}
@@ -1,8 +1,8 @@
1
1
  package {{{ context.package }}};
2
2
 
3
3
  public class Actionwords {{#if uses_library?}}extends ActionwordLibrary {{/if}}{{#curly}}{{#indent}}
4
- {{#each rendered_children.actionwords}}
5
- {{{this}}}
4
+ {{#each rendered_children.actionwords as |actionword|}}
5
+ {{{actionword}}}
6
6
  {{/each}}
7
7
  {{/indent}}
8
8
  {{/curly}}
@@ -23,7 +23,7 @@ super.setUp();{{/indent}}
23
23
  {{> body}}
24
24
  {{/curly}}
25
25
 
26
- {{/unless}}{{#each rendered_children.scenarios}}{{{this}}}
26
+ {{/unless}}{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
27
27
  {{/each}}
28
28
  {{/indent}}
29
29
  {{/curly}}
@@ -17,7 +17,7 @@ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
17
17
  @Rule
18
18
  public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
19
19
 
20
- {{#each rendered_children.scenarios}}{{{this}}}
20
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
21
21
  {{/each}}
22
22
  {{/indent}}
23
23
  {{/curly}}
@@ -17,7 +17,7 @@ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
17
17
  @Rule
18
18
  public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class);
19
19
 
20
- {{#each rendered_children.tests}}{{{this}}}
20
+ {{#each rendered_children.tests as |test|}}{{{test}}}
21
21
  {{/each}}
22
22
  {{/indent}}
23
23
  {{/curly}}
@@ -12,7 +12,7 @@ super.setUp();{{/indent}}
12
12
  {{> body}}
13
13
  {{/curly}}
14
14
 
15
- {{/unless}}{{#each rendered_children.scenarios}}{{{this}}}
15
+ {{/unless}}{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
16
16
  {{/each}}
17
17
  {{/indent}}
18
18
  {{/curly}}
@@ -1,7 +1,7 @@
1
1
  if ({{{ rendered_children.condition }}}) {{#curly}}
2
- {{#indent}}{{#each rendered_children.then}}{{{this}}}
2
+ {{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}
3
3
  {{/each}}{{/indent}}
4
4
  {{#if has_else?}}} else {
5
- {{#indent}}{{#each rendered_children.else}}{{{this}}}
5
+ {{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}
6
6
  {{/each}}{{/indent}}
7
7
  {{/if}}{{/curly}}
@@ -1,8 +1,8 @@
1
1
  package {{{ context.package }}};
2
2
 
3
- public class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names}}
4
- public {{camelize this}}Library get{{camelize this}}Library() {{#curly}}{{#indent}}
5
- return new {{camelize this}}Library();
3
+ public class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names as |library_name|}}
4
+ public {{camelize library_name}}Library get{{camelize library_name}}Library() {{#curly}}{{#indent}}
5
+ return new {{camelize library_name}}Library();
6
6
  {{/indent}}
7
7
  {{/curly}}
8
8
  {{/each}}{{/indent}}
@@ -1,7 +1,7 @@
1
1
  package {{{ context.package }}};
2
2
 
3
- public class {{camelize rendered_children.name}}Library extends ActionwordLibrary {{#curly}}{{#indent}}{{#each rendered_children.library_actionwords}}
4
- {{{this}}}
3
+ public class {{camelize rendered_children.name}}Library extends ActionwordLibrary {{#curly}}{{#indent}}{{#each rendered_children.library_actionwords as |actionword|}}
4
+ {{{actionword}}}
5
5
  {{/each}}
6
6
  {{/indent}}
7
7
  {{/curly}}
@@ -5,7 +5,7 @@ import junit.framework.TestCase;
5
5
  public class {{{ clear_extension context.filename }}} extends TestCase {{#curly}}
6
6
  {{#indent}}
7
7
  public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
- {{#each rendered_children.scenarios}}{{{this}}}
8
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
9
9
  {{/each}}
10
10
  {{/indent}}
11
11
  {{/curly}}
@@ -1 +1 @@
1
- {{#if variable_names}}String.format({{/if}}"{{#each treated_chunks}}{{#if this.is_variable?}}%s{{else}}{{{ escape_double_quotes this.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}}, {{{join variable_names ', '}}}){{/if}}
1
+ {{#if variable_names}}String.format({{/if}}"{{#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}}
@@ -13,7 +13,7 @@ public void setUp() {{#curly}}
13
13
  {{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}{{#unless is_empty?}}
14
14
  {{> body}}{{/unless}}
15
15
  {{/curly}}
16
- {{#each rendered_children.scenarios}}{{{this}}}
16
+ {{#each rendered_children.scenarios as |scenario|}}{{scenario}}
17
17
  {{/each}}
18
18
  {{/indent}}
19
19
  {{/curly}}
@@ -10,7 +10,7 @@ public class {{{ clear_extension context.filename }}} {{#curly}}
10
10
  public void setUp() {{#curly}}
11
11
  {{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
12
12
  {{/curly}}{{/indent}}
13
- {{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
13
+ {{#indent}}{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
14
14
  {{/each}}
15
15
  {{/indent}}
16
16
  {{/curly}}
@@ -10,7 +10,7 @@ public class {{{ clear_extension context.filename }}} {{#curly}}
10
10
  public void setUp() {{#curly}}
11
11
  {{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
12
12
  {{/curly}}{{/indent}}
13
- {{#indent}}{{#each rendered_children.tests}}{{{this}}}
13
+ {{#indent}}{{#each rendered_children.tests as |test|}}{{{test}}}
14
14
  {{/each}}
15
15
  {{/indent}}
16
16
  {{/curly}}
@@ -5,7 +5,7 @@ import junit.framework.TestCase;
5
5
  public class {{{ clear_extension context.filename }}} extends TestCase {{#curly}}
6
6
  {{#indent}}
7
7
  public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
- {{#each rendered_children.tests}}{{{this}}}
8
+ {{#each rendered_children.tests as |test|}}{{{test}}}
9
9
  {{/each}}
10
10
  {{/indent}}
11
11
  {{/curly}}
@@ -1,4 +1,4 @@
1
1
  while ({{{ rendered_children.condition }}}) {{#curly}}{{#indent}}
2
- {{#each rendered_children.body}}{{{this}}}
2
+ {{#each rendered_children.body as |step|}}{{{step}}}
3
3
  {{/each}}{{/indent}}
4
4
  {{/curly}}
@@ -2,8 +2,8 @@
2
2
  {{#indent}}
3
3
  {{#comment '//'}}{{#if has_description?}}{{{ rendered_children.description }}}
4
4
  {{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}{{/if}}{{/comment}}
5
- {{#if declared_variables}}var {{#join declared_variables ', '}}{{{camelize_lower this}}}{{/join}};
6
- {{/if}}{{#each rendered_children.body}}{{{this}}}
5
+ {{#if declared_variables}}var {{#join declared_variables ', ' as |var|}}{{{camelize_lower var}}}{{/join}};
6
+ {{/if}}{{#each rendered_children.body as |step|}}{{{step}}}
7
7
  {{/each}}
8
8
  {{#if has_step?}}throw 'Not implemented';{{/if}}
9
9
  {{/indent}}
@@ -1,4 +1,4 @@
1
- var Actionwords = {{#curly}}{{#indent}}{{#join rendered_children.actionwords ","}}
2
- {{{this}}}{{/join}}
1
+ var Actionwords = {{#curly}}{{#indent}}{{#join rendered_children.actionwords "," as |actionword|}}
2
+ {{{actionword}}}{{/join}}
3
3
  {{/indent}}
4
4
  {{/curly}};
@@ -1,5 +1,5 @@
1
1
  {{#if rendered_children.gherkin_annotation }}
2
2
  {{{ rendered_children.gherkin_annotation }}}(/{{> gherkin_pattern}}/, function ({{#if rendered_children.parameters}}{{{ join rendered_children.parameters_ordered_by_pattern ', '}}}{{/if}}) {{#curly}}{{#indent}}
3
- return actionwords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{underscore this}}}{{/join}}{{/if}});
3
+ return actionwords.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
4
  {{/indent}}
5
5
  {{/curly}});{{/if}}