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,4 @@
1
+ while ({{{ rendered_children.condition }}}):{{#indent}}
2
+ {{#each rendered_children.body }}{{{this}}}
3
+ {{/each}}
4
+ {{/indent}}
@@ -0,0 +1,4 @@
1
+ {{{ underscore rendered_children.name }}}{{#indent}}
2
+ {{#if has_parameters?}}[Arguments]{{{ tab }}}{{{ join rendered_children.parameters "\t"}}}
3
+ {{/if}}{{#each rendered_children.body}}{{{ this }}}
4
+ {{/each}}{{/indent}}
@@ -0,0 +1,11 @@
1
+ {{#if has_datasets?}}
2
+ Test Template {{{ underscore rendered_children.name }}}
3
+
4
+ *** Test Cases ***{{#each node.children.parameters}}{{{ tab }}}{{{ this.children.name}}}{{/each}}
5
+ {{{ rendered_children.datatable }}}
6
+
7
+ *** Keywords ***
8
+ {{else}}
9
+ *** Test Cases ***
10
+ {{/if}}
11
+ {{> keyword}}
@@ -0,0 +1 @@
1
+ {{> keyword}}
@@ -0,0 +1,4 @@
1
+ *** Keywords ***
2
+ {{#each rendered_children.actionwords}}{{{this}}}
3
+
4
+ {{/each}}
@@ -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
+ {{{ underscore rendered_children.actionword }}}{{#if has_arguments?}}{{tab}}{{{ join rendered_children.arguments '\t'}}}{{/if}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.name}}}{{{ tab }}}{{{ join rendered_children.arguments '\t'}}}
@@ -0,0 +1,2 @@
1
+ {{#each rendered_children.datasets}}{{{this}}}
2
+ {{/each}}
@@ -0,0 +1 @@
1
+ {{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}.{{{ rendered_children.name }}}
@@ -0,0 +1 @@
1
+ # NOT SUPPORTED YET
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
@@ -0,0 +1 @@
1
+ [{{{ join rendered_children.items ', '}}}]
@@ -0,0 +1,8 @@
1
+ [tests]
2
+ filename = 'project.txt'
3
+ scenario_filename = 'test_%s.txt'
4
+ indentation = "\t"
5
+
6
+ [actionwords]
7
+ filename = 'keywords.txt'
8
+ indentation = "\t"
@@ -0,0 +1 @@
1
+ ${{#curly}}{{{ underscore rendered_children.name }}}{{/curly}}{{#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 @@
1
+ PLEASE USE THE --split-scenarios OPTION WHEN PUBLISHING
@@ -0,0 +1,11 @@
1
+ *** Settings ***
2
+ Documentation
3
+ {{#comment '... '}}{{#clear_empty_lines}}
4
+ {{{ rendered_children.description}}}
5
+ {{#if has_tags?}}
6
+ Tags: {{{ join rendered_children.tags ' '}}}
7
+ {{/if}}{{/clear_empty_lines}}{{/comment}}
8
+
9
+ Resource keywords.txt
10
+
11
+ {{> scenario}}
@@ -0,0 +1,11 @@
1
+ *** Settings ***
2
+ Documentation
3
+ {{#comment '... '}}{{#clear_empty_lines}}
4
+ {{{ rendered_children.description}}}
5
+ {{#if has_tags?}}
6
+ Tags: {{{ join rendered_children.tags ' '}}}
7
+ {{/if}}{{/clear_empty_lines}}{{/comment}}
8
+
9
+ Resource keywords.txt
10
+
11
+ {{> scenario}}
@@ -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
+ {{#each treated_chunks}}{{#if this.is_variable?}}${{#curly}}{{{this.raw.children.name}}}{{/curly}}{{else}}{{{ escape_quotes this.raw.children.value }}}{{/if}}{{/each}}
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1 @@
1
+ PLEASE USE THE --split-scenarios OPTION WHEN PUBLISHING
@@ -0,0 +1 @@
1
+ {{{ rendered_children.operator }}}{{{ rendered_children.expression }}}
@@ -0,0 +1 @@
1
+ ${{#curly}}{{ underscore rendered_children.name }}{{/curly}}
@@ -0,0 +1 @@
1
+ # NOT SUPPORTED YET
@@ -0,0 +1,9 @@
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
+ {{/indent}}
9
+ {{/clear_empty_lines}}
@@ -0,0 +1,3 @@
1
+ def {{ underscore rendered_children.name }}{{#if has_parameters?}}({{{ join rendered_children.parameters ', '}}}){{/if}}
2
+ {{> body}}
3
+ end
@@ -0,0 +1,5 @@
1
+ {{#if has_datasets?}}context "{{{ remove_quotes rendered_children.name }}}" do{{#indent}}
2
+ {{> item_as_def}}
3
+ {{{ rendered_children.datatable }}}{{/indent}}{{else}}it "{{{ remove_quotes rendered_children.name }}}" do
4
+ {{> body}}{{/if}}
5
+ end
@@ -0,0 +1 @@
1
+ {{> item_as_def}}
@@ -0,0 +1,6 @@
1
+ # encoding: UTF-8
2
+
3
+ module Actionwords{{#indent}}{{#each rendered_children.actionwords}}
4
+ {{{this}}}
5
+ {{/each}}{{/indent}}
6
+ end
@@ -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
+ {{{ underscore rendered_children.actionword }}}{{#if has_arguments?}}({{{ join rendered_children.arguments ', '}}}){{/if}}
@@ -0,0 +1,3 @@
1
+ it "{{{remove_quotes rendered_children.name}}}" do
2
+ {{{ underscore scenario_name }}}({{{ join rendered_children.arguments ', ' }}})
3
+ end
@@ -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 }}})
2
+ {{#indent}}{{#each rendered_children.then}}{{{this}}}{{/each}}
3
+ {{/indent}}
4
+ {{#if has_else?}}else
5
+ {{#indent}}{{#each rendered_children.else}}{{{this}}}{{/each}}
6
+ {{/indent}}
7
+ {{/if}}end
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
@@ -0,0 +1 @@
1
+ [{{{ join rendered_children.items ', '}}}]
@@ -0,0 +1,3 @@
1
+ def {{ underscore rendered_children.name }}{{#if has_parameters?}}({{{ join rendered_children.parameters ', '}}}){{/if}}
2
+ {{> body}}
3
+ end
@@ -0,0 +1,4 @@
1
+ {{#if has_datasets?}}{{> item_as_def}}
2
+ {{{ rendered_children.datatable }}}{{else}}def test_{{{ normalize rendered_children.name }}}
3
+ {{> body}}
4
+ end{{/if}}
@@ -0,0 +1,3 @@
1
+ def test_{{{ normalize scenario_name}}}_{{{ normalize_lower rendered_children.name}}}
2
+ {{{ underscore scenario_name }}}({{{ join rendered_children.arguments ', ' }}})
3
+ end
@@ -0,0 +1,6 @@
1
+ [tests]
2
+ filename = 'project_test.rb'
3
+ scenario_filename = '%s_test.rb'
4
+
5
+ [actionwords]
6
+ filename = 'actionwords.rb'
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,13 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'minitest/autorun'
4
+ require_relative 'actionwords'
5
+
6
+ class Test{{{ camelize project_name }}} < MiniTest::Unit::TestCase
7
+ include Actionwords
8
+ {{#indent}}
9
+ {{#each rendered_children.scenarios}}{{{this}}}
10
+
11
+ {{/each}}
12
+ {{/indent}}
13
+ end
@@ -0,0 +1,11 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'minitest/autorun'
4
+ require_relative 'actionwords'
5
+
6
+ class Test{{{ camelize project_name }}} < MiniTest::Unit::TestCase
7
+ include Actionwords
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ end
@@ -0,0 +1,11 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'minitest/autorun'
4
+ require_relative 'actionwords'
5
+
6
+ class Test{{{ camelize project_name }}} < MiniTest::Unit::TestCase
7
+ include Actionwords
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ end
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,13 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'minitest/autorun'
4
+ require_relative 'actionwords'
5
+
6
+ class Test{{{ camelize project_name }}} < MiniTest::Unit::TestCase
7
+ include Actionwords
8
+ {{#indent}}
9
+ {{#each rendered_children.tests}}{{{this}}}
10
+
11
+ {{/each}}
12
+ {{/indent}}
13
+ end
@@ -0,0 +1,6 @@
1
+ [tests]
2
+ filename = 'project_spec.rb'
3
+ scenario_filename = '%s_spec.rb'
4
+
5
+ [actionwords]
6
+ filename = 'actionwords.rb'
@@ -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,12 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+ require_relative 'actionwords'
4
+
5
+ describe '{{{ camelize project_name }}}' do
6
+ include Actionwords
7
+ {{#indent}}
8
+ {{#each rendered_children.scenarios}}{{{this}}}
9
+
10
+ {{/each}}
11
+ {{/indent}}
12
+ end
@@ -0,0 +1,11 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+ require_relative 'actionwords'
4
+
5
+ describe '{{{ camelize project_name }}}' do
6
+ include Actionwords
7
+
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ end
@@ -0,0 +1,11 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+ require_relative 'actionwords'
4
+
5
+ describe '{{{ camelize project_name }}}' do
6
+ include Actionwords
7
+
8
+ {{#indent}}
9
+ {{> scenario}}
10
+ {{/indent}}
11
+ end
@@ -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?}}#{{#curly}}{{{this.raw.children.name}}}{{/curly}}{{else}}{{{ escape_quotes this.raw.children.value }}}{{/if}}{{/each}}"
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,12 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+ require_relative 'actionwords'
4
+
5
+ describe '{{{ camelize project_name }}}' do
6
+ include Actionwords
7
+ {{#indent}}
8
+ {{#each rendered_children.tests}}{{{this}}}
9
+
10
+ {{/each}}
11
+ {{/indent}}
12
+ end
@@ -0,0 +1 @@
1
+ {{{ rendered_children.operator }}}{{{ rendered_children.expression }}}
@@ -0,0 +1,5 @@
1
+ while ({{{ rendered_children.condition }}}){{#indent}}
2
+ {{#each rendered_children.body }}{{{this}}}
3
+ {{/each}}
4
+ {{/indent}}
5
+ end
@@ -0,0 +1 @@
1
+ <td>{{{ rendered_children.value }}}</td>
@@ -0,0 +1,6 @@
1
+ <tr>{{#indent}}
2
+ <td>{{{ rendered_children.actionword}}}</td>
3
+ {{#each rendered_children.all_arguments}}{{{ this }}}
4
+ {{/each}}
5
+ {{/indent}}
6
+ </tr>
@@ -0,0 +1,9 @@
1
+ [tests]
2
+ filename = 'project.html'
3
+ scenario_filename = '%s.html'
4
+ call_prefix = ''
5
+ indentation = " "
6
+
7
+ [actionwords]
8
+ filename = 'actionwords.html'
9
+ indentation = " "
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">{{#indent}}
4
+ <head profile="http://selenium-ide.openqa.org/profiles/test-case">{{#indent}}
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <link rel="selenium.base" href="http://selenium.googlecode.com/" />
7
+ <title>{{{ rendered_children.name }}}</title>
8
+ {{/indent}}
9
+ </head>
10
+ <body>{{#indent}}
11
+ <table>{{#indent}}
12
+ <thead>{{#indent}}
13
+ <tr>{{#indent}}
14
+ <td colspan="3">{{{ rendered_children.name }}}</td>
15
+ {{/indent}}
16
+ </tr>
17
+ {{/indent}}
18
+ </thead>
19
+ <tbody>{{#indent}}
20
+ {{#each rendered_children.body}}{{{ this }}}
21
+ {{/each}}{{/indent}}
22
+ </tbody>
23
+ {{/indent}}
24
+ </table>
25
+ {{/indent}}
26
+ </body>
27
+ {{/indent}}
28
+ </html>