hiptest-publisher 1.29.2 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +5 -5
  2. data/config/locales/en.yml +7 -0
  3. data/lib/config/swift-xctest.conf +18 -0
  4. data/lib/hiptest-publisher.rb +1 -3
  5. data/lib/hiptest-publisher/client.rb +26 -4
  6. data/lib/hiptest-publisher/export_cache.rb +85 -0
  7. data/lib/hiptest-publisher/formatters/reporter.rb +4 -0
  8. data/lib/hiptest-publisher/handlebars_helper.rb +13 -4
  9. data/lib/hiptest-publisher/options_parser.rb +6 -0
  10. data/lib/templates/behat/actionword.hbs +1 -1
  11. data/lib/templates/behat/actionwords.hbs +2 -2
  12. data/lib/templates/behat/library.hbs +2 -2
  13. data/lib/templates/behat/libraryactionword.hbs +1 -1
  14. data/lib/templates/behave/actionword.hbs +2 -2
  15. data/lib/templates/behave/actionwords.hbs +2 -2
  16. data/lib/templates/behave/library.hbs +2 -2
  17. data/lib/templates/behave/libraryactionword.hbs +2 -2
  18. data/lib/templates/common/_gherkin_pattern.hbs +1 -1
  19. data/lib/templates/common/datatable.hbs +2 -2
  20. data/lib/templates/csharp/_body.hbs +1 -1
  21. data/lib/templates/csharp/actionwords.hbs +2 -2
  22. data/lib/templates/csharp/folder.hbs +1 -1
  23. data/lib/templates/csharp/ifthen.hbs +2 -2
  24. data/lib/templates/csharp/scenarios.hbs +1 -1
  25. data/lib/templates/csharp/template.hbs +1 -1
  26. data/lib/templates/csharp/tests.hbs +1 -1
  27. data/lib/templates/csharp/while.hbs +1 -1
  28. data/lib/templates/cucumber/actionwords.hbs +1 -1
  29. data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -1
  30. data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +1 -1
  31. data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +1 -1
  32. data/lib/templates/cucumber/groovy/step-definitions/library.hbs +1 -1
  33. data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +1 -1
  34. data/lib/templates/cucumber/java/actionword.hbs +1 -1
  35. data/lib/templates/cucumber/java/actionwords.hbs +1 -1
  36. data/lib/templates/cucumber/javascript/actionword.hbs +1 -1
  37. data/lib/templates/cucumber/javascript/actionwords.hbs +1 -1
  38. data/lib/templates/cucumber/typescript/actionword.hbs +1 -1
  39. data/lib/templates/cucumber/typescript/actionwords.hbs +1 -1
  40. data/lib/templates/cucumber/typescript/library.hbs +1 -1
  41. data/lib/templates/cucumber/typescript/libraryactionword.hbs +1 -1
  42. data/lib/templates/gherkin/_gherkin_text.hbs +1 -1
  43. data/lib/templates/gherkin/_scenario.hbs +2 -2
  44. data/lib/templates/gherkin/datatable.hbs +1 -1
  45. data/lib/templates/gherkin/folder.hbs +3 -3
  46. data/lib/templates/gherkin/single_test.hbs +1 -1
  47. data/lib/templates/gherkin/template.hbs +1 -1
  48. data/lib/templates/groovy/_steps.hbs +1 -1
  49. data/lib/templates/groovy/actionwords.hbs +2 -2
  50. data/lib/templates/groovy/datatable.hbs +1 -1
  51. data/lib/templates/groovy/folder.hbs +2 -2
  52. data/lib/templates/groovy/libraries.hbs +3 -3
  53. data/lib/templates/groovy/library.hbs +2 -2
  54. data/lib/templates/groovy/scenarios.hbs +1 -1
  55. data/lib/templates/groovy/template.hbs +1 -1
  56. data/lib/templates/groovy/tests.hbs +1 -1
  57. data/lib/templates/java/_body.hbs +1 -1
  58. data/lib/templates/java/actionwords.hbs +2 -2
  59. data/lib/templates/java/espresso/folder.hbs +1 -1
  60. data/lib/templates/java/espresso/scenarios.hbs +1 -1
  61. data/lib/templates/java/espresso/tests.hbs +1 -1
  62. data/lib/templates/java/folder.hbs +1 -1
  63. data/lib/templates/java/ifthen.hbs +2 -2
  64. data/lib/templates/java/libraries.hbs +3 -3
  65. data/lib/templates/java/library.hbs +2 -2
  66. data/lib/templates/java/scenarios.hbs +1 -1
  67. data/lib/templates/java/template.hbs +1 -1
  68. data/lib/templates/java/testng/folder.hbs +1 -1
  69. data/lib/templates/java/testng/scenarios.hbs +1 -1
  70. data/lib/templates/java/testng/tests.hbs +1 -1
  71. data/lib/templates/java/tests.hbs +1 -1
  72. data/lib/templates/java/while.hbs +1 -1
  73. data/lib/templates/javascript/_body.hbs +2 -2
  74. data/lib/templates/javascript/actionwords.hbs +2 -2
  75. data/lib/templates/javascript/codeceptjs/actionword.hbs +1 -1
  76. data/lib/templates/javascript/codeceptjs/actionwords.hbs +1 -1
  77. data/lib/templates/javascript/es6/actionwords.hbs +2 -2
  78. data/lib/templates/javascript/folder.hbs +1 -1
  79. data/lib/templates/javascript/ifthen.hbs +2 -2
  80. data/lib/templates/javascript/jasmine/folder.hbs +1 -1
  81. data/lib/templates/javascript/jasmine/scenarios.hbs +1 -1
  82. data/lib/templates/javascript/jasmine/tests.hbs +1 -1
  83. data/lib/templates/javascript/mocha/folder.hbs +1 -1
  84. data/lib/templates/javascript/scenarios.hbs +1 -1
  85. data/lib/templates/javascript/template.hbs +1 -1
  86. data/lib/templates/javascript/tests.hbs +1 -1
  87. data/lib/templates/javascript/while.hbs +1 -1
  88. data/lib/templates/jbehave/_scenario.hbs +1 -1
  89. data/lib/templates/jbehave/folder.hbs +3 -3
  90. data/lib/templates/jbehave/single_test.hbs +1 -1
  91. data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -1
  92. data/lib/templates/jbehave/steps/actionword.hbs +1 -1
  93. data/lib/templates/jbehave/steps/actionwords.hbs +1 -1
  94. data/lib/templates/php/_body.hbs +1 -1
  95. data/lib/templates/php/actionwords.hbs +2 -2
  96. data/lib/templates/php/folder.hbs +1 -1
  97. data/lib/templates/php/ifthen.hbs +2 -2
  98. data/lib/templates/php/libraries.hbs +4 -4
  99. data/lib/templates/php/library.hbs +2 -2
  100. data/lib/templates/php/scenarios.hbs +1 -1
  101. data/lib/templates/php/template.hbs +1 -1
  102. data/lib/templates/php/tests.hbs +1 -1
  103. data/lib/templates/php/while.hbs +1 -1
  104. data/lib/templates/python/_body.hbs +1 -1
  105. data/lib/templates/python/actionwords.hbs +1 -1
  106. data/lib/templates/python/folder.hbs +1 -1
  107. data/lib/templates/python/libraries.hbs +4 -4
  108. data/lib/templates/python/library.hbs +1 -1
  109. data/lib/templates/python/scenarios.hbs +1 -1
  110. data/lib/templates/python/template.hbs +1 -1
  111. data/lib/templates/python/tests.hbs +1 -1
  112. data/lib/templates/python/unittest/actionwords.hbs +1 -1
  113. data/lib/templates/python/while.hbs +1 -1
  114. data/lib/templates/robotframework/_keyword_body.hbs +1 -1
  115. data/lib/templates/robotframework/_scenario.hbs +1 -1
  116. data/lib/templates/robotframework/actionwords.hbs +1 -1
  117. data/lib/templates/robotframework/datatable.hbs +1 -1
  118. data/lib/templates/robotframework/folder.hbs +16 -16
  119. data/lib/templates/robotframework/scenarios.hbs +15 -15
  120. data/lib/templates/robotframework/template.hbs +1 -1
  121. data/lib/templates/robotframework/tests.hbs +2 -2
  122. data/lib/templates/ruby/_body.hbs +1 -1
  123. data/lib/templates/ruby/actionwords.hbs +2 -2
  124. data/lib/templates/ruby/folder.hbs +1 -1
  125. data/lib/templates/ruby/ifthen.hbs +2 -2
  126. data/lib/templates/ruby/minitest/folder.hbs +1 -1
  127. data/lib/templates/ruby/minitest/scenarios.hbs +1 -1
  128. data/lib/templates/ruby/minitest/tests.hbs +1 -1
  129. data/lib/templates/ruby/scenarios.hbs +1 -1
  130. data/lib/templates/ruby/template.hbs +1 -1
  131. data/lib/templates/ruby/tests.hbs +1 -1
  132. data/lib/templates/ruby/while.hbs +1 -1
  133. data/lib/templates/seleniumide/call.hbs +1 -1
  134. data/lib/templates/seleniumide/single_test.hbs +1 -1
  135. data/lib/templates/seleniumide/tests.hbs +1 -1
  136. data/lib/templates/specflow/actionword.hbs +1 -1
  137. data/lib/templates/specflow/actionwords.hbs +2 -2
  138. data/lib/templates/swift/_body.hbs +11 -0
  139. data/lib/templates/swift/_item_as_def.hbs +5 -0
  140. data/lib/templates/swift/_scenario.hbs +7 -0
  141. data/lib/templates/swift/actionword.hbs +1 -0
  142. data/lib/templates/swift/actionwords.hbs +6 -0
  143. data/lib/templates/swift/argument.hbs +1 -0
  144. data/lib/templates/swift/assign.hbs +1 -0
  145. data/lib/templates/swift/binaryexpression.hbs +1 -0
  146. data/lib/templates/swift/call.hbs +2 -0
  147. data/lib/templates/swift/dataset.hbs +4 -0
  148. data/lib/templates/swift/dict.hbs +1 -0
  149. data/lib/templates/swift/field.hbs +1 -0
  150. data/lib/templates/swift/folder.hbs +23 -0
  151. data/lib/templates/swift/ifthen.hbs +7 -0
  152. data/lib/templates/swift/index.hbs +1 -0
  153. data/lib/templates/swift/list.hbs +1 -0
  154. data/lib/templates/swift/parameter.hbs +1 -0
  155. data/lib/templates/swift/parenthesis.hbs +1 -0
  156. data/lib/templates/swift/project.hbs +2 -0
  157. data/lib/templates/swift/property.hbs +1 -0
  158. data/lib/templates/swift/scenario.hbs +1 -0
  159. data/lib/templates/swift/scenarios.hbs +25 -0
  160. data/lib/templates/swift/single_scenario.hbs +24 -0
  161. data/lib/templates/swift/single_test.hbs +23 -0
  162. data/lib/templates/swift/step.hbs +1 -0
  163. data/lib/templates/swift/stringliteral.hbs +1 -0
  164. data/lib/templates/swift/symbol.hbs +1 -0
  165. data/lib/templates/swift/tag.hbs +1 -0
  166. data/lib/templates/swift/template.hbs +1 -0
  167. data/lib/templates/swift/test.hbs +1 -0
  168. data/lib/templates/swift/tests.hbs +25 -0
  169. data/lib/templates/swift/while.hbs +5 -0
  170. data/lib/templates/typescript/actionwords.hbs +1 -1
  171. data/lib/templates/typescript/libraries.hbs +4 -4
  172. data/lib/templates/typescript/library.hbs +1 -1
  173. metadata +73 -40
