hiptest-publisher 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +98 -0
  3. data/bin/hiptest-publisher +11 -0
  4. data/lib/hiptest-publisher.rb +121 -0
  5. data/lib/hiptest-publisher/call_arguments_adder.rb +63 -0
  6. data/lib/hiptest-publisher/handlebars_helper.rb +97 -0
  7. data/lib/hiptest-publisher/nodes.rb +380 -0
  8. data/lib/hiptest-publisher/nodes_walker.rb +45 -0
  9. data/lib/hiptest-publisher/options_parser.rb +225 -0
  10. data/lib/hiptest-publisher/parameter_type_adder.rb +139 -0
  11. data/lib/hiptest-publisher/parent_adder.rb +18 -0
  12. data/lib/hiptest-publisher/render_context_maker.rb +92 -0
  13. data/lib/hiptest-publisher/renderer.rb +87 -0
  14. data/lib/hiptest-publisher/string.rb +52 -0
  15. data/lib/hiptest-publisher/utils.rb +47 -0
  16. data/lib/hiptest-publisher/xml_parser.rb +294 -0
  17. data/lib/templates/common/booleanliteral.hbs +1 -0
  18. data/lib/templates/common/dataset.hbs +0 -0
  19. data/lib/templates/common/datatable.hbs +3 -0
  20. data/lib/templates/common/nullliteral.hbs +1 -0
  21. data/lib/templates/common/numericliteral.hbs +1 -0
  22. data/lib/templates/common/stringliteral.hbs +1 -0
  23. data/lib/templates/common/variable.hbs +1 -0
  24. data/lib/templates/java/_body.hbs +5 -0
  25. data/lib/templates/java/_item_as_function.hbs +6 -0
  26. data/lib/templates/java/_scenario.hbs +7 -0
  27. data/lib/templates/java/actionword.hbs +1 -0
  28. data/lib/templates/java/actionwords.hbs +8 -0
  29. data/lib/templates/java/argument.hbs +1 -0
  30. data/lib/templates/java/assign.hbs +1 -0
  31. data/lib/templates/java/binaryexpression.hbs +1 -0
  32. data/lib/templates/java/call.hbs +1 -0
  33. data/lib/templates/java/dataset.hbs +3 -0
  34. data/lib/templates/java/dict.hbs +1 -0
  35. data/lib/templates/java/field.hbs +1 -0
  36. data/lib/templates/java/ifthen.hbs +7 -0
  37. data/lib/templates/java/index.hbs +1 -0
  38. data/lib/templates/java/list.hbs +1 -0
  39. data/lib/templates/java/nullliteral.hbs +1 -0
  40. data/lib/templates/java/output_config +11 -0
  41. data/lib/templates/java/parameter.hbs +1 -0
  42. data/lib/templates/java/parenthesis.hbs +1 -0
  43. data/lib/templates/java/property.hbs +1 -0
  44. data/lib/templates/java/scenario.hbs +1 -0
  45. data/lib/templates/java/scenarios.hbs +11 -0
  46. data/lib/templates/java/single_scenario.hbs +11 -0
  47. data/lib/templates/java/single_test.hbs +11 -0
  48. data/lib/templates/java/step.hbs +1 -0
  49. data/lib/templates/java/stringliteral.hbs +1 -0
  50. data/lib/templates/java/tag.hbs +1 -0
  51. data/lib/templates/java/template.hbs +1 -0
  52. data/lib/templates/java/test.hbs +1 -0
  53. data/lib/templates/java/testng/_scenario.hbs +8 -0
  54. data/lib/templates/java/testng/dataset.hbs +4 -0
  55. data/lib/templates/java/testng/scenarios.hbs +16 -0
  56. data/lib/templates/java/testng/single_scenario.hbs +11 -0
  57. data/lib/templates/java/testng/single_test.hbs +11 -0
  58. data/lib/templates/java/testng/tests.hbs +16 -0
  59. data/lib/templates/java/tests.hbs +11 -0
  60. data/lib/templates/java/unaryexpression.hbs +1 -0
  61. data/lib/templates/java/variable.hbs +1 -0
  62. data/lib/templates/java/while.hbs +4 -0
  63. data/lib/templates/python/_body.hbs +10 -0
  64. data/lib/templates/python/_item_as_def.hbs +2 -0
  65. data/lib/templates/python/_parameters.hbs +1 -0
  66. data/lib/templates/python/_scenario.hbs +4 -0
  67. data/lib/templates/python/actionword.hbs +1 -0
  68. data/lib/templates/python/actionwords.hbs +9 -0
  69. data/lib/templates/python/argument.hbs +1 -0
  70. data/lib/templates/python/assign.hbs +1 -0
  71. data/lib/templates/python/binaryexpression.hbs +1 -0
  72. data/lib/templates/python/call.hbs +1 -0
  73. data/lib/templates/python/dataset.hbs +2 -0
  74. data/lib/templates/python/dict.hbs +1 -0
  75. data/lib/templates/python/field.hbs +1 -0
  76. data/lib/templates/python/ifthen.hbs +4 -0
  77. data/lib/templates/python/index.hbs +1 -0
  78. data/lib/templates/python/list.hbs +1 -0
  79. data/lib/templates/python/nullliteral.hbs +1 -0
  80. data/lib/templates/python/output_config +9 -0
  81. data/lib/templates/python/parameter.hbs +1 -0
  82. data/lib/templates/python/parenthesis.hbs +1 -0
  83. data/lib/templates/python/project.hbs +2 -0
  84. data/lib/templates/python/property.hbs +1 -0
  85. data/lib/templates/python/scenario.hbs +1 -0
  86. data/lib/templates/python/scenarios.hbs +11 -0
  87. data/lib/templates/python/single_scenario.hbs +9 -0
  88. data/lib/templates/python/single_test.hbs +9 -0
  89. data/lib/templates/python/step.hbs +1 -0
  90. data/lib/templates/python/tag.hbs +1 -0
  91. data/lib/templates/python/template.hbs +1 -0
  92. data/lib/templates/python/test.hbs +1 -0
  93. data/lib/templates/python/tests.hbs +11 -0
  94. data/lib/templates/python/unaryexpression.hbs +1 -0
  95. data/lib/templates/python/while.hbs +4 -0
  96. data/lib/templates/robotframework/_keyword.hbs +4 -0
  97. data/lib/templates/robotframework/_scenario.hbs +11 -0
  98. data/lib/templates/robotframework/actionword.hbs +1 -0
  99. data/lib/templates/robotframework/actionwords.hbs +4 -0
  100. data/lib/templates/robotframework/argument.hbs +1 -0
  101. data/lib/templates/robotframework/assign.hbs +1 -0
  102. data/lib/templates/robotframework/binaryexpression.hbs +1 -0
  103. data/lib/templates/robotframework/call.hbs +1 -0
  104. data/lib/templates/robotframework/dataset.hbs +1 -0
  105. data/lib/templates/robotframework/datatable.hbs +2 -0
  106. data/lib/templates/robotframework/dict.hbs +1 -0
  107. data/lib/templates/robotframework/field.hbs +1 -0
  108. data/lib/templates/robotframework/ifthen.hbs +1 -0
  109. data/lib/templates/robotframework/index.hbs +1 -0
  110. data/lib/templates/robotframework/list.hbs +1 -0
  111. data/lib/templates/robotframework/nullliteral.hbs +1 -0
  112. data/lib/templates/robotframework/output_config +8 -0
  113. data/lib/templates/robotframework/parameter.hbs +1 -0
  114. data/lib/templates/robotframework/parenthesis.hbs +1 -0
  115. data/lib/templates/robotframework/project.hbs +2 -0
  116. data/lib/templates/robotframework/property.hbs +1 -0
  117. data/lib/templates/robotframework/scenario.hbs +1 -0
  118. data/lib/templates/robotframework/scenarios.hbs +1 -0
  119. data/lib/templates/robotframework/single_scenario.hbs +11 -0
  120. data/lib/templates/robotframework/single_test.hbs +11 -0
  121. data/lib/templates/robotframework/step.hbs +1 -0
  122. data/lib/templates/robotframework/stringliteral.hbs +1 -0
  123. data/lib/templates/robotframework/tag.hbs +1 -0
  124. data/lib/templates/robotframework/template.hbs +1 -0
  125. data/lib/templates/robotframework/test.hbs +1 -0
  126. data/lib/templates/robotframework/tests.hbs +1 -0
  127. data/lib/templates/robotframework/unaryexpression.hbs +1 -0
  128. data/lib/templates/robotframework/variable.hbs +1 -0
  129. data/lib/templates/robotframework/while.hbs +1 -0
  130. data/lib/templates/ruby/_body.hbs +9 -0
  131. data/lib/templates/ruby/_item_as_def.hbs +3 -0
  132. data/lib/templates/ruby/_scenario.hbs +5 -0
  133. data/lib/templates/ruby/actionword.hbs +1 -0
  134. data/lib/templates/ruby/actionwords.hbs +6 -0
  135. data/lib/templates/ruby/argument.hbs +1 -0
  136. data/lib/templates/ruby/assign.hbs +1 -0
  137. data/lib/templates/ruby/binaryexpression.hbs +1 -0
  138. data/lib/templates/ruby/call.hbs +1 -0
  139. data/lib/templates/ruby/dataset.hbs +3 -0
  140. data/lib/templates/ruby/dict.hbs +1 -0
  141. data/lib/templates/ruby/field.hbs +1 -0
  142. data/lib/templates/ruby/ifthen.hbs +7 -0
  143. data/lib/templates/ruby/index.hbs +1 -0
  144. data/lib/templates/ruby/list.hbs +1 -0
  145. data/lib/templates/ruby/minitest/_item_as_def.hbs +3 -0
  146. data/lib/templates/ruby/minitest/_scenario.hbs +4 -0
  147. data/lib/templates/ruby/minitest/dataset.hbs +3 -0
  148. data/lib/templates/ruby/minitest/output_config +6 -0
  149. data/lib/templates/ruby/minitest/scenario.hbs +1 -0
  150. data/lib/templates/ruby/minitest/scenarios.hbs +13 -0
  151. data/lib/templates/ruby/minitest/single_scenario.hbs +11 -0
  152. data/lib/templates/ruby/minitest/single_test.hbs +11 -0
  153. data/lib/templates/ruby/minitest/test.hbs +1 -0
  154. data/lib/templates/ruby/minitest/tests.hbs +13 -0
  155. data/lib/templates/ruby/output_config +6 -0
  156. data/lib/templates/ruby/parameter.hbs +1 -0
  157. data/lib/templates/ruby/parenthesis.hbs +1 -0
  158. data/lib/templates/ruby/project.hbs +2 -0
  159. data/lib/templates/ruby/property.hbs +1 -0
  160. data/lib/templates/ruby/scenario.hbs +1 -0
  161. data/lib/templates/ruby/scenarios.hbs +12 -0
  162. data/lib/templates/ruby/single_scenario.hbs +11 -0
  163. data/lib/templates/ruby/single_test.hbs +11 -0
  164. data/lib/templates/ruby/step.hbs +1 -0
  165. data/lib/templates/ruby/tag.hbs +1 -0
  166. data/lib/templates/ruby/template.hbs +1 -0
  167. data/lib/templates/ruby/test.hbs +1 -0
  168. data/lib/templates/ruby/tests.hbs +12 -0
  169. data/lib/templates/ruby/unaryexpression.hbs +1 -0
  170. data/lib/templates/ruby/while.hbs +5 -0
  171. data/lib/templates/seleniumide/argument.hbs +1 -0
  172. data/lib/templates/seleniumide/call.hbs +6 -0
  173. data/lib/templates/seleniumide/output_config +9 -0
  174. data/lib/templates/seleniumide/single_test.hbs +28 -0
  175. data/lib/templates/seleniumide/step.hbs +0 -0
  176. data/lib/templates/seleniumide/stringliteral.hbs +1 -0
  177. data/lib/templates/seleniumide/template.hbs +1 -0
  178. data/lib/templates/seleniumide/test.hbs +4 -0
  179. data/lib/templates/seleniumide/tests.hbs +19 -0
  180. metadata +404 -0
