hiptest-publisher-fork 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (498) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +295 -0
  3. data/LICENSE +21 -0
  4. data/README.md +265 -0
  5. data/bin/hiptest-publisher +47 -0
  6. data/config/i18n-tasks.yml +137 -0
  7. data/config/locales/en.yml +250 -0
  8. data/lib/config/behat.conf +44 -0
  9. data/lib/config/behave.conf +40 -0
  10. data/lib/config/csharp-nunit.conf +15 -0
  11. data/lib/config/cucumber-groovy.conf +40 -0
  12. data/lib/config/cucumber-java.conf +24 -0
  13. data/lib/config/cucumber-javascript.conf +23 -0
  14. data/lib/config/cucumber-ruby.conf +22 -0
  15. data/lib/config/cucumber-typescript.conf +41 -0
  16. data/lib/config/cucumber_legacy-groovy.conf +40 -0
  17. data/lib/config/cucumber_legacy-java.conf +24 -0
  18. data/lib/config/cucumber_legacy-typescript.conf +41 -0
  19. data/lib/config/groovy-spock.conf +25 -0
  20. data/lib/config/java-espresso.conf +15 -0
  21. data/lib/config/java-junit.conf +21 -0
  22. data/lib/config/java-testng.conf +15 -0
  23. data/lib/config/javascript-codeceptjs.conf +23 -0
  24. data/lib/config/javascript-jasmine.conf +12 -0
  25. data/lib/config/javascript-mocha.conf +12 -0
  26. data/lib/config/javascript-protractor.conf +12 -0
  27. data/lib/config/javascript-qunit.conf +12 -0
  28. data/lib/config/jbehave.conf +24 -0
  29. data/lib/config/php-phpunit.conf +14 -0
  30. data/lib/config/python-unittest.conf +13 -0
  31. data/lib/config/robotframework.conf +13 -0
  32. data/lib/config/ruby-minitest.conf +11 -0
  33. data/lib/config/ruby-rspec.conf +11 -0
  34. data/lib/config/seleniumide.conf +12 -0
  35. data/lib/config/specflow.conf +25 -0
  36. data/lib/config/swift-xctest.conf +18 -0
  37. data/lib/hiptest-publisher/cli_options_checker.rb +270 -0
  38. data/lib/hiptest-publisher/client.rb +326 -0
  39. data/lib/hiptest-publisher/export_cache.rb +85 -0
  40. data/lib/hiptest-publisher/file_writer.rb +30 -0
  41. data/lib/hiptest-publisher/formatters/console_formatter.rb +101 -0
  42. data/lib/hiptest-publisher/formatters/diff_displayer.rb +173 -0
  43. data/lib/hiptest-publisher/formatters/reporter.rb +74 -0
  44. data/lib/hiptest-publisher/handlebars_helper.rb +314 -0
  45. data/lib/hiptest-publisher/i18n.rb +5 -0
  46. data/lib/hiptest-publisher/indexers/actionword_indexer.rb +32 -0
  47. data/lib/hiptest-publisher/indexers/library_actionword_indexer.rb +32 -0
  48. data/lib/hiptest-publisher/node_modifiers/actionword_uniq_renamer.rb +39 -0
  49. data/lib/hiptest-publisher/node_modifiers/add_all.rb +21 -0
  50. data/lib/hiptest-publisher/node_modifiers/call_arguments_adder.rb +46 -0
  51. data/lib/hiptest-publisher/node_modifiers/datatable_fixer.rb +32 -0
  52. data/lib/hiptest-publisher/node_modifiers/gherkin_adder.rb +252 -0
  53. data/lib/hiptest-publisher/node_modifiers/items_orderer.rb +33 -0
  54. data/lib/hiptest-publisher/node_modifiers/parameter_type_adder.rb +141 -0
  55. data/lib/hiptest-publisher/node_modifiers/parent_adder.rb +18 -0
  56. data/lib/hiptest-publisher/nodes.rb +601 -0
  57. data/lib/hiptest-publisher/nodes_walker.rb +34 -0
  58. data/lib/hiptest-publisher/options_parser.rb +826 -0
  59. data/lib/hiptest-publisher/project_grapher.rb +94 -0
  60. data/lib/hiptest-publisher/render_context_maker.rb +194 -0
  61. data/lib/hiptest-publisher/renderer.rb +52 -0
  62. data/lib/hiptest-publisher/renderer_addons/behave_addon.rb +23 -0
  63. data/lib/hiptest-publisher/renderer_addons/gherkin_addon.rb +59 -0
  64. data/lib/hiptest-publisher/renderer_addons/groovy_spock_addon.rb +34 -0
  65. data/lib/hiptest-publisher/renderer_addons/robot_framework_addon.rb +42 -0
  66. data/lib/hiptest-publisher/renderer_addons.rb +4 -0
  67. data/lib/hiptest-publisher/signature_differ.rb +105 -0
  68. data/lib/hiptest-publisher/signature_exporter.rb +56 -0
  69. data/lib/hiptest-publisher/string.rb +76 -0
  70. data/lib/hiptest-publisher/utils.rb +39 -0
  71. data/lib/hiptest-publisher/version_checker.rb +41 -0
  72. data/lib/hiptest-publisher/xml_parser.rb +407 -0
  73. data/lib/hiptest-publisher.rb +261 -0
  74. data/lib/templates/behat/actionword.hbs +8 -0
  75. data/lib/templates/behat/actionwords/parameter.hbs +1 -0
  76. data/lib/templates/behat/actionwords.hbs +16 -0
  77. data/lib/templates/behat/library.hbs +16 -0
  78. data/lib/templates/behat/libraryactionword.hbs +8 -0
  79. data/lib/templates/behat/parameter.hbs +1 -0
  80. data/lib/templates/behave/actionword.hbs +4 -0
  81. data/lib/templates/behave/actionwords.hbs +12 -0
  82. data/lib/templates/behave/library.hbs +7 -0
  83. data/lib/templates/behave/libraryactionword.hbs +4 -0
  84. data/lib/templates/behave/nullliteral.hbs +1 -0
  85. data/lib/templates/common/_gherkin_pattern.hbs +1 -0
  86. data/lib/templates/common/_gherkin_typed_pattern.hbs +1 -0
  87. data/lib/templates/common/booleanliteral.hbs +1 -0
  88. data/lib/templates/common/dataset.hbs +0 -0
  89. data/lib/templates/common/datatable.hbs +3 -0
  90. data/lib/templates/common/empty.hbs +0 -0
  91. data/lib/templates/common/nullliteral.hbs +1 -0
  92. data/lib/templates/common/numericliteral.hbs +1 -0
  93. data/lib/templates/common/stringliteral.hbs +1 -0
  94. data/lib/templates/common/symbol.hbs +1 -0
  95. data/lib/templates/common/unaryexpression.hbs +1 -0
  96. data/lib/templates/common/variable.hbs +1 -0
  97. data/lib/templates/csharp/_body.hbs +5 -0
  98. data/lib/templates/csharp/_item_as_function.hbs +8 -0
  99. data/lib/templates/csharp/_scenario.hbs +8 -0
  100. data/lib/templates/csharp/actionword.hbs +1 -0
  101. data/lib/templates/csharp/actionwords.hbs +10 -0
  102. data/lib/templates/csharp/argument.hbs +1 -0
  103. data/lib/templates/csharp/assign.hbs +1 -0
  104. data/lib/templates/csharp/binaryexpression.hbs +1 -0
  105. data/lib/templates/csharp/call.hbs +2 -0
  106. data/lib/templates/csharp/dataset.hbs +4 -0
  107. data/lib/templates/csharp/dict.hbs +1 -0
  108. data/lib/templates/csharp/field.hbs +1 -0
  109. data/lib/templates/csharp/folder.hbs +22 -0
  110. data/lib/templates/csharp/ifthen.hbs +7 -0
  111. data/lib/templates/csharp/index.hbs +1 -0
  112. data/lib/templates/csharp/list.hbs +1 -0
  113. data/lib/templates/csharp/nullliteral.hbs +1 -0
  114. data/lib/templates/csharp/parameter.hbs +1 -0
  115. data/lib/templates/csharp/parenthesis.hbs +1 -0
  116. data/lib/templates/csharp/property.hbs +1 -0
  117. data/lib/templates/csharp/scenario.hbs +1 -0
  118. data/lib/templates/csharp/scenarios.hbs +20 -0
  119. data/lib/templates/csharp/single_scenario.hbs +16 -0
  120. data/lib/templates/csharp/single_test.hbs +15 -0
  121. data/lib/templates/csharp/step.hbs +1 -0
  122. data/lib/templates/csharp/stringliteral.hbs +1 -0
  123. data/lib/templates/csharp/tag.hbs +1 -0
  124. data/lib/templates/csharp/template.hbs +1 -0
  125. data/lib/templates/csharp/test.hbs +1 -0
  126. data/lib/templates/csharp/tests.hbs +15 -0
  127. data/lib/templates/csharp/variable.hbs +1 -0
  128. data/lib/templates/csharp/while.hbs +4 -0
  129. data/lib/templates/cucumber/actionword.hbs +5 -0
  130. data/lib/templates/cucumber/actionwords.hbs +5 -0
  131. data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -0
  132. data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +5 -0
  133. data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +11 -0
  134. data/lib/templates/cucumber/groovy/step-definitions/library.hbs +11 -0
  135. data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +5 -0
  136. data/lib/templates/cucumber/groovy/step-definitions/parameter.hbs +1 -0
  137. data/lib/templates/cucumber/java/actionword.hbs +6 -0
  138. data/lib/templates/cucumber/java/actionwords/parameter.hbs +1 -0
  139. data/lib/templates/cucumber/java/actionwords.hbs +12 -0
  140. data/lib/templates/cucumber/java/parameter.hbs +1 -0
  141. data/lib/templates/cucumber/javascript/_after_hook.hbs +4 -0
  142. data/lib/templates/cucumber/javascript/_before_hook.hbs +4 -0
  143. data/lib/templates/cucumber/javascript/actionword.hbs +6 -0
  144. data/lib/templates/cucumber/javascript/actionwords.hbs +8 -0
  145. data/lib/templates/cucumber/parameter.hbs +1 -0
  146. data/lib/templates/cucumber/typescript/_after_hook.hbs +4 -0
  147. data/lib/templates/cucumber/typescript/_before_hook.hbs +4 -0
  148. data/lib/templates/cucumber/typescript/actionword.hbs +5 -0
  149. data/lib/templates/cucumber/typescript/actionwords.hbs +10 -0
  150. data/lib/templates/cucumber/typescript/library.hbs +12 -0
  151. data/lib/templates/cucumber/typescript/libraryactionword.hbs +5 -0
  152. data/lib/templates/cucumber_legacy/groovy/step-definitions/actionword.hbs +5 -0
  153. data/lib/templates/cucumber_legacy/groovy/step-definitions/actionwords.hbs +10 -0
  154. data/lib/templates/cucumber_legacy/groovy/step-definitions/library.hbs +10 -0
  155. data/lib/templates/cucumber_legacy/groovy/step-definitions/libraryactionword.hbs +5 -0
  156. data/lib/templates/cucumber_legacy/java/actionword.hbs +6 -0
  157. data/lib/templates/cucumber_legacy/java/actionwords.hbs +12 -0
  158. data/lib/templates/cucumber_legacy/typescript/actionword.hbs +5 -0
  159. data/lib/templates/cucumber_legacy/typescript/libraryactionword.hbs +5 -0
  160. data/lib/templates/gherkin/_call.hbs +5 -0
  161. data/lib/templates/gherkin/_gherkin_text.hbs +1 -0
  162. data/lib/templates/gherkin/_scenario.hbs +18 -0
  163. data/lib/templates/gherkin/_scenario_outline_title.hbs +1 -0
  164. data/lib/templates/gherkin/argument.hbs +1 -0
  165. data/lib/templates/gherkin/call.hbs +1 -0
  166. data/lib/templates/gherkin/dataset.hbs +1 -0
  167. data/lib/templates/gherkin/datatable.hbs +2 -0
  168. data/lib/templates/gherkin/folder.hbs +10 -0
  169. data/lib/templates/gherkin/inlined_uids/_scenario_outline_title.hbs +1 -0
  170. data/lib/templates/gherkin/java/single_scenario.hbs +1 -0
  171. data/lib/templates/gherkin/parameter.hbs +1 -0
  172. data/lib/templates/gherkin/scenarios.hbs +3 -0
  173. data/lib/templates/gherkin/single_scenario.hbs +1 -0
  174. data/lib/templates/gherkin/single_test.hbs +3 -0
  175. data/lib/templates/gherkin/step.hbs +1 -0
  176. data/lib/templates/gherkin/stringliteral.hbs +1 -0
  177. data/lib/templates/gherkin/tag.hbs +1 -0
  178. data/lib/templates/gherkin/template.hbs +1 -0
  179. data/lib/templates/groovy/_body.hbs +8 -0
  180. data/lib/templates/groovy/_desc.hbs +5 -0
  181. data/lib/templates/groovy/_scenario.hbs +10 -0
  182. data/lib/templates/groovy/_steps.hbs +4 -0
  183. data/lib/templates/groovy/_test.hbs +4 -0
  184. data/lib/templates/groovy/actionword.hbs +2 -0
  185. data/lib/templates/groovy/actionwords.hbs +7 -0
  186. data/lib/templates/groovy/assign.hbs +1 -0
  187. data/lib/templates/groovy/call.hbs +2 -0
  188. data/lib/templates/groovy/dataset.hbs +1 -0
  189. data/lib/templates/groovy/datatable.hbs +2 -0
  190. data/lib/templates/groovy/dict.hbs +1 -0
  191. data/lib/templates/groovy/folder.hbs +18 -0
  192. data/lib/templates/groovy/index.hbs +1 -0
  193. data/lib/templates/groovy/libraries.hbs +9 -0
  194. data/lib/templates/groovy/library.hbs +8 -0
  195. data/lib/templates/groovy/libraryactionword.hbs +2 -0
  196. data/lib/templates/groovy/list.hbs +1 -0
  197. data/lib/templates/groovy/nullliteral.hbs +1 -0
  198. data/lib/templates/groovy/parameter.hbs +1 -0
  199. data/lib/templates/groovy/property.hbs +1 -0
  200. data/lib/templates/groovy/scenario.hbs +1 -0
  201. data/lib/templates/groovy/scenarios.hbs +10 -0
  202. data/lib/templates/groovy/single_scenario.hbs +9 -0
  203. data/lib/templates/groovy/single_test.hbs +10 -0
  204. data/lib/templates/groovy/template.hbs +1 -0
  205. data/lib/templates/groovy/test.hbs +1 -0
  206. data/lib/templates/groovy/tests.hbs +10 -0
  207. data/lib/templates/java/_body.hbs +5 -0
  208. data/lib/templates/java/_item_as_function.hbs +8 -0
  209. data/lib/templates/java/_scenario.hbs +7 -0
  210. data/lib/templates/java/actionword.hbs +1 -0
  211. data/lib/templates/java/actionwords.hbs +8 -0
  212. data/lib/templates/java/argument.hbs +1 -0
  213. data/lib/templates/java/assign.hbs +1 -0
  214. data/lib/templates/java/binaryexpression.hbs +1 -0
  215. data/lib/templates/java/call.hbs +2 -0
  216. data/lib/templates/java/dataset.hbs +3 -0
  217. data/lib/templates/java/dict.hbs +1 -0
  218. data/lib/templates/java/espresso/_scenario.hbs +8 -0
  219. data/lib/templates/java/espresso/dataset.hbs +4 -0
  220. data/lib/templates/java/espresso/folder.hbs +29 -0
  221. data/lib/templates/java/espresso/scenarios.hbs +23 -0
  222. data/lib/templates/java/espresso/single_scenario.hbs +24 -0
  223. data/lib/templates/java/espresso/single_test.hbs +22 -0
  224. data/lib/templates/java/espresso/tests.hbs +23 -0
  225. data/lib/templates/java/field.hbs +1 -0
  226. data/lib/templates/java/folder.hbs +18 -0
  227. data/lib/templates/java/ifthen.hbs +7 -0
  228. data/lib/templates/java/index.hbs +1 -0
  229. data/lib/templates/java/libraries.hbs +9 -0
  230. data/lib/templates/java/library.hbs +7 -0
  231. data/lib/templates/java/libraryactionword.hbs +1 -0
  232. data/lib/templates/java/list.hbs +1 -0
  233. data/lib/templates/java/nullliteral.hbs +1 -0
  234. data/lib/templates/java/parameter.hbs +1 -0
  235. data/lib/templates/java/parenthesis.hbs +1 -0
  236. data/lib/templates/java/property.hbs +1 -0
  237. data/lib/templates/java/scenario.hbs +1 -0
  238. data/lib/templates/java/scenarios.hbs +11 -0
  239. data/lib/templates/java/single_scenario.hbs +12 -0
  240. data/lib/templates/java/single_test.hbs +11 -0
  241. data/lib/templates/java/step.hbs +1 -0
  242. data/lib/templates/java/stringliteral.hbs +1 -0
  243. data/lib/templates/java/tag.hbs +1 -0
  244. data/lib/templates/java/template.hbs +1 -0
  245. data/lib/templates/java/test.hbs +1 -0
  246. data/lib/templates/java/testng/_scenario.hbs +8 -0
  247. data/lib/templates/java/testng/dataset.hbs +4 -0
  248. data/lib/templates/java/testng/folder.hbs +19 -0
  249. data/lib/templates/java/testng/scenarios.hbs +16 -0
  250. data/lib/templates/java/testng/single_scenario.hbs +12 -0
  251. data/lib/templates/java/testng/single_test.hbs +11 -0
  252. data/lib/templates/java/testng/tests.hbs +16 -0
  253. data/lib/templates/java/tests.hbs +11 -0
  254. data/lib/templates/java/variable.hbs +1 -0
  255. data/lib/templates/java/while.hbs +4 -0
  256. data/lib/templates/javascript/_body.hbs +10 -0
  257. data/lib/templates/javascript/_item_as_function.hbs +3 -0
  258. data/lib/templates/javascript/_item_as_hash_key.hbs +3 -0
  259. data/lib/templates/javascript/_module_declaration.hbs +5 -0
  260. data/lib/templates/javascript/_scenario.hbs +4 -0
  261. data/lib/templates/javascript/actionword.hbs +1 -0
  262. data/lib/templates/javascript/actionwords.hbs +4 -0
  263. data/lib/templates/javascript/argument.hbs +1 -0
  264. data/lib/templates/javascript/assign.hbs +1 -0
  265. data/lib/templates/javascript/binaryexpression.hbs +1 -0
  266. data/lib/templates/javascript/call.hbs +2 -0
  267. data/lib/templates/javascript/codeceptjs/actionword.hbs +5 -0
  268. data/lib/templates/javascript/codeceptjs/actionwords.hbs +9 -0
  269. data/lib/templates/javascript/dataset.hbs +3 -0
  270. data/lib/templates/javascript/dict.hbs +1 -0
  271. data/lib/templates/javascript/es6/actionwords.hbs +4 -0
  272. data/lib/templates/javascript/field.hbs +1 -0
  273. data/lib/templates/javascript/folder.hbs +14 -0
  274. data/lib/templates/javascript/ifthen.hbs +7 -0
  275. data/lib/templates/javascript/index.hbs +1 -0
  276. data/lib/templates/javascript/jasmine/_before_each.hbs +3 -0
  277. data/lib/templates/javascript/jasmine/_scenario.hbs +8 -0
  278. data/lib/templates/javascript/jasmine/dataset.hbs +3 -0
  279. data/lib/templates/javascript/jasmine/folder.hbs +11 -0
  280. data/lib/templates/javascript/jasmine/scenarios.hbs +8 -0
  281. data/lib/templates/javascript/jasmine/single_scenario.hbs +6 -0
  282. data/lib/templates/javascript/jasmine/single_test.hbs +6 -0
  283. data/lib/templates/javascript/jasmine/tests.hbs +8 -0
  284. data/lib/templates/javascript/list.hbs +1 -0
  285. data/lib/templates/javascript/mocha/_before_each.hbs +4 -0
  286. data/lib/templates/javascript/mocha/folder.hbs +11 -0
  287. data/lib/templates/javascript/nullliteral.hbs +1 -0
  288. data/lib/templates/javascript/parameter.hbs +1 -0
  289. data/lib/templates/javascript/parenthesis.hbs +1 -0
  290. data/lib/templates/javascript/project.hbs +2 -0
  291. data/lib/templates/javascript/property.hbs +1 -0
  292. data/lib/templates/javascript/scenario.hbs +1 -0
  293. data/lib/templates/javascript/scenarios.hbs +8 -0
  294. data/lib/templates/javascript/single_scenario.hbs +6 -0
  295. data/lib/templates/javascript/single_test.hbs +6 -0
  296. data/lib/templates/javascript/step.hbs +1 -0
  297. data/lib/templates/javascript/tag.hbs +1 -0
  298. data/lib/templates/javascript/template.hbs +1 -0
  299. data/lib/templates/javascript/test.hbs +1 -0
  300. data/lib/templates/javascript/tests.hbs +8 -0
  301. data/lib/templates/javascript/while.hbs +5 -0
  302. data/lib/templates/jbehave/_scenario.hbs +9 -0
  303. data/lib/templates/jbehave/actionwords/parameter.hbs +1 -0
  304. data/lib/templates/jbehave/call.hbs +5 -0
  305. data/lib/templates/jbehave/folder.hbs +16 -0
  306. data/lib/templates/jbehave/single_test.hbs +3 -0
  307. data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -0
  308. data/lib/templates/jbehave/steps/actionword.hbs +6 -0
  309. data/lib/templates/jbehave/steps/actionwords.hbs +18 -0
  310. data/lib/templates/php/_body.hbs +9 -0
  311. data/lib/templates/php/_item_as_function.hbs +3 -0
  312. data/lib/templates/php/_scenario.hbs +4 -0
  313. data/lib/templates/php/_setup.hbs +4 -0
  314. data/lib/templates/php/actionword.hbs +1 -0
  315. data/lib/templates/php/actionwords.hbs +9 -0
  316. data/lib/templates/php/argument.hbs +1 -0
  317. data/lib/templates/php/assign.hbs +1 -0
  318. data/lib/templates/php/binaryexpression.hbs +1 -0
  319. data/lib/templates/php/call.hbs +2 -0
  320. data/lib/templates/php/dataset.hbs +3 -0
  321. data/lib/templates/php/dict.hbs +1 -0
  322. data/lib/templates/php/field.hbs +1 -0
  323. data/lib/templates/php/folder.hbs +17 -0
  324. data/lib/templates/php/ifthen.hbs +7 -0
  325. data/lib/templates/php/index.hbs +1 -0
  326. data/lib/templates/php/libraries.hbs +11 -0
  327. data/lib/templates/php/library.hbs +20 -0
  328. data/lib/templates/php/libraryactionword.hbs +1 -0
  329. data/lib/templates/php/list.hbs +1 -0
  330. data/lib/templates/php/nullliteral.hbs +1 -0
  331. data/lib/templates/php/parameter.hbs +1 -0
  332. data/lib/templates/php/parenthesis.hbs +1 -0
  333. data/lib/templates/php/project.hbs +2 -0
  334. data/lib/templates/php/property.hbs +1 -0
  335. data/lib/templates/php/scenario.hbs +1 -0
  336. data/lib/templates/php/scenarios.hbs +13 -0
  337. data/lib/templates/php/single_scenario.hbs +11 -0
  338. data/lib/templates/php/single_test.hbs +11 -0
  339. data/lib/templates/php/step.hbs +1 -0
  340. data/lib/templates/php/tag.hbs +1 -0
  341. data/lib/templates/php/template.hbs +1 -0
  342. data/lib/templates/php/test.hbs +1 -0
  343. data/lib/templates/php/tests.hbs +13 -0
  344. data/lib/templates/php/variable.hbs +1 -0
  345. data/lib/templates/php/while.hbs +5 -0
  346. data/lib/templates/python/_body.hbs +11 -0
  347. data/lib/templates/python/_item_as_def.hbs +2 -0
  348. data/lib/templates/python/_parameters.hbs +1 -0
  349. data/lib/templates/python/_scenario.hbs +4 -0
  350. data/lib/templates/python/actionword.hbs +1 -0
  351. data/lib/templates/python/actionwords.hbs +12 -0
  352. data/lib/templates/python/argument.hbs +1 -0
  353. data/lib/templates/python/assign.hbs +1 -0
  354. data/lib/templates/python/binaryexpression.hbs +1 -0
  355. data/lib/templates/python/booleanliteral.hbs +1 -0
  356. data/lib/templates/python/call.hbs +2 -0
  357. data/lib/templates/python/dataset.hbs +2 -0
  358. data/lib/templates/python/dict.hbs +1 -0
  359. data/lib/templates/python/field.hbs +1 -0
  360. data/lib/templates/python/folder.hbs +12 -0
  361. data/lib/templates/python/ifthen.hbs +4 -0
  362. data/lib/templates/python/index.hbs +1 -0
  363. data/lib/templates/python/libraries.hbs +9 -0
  364. data/lib/templates/python/library.hbs +17 -0
  365. data/lib/templates/python/libraryactionword.hbs +1 -0
  366. data/lib/templates/python/list.hbs +1 -0
  367. data/lib/templates/python/nullliteral.hbs +1 -0
  368. data/lib/templates/python/parameter.hbs +1 -0
  369. data/lib/templates/python/parenthesis.hbs +1 -0
  370. data/lib/templates/python/project.hbs +2 -0
  371. data/lib/templates/python/property.hbs +1 -0
  372. data/lib/templates/python/scenario.hbs +1 -0
  373. data/lib/templates/python/scenarios.hbs +11 -0
  374. data/lib/templates/python/single_scenario.hbs +9 -0
  375. data/lib/templates/python/single_test.hbs +9 -0
  376. data/lib/templates/python/step.hbs +1 -0
  377. data/lib/templates/python/tag.hbs +1 -0
  378. data/lib/templates/python/template.hbs +1 -0
  379. data/lib/templates/python/test.hbs +1 -0
  380. data/lib/templates/python/tests.hbs +11 -0
  381. data/lib/templates/python/unittest/actionwords.hbs +9 -0
  382. data/lib/templates/python/while.hbs +4 -0
  383. data/lib/templates/robotframework/_keyword.hbs +1 -0
  384. data/lib/templates/robotframework/_keyword_body.hbs +4 -0
  385. data/lib/templates/robotframework/_scenario.hbs +12 -0
  386. data/lib/templates/robotframework/actionword.hbs +3 -0
  387. data/lib/templates/robotframework/actionwords.hbs +4 -0
  388. data/lib/templates/robotframework/argument.hbs +1 -0
  389. data/lib/templates/robotframework/call.hbs +1 -0
  390. data/lib/templates/robotframework/dataset.hbs +1 -0
  391. data/lib/templates/robotframework/datatable.hbs +2 -0
  392. data/lib/templates/robotframework/folder.hbs +35 -0
  393. data/lib/templates/robotframework/ifthen.hbs +1 -0
  394. data/lib/templates/robotframework/parameter.hbs +1 -0
  395. data/lib/templates/robotframework/property.hbs +1 -0
  396. data/lib/templates/robotframework/scenarios.hbs +25 -0
  397. data/lib/templates/robotframework/single_scenario.hbs +10 -0
  398. data/lib/templates/robotframework/single_test.hbs +10 -0
  399. data/lib/templates/robotframework/stringliteral.hbs +1 -0
  400. data/lib/templates/robotframework/template.hbs +1 -0
  401. data/lib/templates/robotframework/test.hbs +1 -0
  402. data/lib/templates/robotframework/tests.hbs +7 -0
  403. data/lib/templates/robotframework/variable.hbs +1 -0
  404. data/lib/templates/robotframework/while.hbs +1 -0
  405. data/lib/templates/ruby/_body.hbs +10 -0
  406. data/lib/templates/ruby/_item_as_def.hbs +3 -0
  407. data/lib/templates/ruby/_scenario.hbs +5 -0
  408. data/lib/templates/ruby/actionword.hbs +1 -0
  409. data/lib/templates/ruby/actionwords.hbs +6 -0
  410. data/lib/templates/ruby/argument.hbs +1 -0
  411. data/lib/templates/ruby/assign.hbs +1 -0
  412. data/lib/templates/ruby/binaryexpression.hbs +1 -0
  413. data/lib/templates/ruby/call.hbs +2 -0
  414. data/lib/templates/ruby/dataset.hbs +3 -0
  415. data/lib/templates/ruby/dict.hbs +1 -0
  416. data/lib/templates/ruby/field.hbs +1 -0
  417. data/lib/templates/ruby/folder.hbs +16 -0
  418. data/lib/templates/ruby/ifthen.hbs +7 -0
  419. data/lib/templates/ruby/index.hbs +1 -0
  420. data/lib/templates/ruby/list.hbs +1 -0
  421. data/lib/templates/ruby/minitest/_item_as_def.hbs +3 -0
  422. data/lib/templates/ruby/minitest/_scenario.hbs +4 -0
  423. data/lib/templates/ruby/minitest/dataset.hbs +3 -0
  424. data/lib/templates/ruby/minitest/folder.hbs +18 -0
  425. data/lib/templates/ruby/minitest/scenario.hbs +1 -0
  426. data/lib/templates/ruby/minitest/scenarios.hbs +13 -0
  427. data/lib/templates/ruby/minitest/single_scenario.hbs +11 -0
  428. data/lib/templates/ruby/minitest/single_test.hbs +11 -0
  429. data/lib/templates/ruby/minitest/test.hbs +1 -0
  430. data/lib/templates/ruby/minitest/tests.hbs +13 -0
  431. data/lib/templates/ruby/parameter.hbs +1 -0
  432. data/lib/templates/ruby/parenthesis.hbs +1 -0
  433. data/lib/templates/ruby/project.hbs +2 -0
  434. data/lib/templates/ruby/property.hbs +1 -0
  435. data/lib/templates/ruby/scenario.hbs +1 -0
  436. data/lib/templates/ruby/scenarios.hbs +12 -0
  437. data/lib/templates/ruby/single_scenario.hbs +11 -0
  438. data/lib/templates/ruby/single_test.hbs +11 -0
  439. data/lib/templates/ruby/step.hbs +1 -0
  440. data/lib/templates/ruby/symbol.hbs +1 -0
  441. data/lib/templates/ruby/tag.hbs +1 -0
  442. data/lib/templates/ruby/template.hbs +1 -0
  443. data/lib/templates/ruby/test.hbs +1 -0
  444. data/lib/templates/ruby/tests.hbs +12 -0
  445. data/lib/templates/ruby/while.hbs +5 -0
  446. data/lib/templates/seleniumide/argument.hbs +1 -0
  447. data/lib/templates/seleniumide/call.hbs +6 -0
  448. data/lib/templates/seleniumide/single_test.hbs +28 -0
  449. data/lib/templates/seleniumide/step.hbs +0 -0
  450. data/lib/templates/seleniumide/stringliteral.hbs +1 -0
  451. data/lib/templates/seleniumide/template.hbs +1 -0
  452. data/lib/templates/seleniumide/test.hbs +4 -0
  453. data/lib/templates/seleniumide/tests.hbs +19 -0
  454. data/lib/templates/specflow/actionword.hbs +6 -0
  455. data/lib/templates/specflow/actionwords/parameter.hbs +1 -0
  456. data/lib/templates/specflow/actionwords.hbs +14 -0
  457. data/lib/templates/specflow/gherkin/tag.hbs +1 -0
  458. data/lib/templates/specflow/parameter.hbs +1 -0
  459. data/lib/templates/swift/_body.hbs +11 -0
  460. data/lib/templates/swift/_item_as_def.hbs +5 -0
  461. data/lib/templates/swift/_scenario.hbs +7 -0
  462. data/lib/templates/swift/actionword.hbs +1 -0
  463. data/lib/templates/swift/actionwords.hbs +6 -0
  464. data/lib/templates/swift/argument.hbs +1 -0
  465. data/lib/templates/swift/assign.hbs +1 -0
  466. data/lib/templates/swift/binaryexpression.hbs +1 -0
  467. data/lib/templates/swift/call.hbs +2 -0
  468. data/lib/templates/swift/dataset.hbs +4 -0
  469. data/lib/templates/swift/dict.hbs +1 -0
  470. data/lib/templates/swift/field.hbs +1 -0
  471. data/lib/templates/swift/folder.hbs +23 -0
  472. data/lib/templates/swift/ifthen.hbs +7 -0
  473. data/lib/templates/swift/index.hbs +1 -0
  474. data/lib/templates/swift/list.hbs +1 -0
  475. data/lib/templates/swift/parameter.hbs +1 -0
  476. data/lib/templates/swift/parenthesis.hbs +1 -0
  477. data/lib/templates/swift/project.hbs +2 -0
  478. data/lib/templates/swift/property.hbs +1 -0
  479. data/lib/templates/swift/scenario.hbs +1 -0
  480. data/lib/templates/swift/scenarios.hbs +25 -0
  481. data/lib/templates/swift/single_scenario.hbs +24 -0
  482. data/lib/templates/swift/single_test.hbs +23 -0
  483. data/lib/templates/swift/step.hbs +1 -0
  484. data/lib/templates/swift/stringliteral.hbs +1 -0
  485. data/lib/templates/swift/symbol.hbs +1 -0
  486. data/lib/templates/swift/tag.hbs +1 -0
  487. data/lib/templates/swift/template.hbs +1 -0
  488. data/lib/templates/swift/test.hbs +1 -0
  489. data/lib/templates/swift/tests.hbs +25 -0
  490. data/lib/templates/swift/while.hbs +5 -0
  491. data/lib/templates/typescript/_item_as_function.hbs +3 -0
  492. data/lib/templates/typescript/actionword.hbs +1 -0
  493. data/lib/templates/typescript/actionwords.hbs +7 -0
  494. data/lib/templates/typescript/libraries.hbs +9 -0
  495. data/lib/templates/typescript/library.hbs +18 -0
  496. data/lib/templates/typescript/libraryactionword.hbs +1 -0
  497. data/lib/templates/typescript/parameter.hbs +1 -0
  498. metadata +783 -0
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}}
2
+
3
+ import io.cucumber.datatable.DataTable
4
+ import io.cucumber.groovy.EN
5
+
6
+ this.metaClass.mixin(EN)
7
+
8
+ Actionwords {{{ context.call_prefix }}} = new Actionwords()
9
+
10
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
11
+ {{/each}}
@@ -0,0 +1,11 @@
1
+ package {{{ context.package }}}
2
+
3
+ import io.cucumber.datatable.DataTable
4
+ import io.cucumber.groovy.EN
5
+
6
+ this.metaClass.mixin(EN)
7
+
8
+ Actionwords {{{ context.call_prefix }}} = new Actionwords()
9
+
10
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
11
+ {{/each}}
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation }}{{{ rendered_children.gherkin_annotation }}}("{{#escape_backslashes_and_double_quotes}}{{> gherkin_typed_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 ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}})
3
+ {{/indent}}
4
+ }
5
+ {{/if}}
@@ -0,0 +1 @@
1
+ {{#if is_datatable?}}DataTable{{else}}{{#if is_bool?}}boolean{{else}}{{{ node.type }}}{{/if}}{{/if}} {{{ camelize_lower rendered_children.name }}}
@@ -0,0 +1,6 @@
1
+ {{#if rendered_children.gherkin_annotation }}@{{{ rendered_children.gherkin_annotation }}}("{{#escape_backslashes_and_double_quotes}}{{> gherkin_typed_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 @@
1
+ {{#if is_datatable?}}DataTable{{else}}{{#if is_bool?}}boolean{{else}}{{{ node.type }}}{{/if}}{{/if}} {{{ camelize_lower rendered_children.name }}}
@@ -0,0 +1,12 @@
1
+ package {{{ context.package }}};
2
+
3
+ import io.cucumber.datatable.DataTable;
4
+ import io.cucumber.java.en.*;
5
+
6
+ public class StepDefinitions {{#curly}}{{#indent}}
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
+ {{/each}}
11
+ {{/indent}}
12
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{#if is_datatable?}}DataTable{{else}}{{#if is_bool?}}boolean{{else}}{{{ node.type }}}{{/if}}{{/if}} {{{ camelize_lower rendered_children.name }}}
@@ -0,0 +1,4 @@
1
+ this.After(function (scenario) {{#curly}}{{#indent}}
2
+ this.actionwords = null;
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,4 @@
1
+ this.Before(function (scenario) {{#curly}}{{#indent}}
2
+ this.actionwords = Object.create(require('{{{ relative_path './actionwords.js' }}}').Actionwords);
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,6 @@
1
+ {{#if rendered_children.gherkin_annotation }}
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 ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
+ callback();
5
+ {{/indent}}
6
+ {{/curly}});{{/if}}
@@ -0,0 +1,8 @@
1
+ module.exports = function () {{#curly}}{{#indent}}
2
+ {{> before_hook}}
3
+
4
+ {{> after_hook}}
5
+
6
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
7
+ {{/each}}{{/indent}}
8
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{{ underscore rendered_children.name }}}
@@ -0,0 +1,4 @@
1
+ After(async () => {{#curly}}{{#indent}}
2
+
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,4 @@
1
+ Before(async () => {{#curly}}{{#indent}}
2
+ actionWords = new ActionWords();
3
+ {{/indent}}
4
+ {{/curly}});
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation }}
2
+ {{{ rendered_children.gherkin_annotation }}}('{{> gherkin_typed_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 ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
+ {{/indent}}
5
+ {{/curly}});{{/if}}
@@ -0,0 +1,10 @@
1
+ import { After, Before, Given, When, Then, TableDefinition } from "cucumber";
2
+ import { ActionWords } from './actionwords';
3
+
4
+ let actionWords : ActionWords;
5
+ {{> before_hook}}
6
+
7
+ {{> after_hook}}
8
+
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
+ {{/each}}
@@ -0,0 +1,12 @@
1
+ import { After, Before, Given, When, Then, TableDefinition } from "cucumber";
2
+ import { ActionwordLibrary } from "./actionword_library";
3
+
4
+ let libraryActionWord : ActionwordLibrary
5
+ Before(async () => {
6
+ libraryActionWord = new ActionwordLibrary();
7
+ });
8
+
9
+ {{> after_hook}}
10
+
11
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
12
+ {{/each}}
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation}}
2
+ {{{ rendered_children.gherkin_annotation }}}('{{> gherkin_typed_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 ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
+ {{/indent}}
5
+ {{/curly}});{{/if}}
@@ -0,0 +1,5 @@
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 ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}})
3
+ {{/indent}}
4
+ }
5
+ {{/if}}
@@ -0,0 +1,10 @@
1
+ package {{{ context.package }}}
2
+
3
+ import cucumber.api.DataTable
4
+
5
+ this.metaClass.mixin(cucumber.api.groovy.EN)
6
+
7
+ Actionwords {{{ context.call_prefix }}} = new Actionwords()
8
+
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
+ {{/each}}
@@ -0,0 +1,10 @@
1
+ package {{{ context.package }}}
2
+
3
+ import cucumber.api.DataTable
4
+
5
+ this.metaClass.mixin(cucumber.api.groovy.EN)
6
+
7
+ Actionwords {{{ context.call_prefix }}} = new Actionwords()
8
+
9
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
10
+ {{/each}}
@@ -0,0 +1,5 @@
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 ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}})
3
+ {{/indent}}
4
+ }
5
+ {{/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,12 @@
1
+ package {{{ context.package }}};
2
+
3
+ import cucumber.api.DataTable;
4
+ import cucumber.api.java.en.*;
5
+
6
+ public class StepDefinitions {{#curly}}{{#indent}}
7
+ public Actionwords {{{ context.call_prefix }}} = new Actionwords();
8
+
9
+ {{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
10
+ {{/each}}
11
+ {{/indent}}
12
+ {{/curly}}
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation }}
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 ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
+ {{/indent}}
5
+ {{/curly}});{{/if}}
@@ -0,0 +1,5 @@
1
+ {{#if rendered_children.gherkin_annotation}}
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 ', ' as |param|}}{{{underscore param}}}{{/join}}{{/if}});
4
+ {{/indent}}
5
+ {{/curly}});{{/if}}
@@ -0,0 +1,5 @@
1
+ {{> gherkin_text}}{{#if rendered_children.free_text_arg}}{{#indent}}
2
+ """
3
+ {{remove_surrounding_quotes rendered_children.free_text_arg }}
4
+ """{{/indent}}{{/if}}{{#if rendered_children.datatable_arg}}{{#indent}}
5
+ {{remove_surrounding_quotes rendered_children.datatable_arg }}{{/indent}}{{/if}}
@@ -0,0 +1 @@
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}}
@@ -0,0 +1,18 @@
1
+ {{#if has_datasets?}}
2
+ {{#if has_tags?}}{{join rendered_children.tags ' '}}
3
+ {{/if}}{{> scenario_outline_title}}{{#indent}}
4
+ {{#if has_description?}}{{description_with_annotations rendered_children.description}}
5
+ {{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
6
+ {{/each}}
7
+ Examples:{{#indent}}
8
+ {{#if context.with_dataset_names}}| dataset name {{/if}}| {{ join rendered_children.parameters ' | ' }} |{{#if context.uids}} hiptest-uid |{{/if}}
9
+ {{{rendered_children.datatable}}}
10
+ {{/indent}}{{/indent}}
11
+ {{else}}
12
+ {{#if has_tags?}}{{join rendered_children.tags ' '}}
13
+ {{/if}}Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}{{#indent}}
14
+ {{#if has_description?}}{{description_with_annotations rendered_children.description}}
15
+ {{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
16
+ {{/each}}
17
+ {{/indent}}
18
+ {{/if}}
@@ -0,0 +1 @@
1
+ Scenario Outline: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_children.uid}} (uid:{{{rendered_children.uid}}}){{/if}}{{/if}}
@@ -0,0 +1 @@
1
+ {{ rendered_children.value }}
@@ -0,0 +1 @@
1
+ {{> call}}
@@ -0,0 +1 @@
1
+ {{#if context.with_dataset_names}}| {{rendered_children.name}} {{/if}}| {{{ join_gherkin_dataset rendered_children.arguments }}} |{{#if context.uids}} {{#if rendered_children.test_snapshot_uid}}uid:{{{rendered_children.test_snapshot_uid}}}{{/if}} |{{/if}}
@@ -0,0 +1,2 @@
1
+ {{#each rendered_children.datasets as |dataset|}}{{{dataset}}}
2
+ {{/each}}
@@ -0,0 +1,10 @@
1
+ {{#if rendered_children.ancestor_tags}}{{#if context.parent_folder_tags}}{{#each rendered_children.ancestor_tags as |tag|}}{{tag}} {{/each}}{{#unless has_tags?}}
2
+ {{/unless}}{{/if}}{{/if}}{{#if has_tags?}}{{join rendered_children.tags ' '}}
3
+ {{/if}}Feature: {{{ rendered_children.name }}}{{#indent}}
4
+ {{#if rendered_children.description}}{{#indent}}{{description_with_annotations rendered_children.description}}{{/indent}}{{/if}}
5
+ {{#unless is_empty?}}
6
+ Background:{{#indent}}
7
+ {{#each rendered_children.body as |step|}}{{{ step }}}
8
+ {{/each}}{{/indent}}
9
+ {{/unless}}{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}{{/each}}
10
+ {{/indent}}
@@ -0,0 +1 @@
1
+ Scenario Outline: {{{ rendered_children.name }}}{{#if context.uids}} (<hiptest-uid>){{/if}}
@@ -0,0 +1 @@
1
+ {{#unless is_empty?}}{{> scenario}}{{/unless}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.name }}}
@@ -0,0 +1,3 @@
1
+ # To export your project to Gherkin correctly, you can add the option
2
+ # --with-folders when calling hiptest-publisher. It will keep the
3
+ # folders hierarchy of your CucumberStudio Test Management project.
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,3 @@
1
+ Scenario: {{{ rendered_children.name }}}{{#indent}}
2
+ {{#each rendered_children.body as |step|}}{{{ step }}}
3
+ {{/each}}{{/indent}}
@@ -0,0 +1 @@
1
+ {{#comment '#'}}{{{rendered_children.key}}}: {{{rendered_children.value}}}{{/comment}}
@@ -0,0 +1 @@
1
+ {{#unescape_single_quotes}}{{ rendered_children.value }}{{/unescape_single_quotes}}
@@ -0,0 +1 @@
1
+ @{{{ rendered_children.key }}}{{#if has_value? }}-{{{normalize_with_dashes rendered_children.value }}}{{/if}}
@@ -0,0 +1 @@
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}}
@@ -0,0 +1,8 @@
1
+ {{#curly}}{{#indent}}{{> desc}}{{#unless has_annotations?}}{{#unless is_empty?}}
2
+ expect:{{/unless}}{{/unless}}
3
+ {{> steps}}{{#if has_datasets?}}
4
+ where:
5
+ {{ join rendered_children.parameters ' | ' }} {{#if context.uids}} | hiptestUid{{/if}}
6
+ {{rendered_children.datatable}}
7
+ {{/if}}{{/indent}}
8
+ {{/curly}}
@@ -0,0 +1,5 @@
1
+ {{#if has_description?}}
2
+ {{#comment '//'}}{{rendered_children.description}}{{/comment}}
3
+ {{/if}}{{#if has_tags?}}
4
+ {{#comment '//'}}Tags: {{{ join rendered_children.tags ' '}}}{{/comment}}
5
+ {{/if}}
@@ -0,0 +1,10 @@
1
+ {{#if has_datasets?}}
2
+ @Unroll("{{{ escape_double_quotes rendered_children.name }}}{{#if context.uids}} #hiptestUid{{/if}}")
3
+ {{/if}}def "{{{ escape_double_quotes rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{{ rendered_children.uid}}}){{/if}}"() {{#curly}}{{#indent}}{{> desc}}{{#unless has_annotations?}}{{#unless is_empty?}}
4
+ expect:{{/unless}}{{/unless}}
5
+ {{> steps}}{{#if has_datasets?}}
6
+ where:
7
+ {{ join rendered_children.parameters ' | ' }}{{#if context.uids}} | hiptestUid{{/if}}
8
+ {{rendered_children.datatable}}
9
+ {{/if}}{{/indent}}
10
+ {{/curly}}
@@ -0,0 +1,4 @@
1
+
2
+ {{#each rendered_children.body as |step|}}{{{step}}}
3
+ {{/each}}{{#if has_step?}}
4
+ throw new UnsupportedOperationException(){{/if}}
@@ -0,0 +1,4 @@
1
+ def "{{{ escape_double_quotes rendered_children.name }}}{{#if rendered_children.uid}} (uid:{{{ rendered_children.uid}}}){{/if}}"() {{#curly}}{{#indent}}{{> desc}}{{#unless has_annotations?}}{{#unless is_empty?}}
2
+ expect:{{/unless}}{{/unless}}
3
+ {{> steps}}{{/indent}}
4
+ {{/curly}}
@@ -0,0 +1,2 @@
1
+ def {{{camelize_lower uniq_name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {{#curly}}{{#indent}}{{> desc}}{{> steps}}{{/indent}}
2
+ {{/curly}}
@@ -0,0 +1,7 @@
1
+ package {{{ context.package }}}
2
+
3
+ class Actionwords {{#if uses_library? }}extends ActionwordLibrary{{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords as |actionword|}}
4
+ {{actionword}}
5
+ {{/each}}
6
+ {{/indent}}
7
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.to }}} = {{{ rendered_children.value }}}
@@ -0,0 +1,2 @@
1
+ {{#unless in_actionword?}}{{#if use_main_annotation?}}{{#if use_expect_annotation}}expect{{else}}{{rendered_children.annotation}}{{/if}}:
2
+ {{/if}}{{/unless}}{{#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 @@
1
+ {{{ join rendered_children.arguments ' | ' }}}{{#if context.uids}} | "uid:{{{rendered_children.test_snapshot_uid}}}"{{/if}}
@@ -0,0 +1,2 @@
1
+ {{#each rendered_children.datasets as |dataset|}}{{{dataset}}}
2
+ {{/each}}
@@ -0,0 +1 @@
1
+ [{{{ join rendered_children.items ', '}}}]
@@ -0,0 +1,18 @@
1
+ package {{{ context.package }}}
2
+
3
+ import spock.lang.*
4
+
5
+ class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
+ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
+
8
+ {{#unless is_empty?}}
9
+ def setup() {{#curly}}{{#indent}}
10
+ {{#each rendered_children.body as |step|}}{{{step}}}
11
+ {{/each}}
12
+ {{/indent}}{{/curly}}
13
+ {{/unless}}
14
+
15
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
16
+ {{/each}}
17
+ {{/indent}}
18
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.base }}}[{{{ rendered_children.expression }}}]
@@ -0,0 +1,9 @@
1
+ package {{{ context.package }}}
2
+
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
+ {{/indent}}
7
+ {{/curly}}
8
+ {{/each}}{{/indent}}
9
+ {{/curly}}
@@ -0,0 +1,8 @@
1
+ package {{{ context.package }}}
2
+
3
+ @Singleton
4
+ class {{camelize rendered_children.name}}Library {{#curly}}{{#indent}}{{#each rendered_children.library_actionwords as |actionword|}}
5
+ {{{actionword}}}
6
+ {{/each}}
7
+ {{/indent}}
8
+ {{/curly}}
@@ -0,0 +1,2 @@
1
+ def {{{camelize_lower uniq_name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {{#curly}}{{#indent}}{{> desc}}{{> steps}}{{/indent}}
2
+ {{/curly}}
@@ -0,0 +1 @@
1
+ [{{{ join rendered_children.items ', '}}}]
@@ -0,0 +1 @@
1
+ null
@@ -0,0 +1 @@
1
+ {{{ camelize_lower rendered_children.name }}}{{#if has_default_value?}} = {{{ rendered_children.default }}}{{/if}}
@@ -0,0 +1 @@
1
+ {{{ rendered_children.key }}}: {{{ rendered_children.value }}}
@@ -0,0 +1 @@
1
+ {{> scenario}}
@@ -0,0 +1,10 @@
1
+ package {{{ context.package }}}
2
+
3
+ import spock.lang.*
4
+
5
+ class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
+ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
+
8
+ {{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
9
+ {{/each}}{{/indent}}
10
+ {{/curly}}
@@ -0,0 +1,9 @@
1
+ package {{{ context.package }}}
2
+
3
+ import spock.lang.*
4
+
5
+ class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
+ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
+
8
+ {{> scenario}}{{/indent}}
9
+ {{/curly}}
@@ -0,0 +1,10 @@
1
+ package {{{ context.package }}}
2
+
3
+ import spock.lang.*
4
+
5
+ class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
+ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
+
8
+ {{> test}}
9
+ {{/indent}}
10
+ {{/curly}}
@@ -0,0 +1 @@
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}}"
@@ -0,0 +1 @@
1
+ {{> test}}
@@ -0,0 +1,10 @@
1
+ package {{{ context.package }}}
2
+
3
+ import spock.lang.*
4
+
5
+ class {{{ clear_extension context.filename }}} extends Specification {{#curly}}{{#indent}}
6
+ def {{{ context.call_prefix }}} = Actionwords.newInstance()
7
+
8
+ {{#each rendered_children.tests as |test|}}{{{test}}}
9
+ {{/each}}{{/indent}}
10
+ {{/curly}}
@@ -0,0 +1,5 @@
1
+ {{#indent}}
2
+ {{#each rendered_children.body as |step|}}{{{step}}}
3
+ {{/each}}
4
+ {{#if has_step?}}throw new UnsupportedOperationException();{{/if}}
5
+ {{/indent}}
@@ -0,0 +1,8 @@
1
+ public void {{{ camelize_lower uniq_name }}}({{#if has_parameters?}}{{{join rendered_children.parameters ', '}}}{{/if}}) {{#curly}}
2
+ {{#clear_empty_lines}}
3
+ {{#indent}}{{#comment '//'}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
4
+ {{/if}}{{#if has_description?}}{{rendered_children.description}}
5
+ {{/if}}{{/comment}}{{/indent}}
6
+ {{> body}}
7
+ {{/clear_empty_lines}}
8
+ {{/curly}}
@@ -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 }}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#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 {{#if uses_library?}}extends ActionwordLibrary {{/if}}{{#curly}}{{#indent}}
4
+ {{#each rendered_children.actionwords as |actionword|}}
5
+ {{{actionword}}}
6
+ {{/each}}
7
+ {{/indent}}
8
+ {{/curly}}
@@ -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 void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.test_snapshot_uid}}Uid{{{ normalize rendered_children.test_snapshot_uid}}}{{/if}}() {{#curly}}
2
+ {{#indent}}{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});{{/indent}}
3
+ {{/curly}}
@@ -0,0 +1 @@
1
+ {{#curly}}{{{ join rendered_children.items ', '}}}{{/curly}}
@@ -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 test{{{ camelize rendered_children.name }}}{{#if rendered_children.uid}}Uid{{{ normalize rendered_children.uid}}}{{/if}}() {{#curly}}{{> body}}
8
+ {{/curly}}{{/if}}
@@ -0,0 +1,4 @@
1
+ @Test
2
+ public void test{{{ camelize scenario_name}}}{{{ camelize rendered_children.name}}}{{#if rendered_children.test_snapshot_uid}}Uid{{{ normalize rendered_children.test_snapshot_uid}}}{{/if}}() {{#curly}}
3
+ {{#indent}}{{{ camelize_lower scenario_name }}}({{{ join rendered_children.arguments ', '}}});{{/indent}}
4
+ {{/curly}}