@@ -12,7 +12,7 @@ static getInstance() {{#curly}}
12
12
  {{#indent}}return {{capitalize rendered_children.name}}Library.instance;{{/indent}}
13
13
  {{/curly}}
14
14
 
15
- {{#each rendered_children.library_actionwords}}{{{this}}}
15
+ {{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
16
16
  {{/each}}
17
17
  {{/indent}}
18
18
  {{/curly}}
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiptest-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.2
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipTest R&D
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.7.5
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '0.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.7.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.7.5
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.7.5
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: parseconfig
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 1.0.4
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '1.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.0.4
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.0.4
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '1.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.0.4
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: i18n
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -74,70 +74,70 @@ dependencies:
74
74
  name: nokogiri
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "<"
78
- - !ruby/object:Gem::Version
79
- version: '1.10'
80
77
  - - "~>"
81
78
  - !ruby/object:Gem::Version
82
79
  version: '1.8'
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.10'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "<"
88
- - !ruby/object:Gem::Version
89
- version: '1.10'
90
87
  - - "~>"
91
88
  - !ruby/object:Gem::Version
92
89
  version: '1.8'
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '1.10'
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: multipart-post
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: 2.1.1
100
97
  - - "~>"
101
98
  - !ruby/object:Gem::Version
102
99
  version: '2.1'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 2.1.1
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 2.1.1
110
107
  - - "~>"
111
108
  - !ruby/object:Gem::Version
112
109
  version: '2.1'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 2.1.1
113
113
  - !ruby/object:Gem::Dependency
114
- name: ruby-handlebars
114
+ name: ruby_version
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '0.2'
119
+ version: '1'
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - "~>"
125
125
  - !ruby/object:Gem::Version
126
- version: '0.2'
126
+ version: '1'
127
127
  - !ruby/object:Gem::Dependency
128
- name: ruby_version
128
+ name: ruby-handlebars
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '1'
133
+ version: 0.4.0
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: '1'
140
+ version: 0.4.0
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: pry
143
143
  requirement: !ruby/object:Gem::Requirement
@@ -198,22 +198,22 @@ dependencies:
198
198
  name: codeclimate-test-reporter
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: 0.4.6
204
201
  - - "~>"
205
202
  - !ruby/object:Gem::Version
206
203
  version: '0.4'
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: 0.4.6
207
207
  type: :development
208
208
  prerelease: false
209
209
  version_requirements: !ruby/object:Gem::Requirement
210
210
  requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: 0.4.6
214
211
  - - "~>"
215
212
  - !ruby/object:Gem::Version
216
213
  version: '0.4'
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: 0.4.6
217
217
  - !ruby/object:Gem::Dependency
218
218
  name: i18n-tasks
219
219
  requirement: !ruby/object:Gem::Requirement
@@ -282,9 +282,11 @@ files:
282
282
  - lib/config/ruby-rspec.conf
283
283
  - lib/config/seleniumide.conf
284
284
  - lib/config/specflow.conf
285
+ - lib/config/swift-xctest.conf
285
286
  - lib/hiptest-publisher.rb
286
287
  - lib/hiptest-publisher/cli_options_checker.rb
287
288
  - lib/hiptest-publisher/client.rb
289
+ - lib/hiptest-publisher/export_cache.rb
288
290
  - lib/hiptest-publisher/file_writer.rb
289
291
  - lib/hiptest-publisher/formatters/console_formatter.rb
290
292
  - lib/hiptest-publisher/formatters/diff_displayer.rb
@@ -694,6 +696,38 @@ files:
694
696
  - lib/templates/specflow/actionwords/parameter.hbs
695
697
  - lib/templates/specflow/gherkin/tag.hbs
696
698
  - lib/templates/specflow/parameter.hbs
699
+ - lib/templates/swift/_body.hbs
700
+ - lib/templates/swift/_item_as_def.hbs
701
+ - lib/templates/swift/_scenario.hbs
702
+ - lib/templates/swift/actionword.hbs
703
+ - lib/templates/swift/actionwords.hbs
704
+ - lib/templates/swift/argument.hbs
705
+ - lib/templates/swift/assign.hbs
706
+ - lib/templates/swift/binaryexpression.hbs
707
+ - lib/templates/swift/call.hbs
708
+ - lib/templates/swift/dataset.hbs
709
+ - lib/templates/swift/dict.hbs
710
+ - lib/templates/swift/field.hbs
711
+ - lib/templates/swift/folder.hbs
712
+ - lib/templates/swift/ifthen.hbs
713
+ - lib/templates/swift/index.hbs
714
+ - lib/templates/swift/list.hbs
715
+ - lib/templates/swift/parameter.hbs
716
+ - lib/templates/swift/parenthesis.hbs
717
+ - lib/templates/swift/project.hbs
718
+ - lib/templates/swift/property.hbs
719
+ - lib/templates/swift/scenario.hbs
720
+ - lib/templates/swift/scenarios.hbs
721
+ - lib/templates/swift/single_scenario.hbs
722
+ - lib/templates/swift/single_test.hbs
723
+ - lib/templates/swift/step.hbs
724
+ - lib/templates/swift/stringliteral.hbs
725
+ - lib/templates/swift/symbol.hbs
726
+ - lib/templates/swift/tag.hbs
727
+ - lib/templates/swift/template.hbs
728
+ - lib/templates/swift/test.hbs
729
+ - lib/templates/swift/tests.hbs
730
+ - lib/templates/swift/while.hbs
697
731
  - lib/templates/typescript/_item_as_function.hbs
698
732
  - lib/templates/typescript/actionword.hbs
699
733
  - lib/templates/typescript/actionwords.hbs
@@ -720,8 +754,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
720
754
  - !ruby/object:Gem::Version
721
755
  version: '0'
722
756
  requirements: []
723
- rubyforge_project:
724
- rubygems_version: 2.6.10
757
+ rubygems_version: 3.0.3
725
758
  signing_key:
726
759
  specification_version: 4
727
760
  summary: Export your tests from HipTest into executable tests.