@@ -0,0 +1 @@
1
+ {{to_string rendered_children.value }}
File without changes
@@ -0,0 +1,3 @@
1
+ {{#each rendered_children.datasets}}
2
+ {{{this}}}
3
+ {{/each}}
@@ -0,0 +1 @@
1
+ {{ rendered_children.value }}
@@ -0,0 +1 @@
1
+ '{{ rendered_children.value }}'
@@ -0,0 +1 @@
1
+ {{ underscore rendered_children.name }}
@@ -0,0 +1,5 @@
1
+ {{#indent}}
2
+ {{#each rendered_children.body}}{{{this}}}
3
+ {{/each}}
4
+ {{#if has_step?}}throw new UnsupportedOperationException();{{/if}}
5
+ {{/indent}}
@@ -0,0 +1,6 @@
1
+ public void {{{ camelize_lower rendered_children.name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {
2
+ {{#clear_empty_lines}}
3
+ {{#indent}}{{#if has_tags?}}// Tags: {{{ join rendered_children.tags ' '}}}{{/if}}{{/indent}}
4
+ {{> body}}
5
+ {{/clear_empty_lines}}
6
+ }
@@ -0,0 +1,7 @@
1
+ {{#if has_datasets?}}{{> item_as_function}}
2
+ {{{ rendered_children.datatable }}}
3
+ {{else}}{{#comment '//'}}{{{ rendered_children.description }}}
4
+ {{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
5
+ {{/comment}}
6
+ public void test{{{ camelize rendered_children.name }}}() {{#curly}}{{> body}}
7
+ {{/curly}}{{/if}}
@@ -0,0 +1 @@
1
+ {{> item_as_function}}
@@ -0,0 +1,8 @@
1
+ package {{{ context.package }}};
2
+
3
+ public class Actionwords {{#curly}}{{#indent}}
4
+ {{#each rendered_children.actionwords}}
5
+ {{{this}}}
6
+ {{/each}}
7
+ {{/indent}}
8
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{{ 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 @@
1
+ {{#if context.call_prefix}}{{{context.call_prefix}}}.{{/if}}{{{ camelize_lower rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}});
@@ -0,0 +1,3 @@
1
+ public void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}() {
2
+ {{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});
3
+ }
@@ -0,0 +1 @@
1
+ {{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}.{{{ rendered_children.name }}}
@@ -0,0 +1,7 @@
1
+ if ({{{ rendered_children.condition }}}) {{#curly}}
2
+ {{#indent}}{{#each rendered_children.then}}{{{this}}}
3
+ {{/each}}{{/indent}}
4
+ {{#if has_else?}}{{ close_curly }} else {{open_curly}}
5
+ {{#indent}}{{#each rendered_children.else}}{{{this}}}
6
+ {{/each}}{{/indent}}
7
+ {{/if}}{{/curly}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}.get({{{ rendered_children.expression }}})
@@ -0,0 +1 @@
1
+ new String[]{{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
@@ -0,0 +1 @@
1
+ null
@@ -0,0 +1,11 @@
1
+ [tests]
2
+ filename = 'ProjectTest.java'
3
+ scenario_filename = '%sTest.java'
4
+ class_name_convention = 'camelize'
5
+ indentation = " "
6
+ call_prefix = 'actionwords'
7
+
8
+
9
+ [actionwords]
10
+ filename = 'Actionwords.java'
11
+ indentation = " "
@@ -0,0 +1 @@
1
+ {{{ node.type }}} {{{ camelize_lower rendered_children.name }}}
@@ -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,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import junit.framework.TestCase;
4
+
5
+ public class {{{ clear_extension context.filename }}} extends TestCase {
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
9
+ {{/each}}
10
+ {{/indent}}
11
+ }
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import junit.framework.TestCase;
4
+
5
+ public class {{{ clear_extension context.test_file_name }}} extends TestCase {{#curly}}
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ {{/curly}}
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import junit.framework.TestCase;
4
+
5
+ public class {{{ clear_extension context.test_file_name }}} extends TestCase {{#curly}}
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{#comment '//'}}TODO: Implement {{{ rendered_children.key }}}: {{{ rendered_children.value }}}{{/comment}}
@@ -0,0 +1 @@
1
+ "{{ rendered_children.value }}"
@@ -0,0 +1 @@
1
+ {{{ rendered_children.key }}}{{#if has_value? }}:{{{ rendered_children.value }}}{{/if}}
@@ -0,0 +1 @@
1
+ {{#if variable_names}}String.format({{/if}}"{{#each treated_chunks}}{{#if this.is_variable?}}%s{{else}}{{{ escape_quotes this.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}}, {{{join variable_names ', '}}}){{/if}}
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,8 @@
1
+ {{#if has_datasets?}}{{> item_as_function}}
2
+ {{{ rendered_children.datatable }}}
3
+ {{else}}{{#comment '//'}}{{{ rendered_children.description }}}
4
+ {{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
5
+ {{/comment}}
6
+ @Test
7
+ public void {{{ camelize_lower rendered_children.name }}}() {{#curly}}{{> body}}
8
+ {{/curly}}{{/if}}
@@ -0,0 +1,4 @@
1
+ @Test
2
+ public void {{{ camelize_lower scenario_name}}}{{{ camelize rendered_children.name}}}() {
3
+ {{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});
4
+ }
@@ -0,0 +1,16 @@
1
+ package {{{ context.package }}};
2
+
3
+ import org.testng.annotations.*;
4
+
5
+ public class {{{ clear_extension context.filename }}} {
6
+
7
+ {{#indent}}public Actionwords {{{ context.call_prefix }}};
8
+
9
+ @BeforeMethod
10
+ public void setUp() {
11
+ {{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
12
+ }{{/indent}}
13
+ {{#indent}}{{#each rendered_children.scenarios}}{{{this}}}
14
+ {{/each}}
15
+ {{/indent}}
16
+ }
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import org.testng.annotations.*;
4
+
5
+ public class {{{ clear_extension context.test_file_name }}} {{#curly}}
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ {{/curly}}
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import org.testng.annotations.*;
4
+
5
+ public class {{{ clear_extension context.test_file_name }}} {{#curly}}
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ {{/curly}}
@@ -0,0 +1,16 @@
1
+ package {{{ context.package }}};
2
+
3
+ import org.testng.annotations.*;
4
+
5
+ public class {{{ clear_extension context.filename }}} {
6
+
7
+ {{#indent}}public Actionwords {{{ context.call_prefix }}};
8
+
9
+ @BeforeMethod
10
+ public void setUp() {
11
+ {{#indent}}{{{ context.call_prefix }}} = new Actionwords();{{/indent}}
12
+ }{{/indent}}
13
+ {{#indent}}{{#each rendered_children.tests}}{{{this}}}
14
+ {{/each}}
15
+ {{/indent}}
16
+ }
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}};
2
+
3
+ import junit.framework.TestCase;
4
+
5
+ public class {{{ clear_extension context.filename }}} extends TestCase {
6
+
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+ {{#indent}}{{#each rendered_children.tests}}{{{this}}}
9
+ {{/each}}
10
+ {{/indent}}
11
+ }
@@ -0,0 +1 @@
1
+ {{{ rendered_children.operator }}}{{{ rendered_children.expression }}}
@@ -0,0 +1 @@
1
+ {{ camelize_lower rendered_children.name }}
@@ -0,0 +1,4 @@
1
+ while ({{{ rendered_children.condition }}}) {{#curly}}{{#indent}}
2
+ {{#each rendered_children.body}}{{{this}}}
3
+ {{/each}}{{/indent}}
4
+ {{/curly}}
@@ -0,0 +1,10 @@
1
+ {{#clear_empty_lines}}
2
+ {{#indent}}
3
+ {{#comment '#'}}{{{ rendered_children.description }}}{{/comment}}
4
+ {{#if has_tags?}}# Tags: {{{ join rendered_children.tags ' '}}}{{/if}}
5
+ {{#each rendered_children.body}}{{{this}}}
6
+ {{/each}}
7
+ {{#if has_step?}}raise NotImplementedError{{/if}}
8
+ {{#if is_empty?}}pass{{/if}}
9
+ {{/indent}}
10
+ {{/clear_empty_lines}}
@@ -0,0 +1,2 @@
1
+ def {{{ underscore rendered_children.name }}}({{> parameters}}):
2
+ {{> body}}
@@ -0,0 +1 @@
1
+ self{{#if has_parameters?}}, {{{join rendered_children.parameters ', '}}}{{/if}}
@@ -0,0 +1,4 @@
1
+ {{#if has_datasets?}}{{> item_as_def}}
2
+ {{{ rendered_children.datatable }}}
3
+ {{else}}def test_{{{ normalize rendered_children.name }}}({{> parameters}}):
4
+ {{> body}}{{/if}}
@@ -0,0 +1 @@
1
+ {{> item_as_def}}
@@ -0,0 +1,9 @@
1
+ # encoding: UTF-8
2
+
3
+ class Actionwords:
4
+ def __init__(self, test):
5
+ self.test = test
6
+ {{#indent}}
7
+ {{#each rendered_children.actionwords}}{{{this}}}
8
+ {{/each}}
9
+ {{/indent}}
@@ -0,0 +1 @@
1
+ {{{ underscore rendered_children.name }}} = {{{ 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 @@
1
+ self.{{#if context.call_prefix}}{{{ context.call_prefix }}}.{{/if}}{{{ underscore rendered_children.actionword }}}({{{ join rendered_children.arguments ', '}}})
@@ -0,0 +1,2 @@
1
+ def test_{{{ normalize scenario_name}}}_{{{ normalize_lower rendered_children.name}}}(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,4 @@
1
+ if ({{{ rendered_children.condition }}}):
2
+ {{#indent}}{{{ join rendered_children.then '\n'}}}{{/indent}}{{#if has_else?}}
3
+ else:
4
+ {{#indent}}{{{ join rendered_children.else '\n'}}}{{/indent}}{{/if}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
@@ -0,0 +1 @@
1
+ [{{{ join rendered_children.items ', '}}}]
@@ -0,0 +1,9 @@
1
+ [tests]
2
+ filename = 'test_project.py'
3
+ scenario_filename = 'test_%s.py'
4
+ call_prefix = 'actionwords'
5
+ indentation = " "
6
+
7
+ [actionwords]
8
+ filename = 'actionwords.py'
9
+ indentation = " "
@@ -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,2 @@
1
+ name: {{{ rendered_children.name }}}
2
+ description: {{{ rendered_children.description }}}
@@ -0,0 +1 @@
1
+ {{{ 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 project_name }}}(unittest.TestCase):
6
+ def setUp(self):
7
+ self.actionwords = Actionwords(self)
8
+ {{#indent}}
9
+ {{#each rendered_children.scenarios}}{{{this}}}
10
+ {{/each}}
11
+ {{/indent}}
@@ -0,0 +1,9 @@
1
+ # encoding: UTF-8
2
+ import unittest
3
+ from actionwords import Actionwords
4
+
5
+ class Test{{{ camelize project_name }}}(unittest.TestCase):
6
+ def setUp(self):
7
+ self.actionwords = Actionwords(self)
8
+ {{#indent}}
9
+ {{> scenario}}{{/indent}}
@@ -0,0 +1,9 @@
1
+ # encoding: UTF-8
2
+ import unittest
3
+ from actionwords import Actionwords
4
+
5
+ class Test{{{ camelize project_name }}}(unittest.TestCase):
6
+ def setUp(self):
7
+ self.actionwords = Actionwords(self)
8
+ {{#indent}}
9
+ {{> scenario}}{{/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}}{{#if this.is_variable?}}%s{{else}}{{{ escape_quotes this.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 project_name }}}(unittest.TestCase):
6
+ def setUp(self):
7
+ self.actionwords = Actionwords(self)
8
+ {{#indent}}
9
+ {{#each rendered_children.tests}}{{{this}}}
10
+ {{/each}}
11
+ {{/indent}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.operator }}}{{{ rendered_children.expression }}}