hiptest-publisher 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +280 -0
- data/README.md +16 -5
- data/lib/config/cucumber_expressions-typescript.conf +41 -0
- data/lib/hiptest-publisher/options_parser.rb +11 -3
- data/lib/hiptest-publisher/renderer_addons/gherkin_addon.rb +21 -0
- data/lib/templates/common/_gherkin_typed_pattern.hbs +1 -0
- data/lib/templates/cucumber_expressions/typescript/actionword.hbs +5 -0
- data/lib/templates/cucumber_expressions/typescript/libraryactionword.hbs +5 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d61267586ac5a1558fe7dd293a47f4e2a70a7ea5ad1ea298017bf46817fe00df
|
4
|
+
data.tar.gz: 3ee67eedf55488db4522546424d06a26cf376d5351ce07de5c128cbb977834e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de9ee6ccbd99d07671fbdcb63394978e5a70ed4fd3e706cfb52281c9971a9dbdc0949be607134d5d19c1473b753325f0a2e15ce6ba9cffb04d3a206ebdfe173
|
7
|
+
data.tar.gz: e9f0e70c2aeabcd5576095b49e575012e9a73c9943f61c823cb8e8a92700cdeb9b2a29398c576331f65afcc5050be197b8e1340d0cce2176fc1359e6b80f6460
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
HipTest Publisher Changelog
|
2
|
+
===========================
|
3
|
+
|
4
|
+
[2.2.0]
|
5
|
+
-------
|
6
|
+
|
7
|
+
- Add support for Cucumber expressions w/ Typescript ([#173](https://github.com/hiptest/hiptest-publisher/pull/173) [#184](https://github.com/hiptest/hiptest-publisher/pull/184) [tenpaiyomi])
|
8
|
+
|
9
|
+
[2.1.0]
|
10
|
+
-------
|
11
|
+
|
12
|
+
- Do not try to colorize output when not in a `tty`
|
13
|
+
|
14
|
+
- Add `--[no-]color` option to allow disabling colored output
|
15
|
+
|
16
|
+
[2.0.0]
|
17
|
+
-------
|
18
|
+
|
19
|
+
- Deprecate support for Ruby 2.3 ([Ruby 2.3 EOL](https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/))
|
20
|
+
|
21
|
+
- Drop Ruby 2.2 support.
|
22
|
+
|
23
|
+
- Update Nokogiri to 1.10
|
24
|
+
|
25
|
+
[1.31.0]
|
26
|
+
--------
|
27
|
+
|
28
|
+
- Follow redirections when doing HTTP requests.
|
29
|
+
|
30
|
+
[1.30.0]
|
31
|
+
--------
|
32
|
+
|
33
|
+
- Upgrade `ruby-handlebars` to 0.4. `each` and `join` helpers now support the `as` notation.
|
34
|
+
|
35
|
+
- Add support for Swift/XCTest ([#134](https://github.com/hiptest/hiptest-publisher/pull/134) [bangroot])
|
36
|
+
|
37
|
+
- Add cache for the XML downloaded from HipTest.
|
38
|
+
By default, files will be valid for 60 seconds but can be changed by using `--cache-duration=120` for example.
|
39
|
+
|
40
|
+
[1.29.2]
|
41
|
+
--------
|
42
|
+
|
43
|
+
- Fix escaping in string literals for Java and C# ([#157](https://github.com/hiptest/hiptest-publisher/issues/157) - [hiptest#195](https://github.com/hiptest/hiptest-issue-tracker/issues/195))
|
44
|
+
|
45
|
+
[1.29.1]
|
46
|
+
--------
|
47
|
+
|
48
|
+
- Allow any characters for the meta value ([#155](https://github.com/hiptest/hiptest-publisher/issues/155))
|
49
|
+
|
50
|
+
|
51
|
+
[1.29.0]
|
52
|
+
--------
|
53
|
+
|
54
|
+
- Make `rake install` work with ruby 2.6
|
55
|
+
- `--parameter-delimiter` option now accepts empty string
|
56
|
+
|
57
|
+
[1.28.0]
|
58
|
+
--------
|
59
|
+
|
60
|
+
- Fix bug where parameter-delimiter value was not recognized in command line ([#147](https://github.com/hiptest/hiptest-publisher/issues/147))
|
61
|
+
- Add option --http-proxy to specify proxy to use ([#132](https://github.com/hiptest/hiptest-publisher/issues/132))
|
62
|
+
|
63
|
+
[1.27.1]
|
64
|
+
--------
|
65
|
+
|
66
|
+
- Add CodeceptJS to language list in OptionsParser.languages
|
67
|
+
|
68
|
+
[1.27.0]
|
69
|
+
--------
|
70
|
+
|
71
|
+
- Enable accessing scenario tags in datasets
|
72
|
+
([#142](https://github.com/hiptest/hiptest-publisher/pull/142) [nono0481])
|
73
|
+
|
74
|
+
- Added support for CodeceptJS testing framework
|
75
|
+
([#130](https://github.com/hiptest/hiptest-publisher/pull/130) [DavertMik])
|
76
|
+
|
77
|
+
[1.26.0]
|
78
|
+
--------
|
79
|
+
|
80
|
+
- Shared actionwords handling for Cucumber/Typescript
|
81
|
+
|
82
|
+
[1.25.0]
|
83
|
+
--------
|
84
|
+
|
85
|
+
- Shared actionwords handling for Behave
|
86
|
+
|
87
|
+
[1.24.0]
|
88
|
+
--------
|
89
|
+
|
90
|
+
- Add #case, #when and #when_includes handlebars helpers
|
91
|
+
- Modify #if_includes handlebars helper to work with strings
|
92
|
+
|
93
|
+
[1.23.5]
|
94
|
+
--------
|
95
|
+
|
96
|
+
- Load i18n path also when used as a library
|
97
|
+
|
98
|
+
[1.23.4]
|
99
|
+
--------
|
100
|
+
|
101
|
+
- Add I18n to enable localizing (and clearing the code)
|
102
|
+
|
103
|
+
[1.23.3]
|
104
|
+
--------
|
105
|
+
|
106
|
+
- Update multipart-post to 2.1.1 to handle issues with Ruby < 2.5
|
107
|
+
(see: https://github.com/socketry/multipart-post/issues/61)
|
108
|
+
|
109
|
+
[1.23.2]
|
110
|
+
--------
|
111
|
+
|
112
|
+
- Force Nokogiri < 1.10 to keep support for Ruby 2.2
|
113
|
+
- Add deprecation notifications for Ruby 2.2
|
114
|
+
|
115
|
+
[1.23.1]
|
116
|
+
--------
|
117
|
+
|
118
|
+
- Handle new shared actionword architecture
|
119
|
+
|
120
|
+
[1.22.0]
|
121
|
+
--------
|
122
|
+
|
123
|
+
- Add support for Cucumber/Typescript
|
124
|
+
- Unlock Nokogiri update to 1.9.1
|
125
|
+
|
126
|
+
[1.21.0]
|
127
|
+
--------
|
128
|
+
|
129
|
+
- Add option --execution-environment to push results in the specified execution environment name
|
130
|
+
|
131
|
+
[1.20.0]
|
132
|
+
--------
|
133
|
+
|
134
|
+
- Add --meta option to add more flexibility in code generation
|
135
|
+
(see: https://github.com/hiptest/hiptest-publisher/blob/master/docs/Using%20meta%20data.md#using-meta-data)
|
136
|
+
|
137
|
+
[1.19.3]
|
138
|
+
--------
|
139
|
+
|
140
|
+
- Do not leave trailing whitespaces with {{comment}} helper
|
141
|
+
|
142
|
+
[1.19.2]
|
143
|
+
--------
|
144
|
+
- Fix description in Gherkin exports
|
145
|
+
|
146
|
+
[1.19.1]
|
147
|
+
--------
|
148
|
+
- Fix description in Gherkin exports
|
149
|
+
|
150
|
+
[1.19.0]
|
151
|
+
--------
|
152
|
+
- Do not comment description in Gherkin exports
|
153
|
+
|
154
|
+
[1.18.1]
|
155
|
+
--------
|
156
|
+
- Show message when calling an actionword using an unknown UID
|
157
|
+
|
158
|
+
[1.18.0]
|
159
|
+
--------
|
160
|
+
- Add option [no-]parent-folders-tags to choose if parent tags are rendered in feature files
|
161
|
+
|
162
|
+
[1.17.2]
|
163
|
+
--------
|
164
|
+
- Fix UIDCall handling for shared actionwords
|
165
|
+
|
166
|
+
[1.17.1]
|
167
|
+
--------
|
168
|
+
- update version number
|
169
|
+
|
170
|
+
[1.16.6]
|
171
|
+
--------
|
172
|
+
- Add the if_includes handlebars helper
|
173
|
+
- Add options "parameter-delimiter" allowing to remove quotes around parameters in Gherkin export
|
174
|
+
(or replace it by anything else in fact)
|
175
|
+
|
176
|
+
[1.16.5]
|
177
|
+
--------
|
178
|
+
- Fix UIDCall handling for behat
|
179
|
+
|
180
|
+
[1.16.4]
|
181
|
+
--------
|
182
|
+
- Handling tags for shared actionwords
|
183
|
+
|
184
|
+
[1.16.3]
|
185
|
+
--------
|
186
|
+
- Fix behat rendering of shared actionwords
|
187
|
+
|
188
|
+
[1.16.2]
|
189
|
+
--------
|
190
|
+
- Remove unnecessary templates for cucumber/groovy
|
191
|
+
|
192
|
+
[1.16.0]
|
193
|
+
--------
|
194
|
+
- Shared actionwords handling for behat
|
195
|
+
|
196
|
+
[1.15.0]
|
197
|
+
--------
|
198
|
+
- Shared actionwords handling for groovy/spock
|
199
|
+
|
200
|
+
[1.14.0]
|
201
|
+
--------
|
202
|
+
|
203
|
+
- Shared actionwords handling for cucumber/groovy
|
204
|
+
|
205
|
+
[1.13.0]
|
206
|
+
--------
|
207
|
+
|
208
|
+
- Add Cucumber/Groovy support
|
209
|
+
([#54](https://github.com/hiptest/hiptest-publisher/issues/54))
|
210
|
+
|
211
|
+
[1.12.0]
|
212
|
+
--------
|
213
|
+
|
214
|
+
- Add JBehave support
|
215
|
+
([#38](https://github.com/hiptest/hiptest-publisher/issues/38))
|
216
|
+
|
217
|
+
- Add option --with-dataset-names
|
218
|
+
([#105](https://github.com/hiptest/hiptest-publisher/issues/105))
|
219
|
+
|
220
|
+
- Reorder steps by regexp length for Behave
|
221
|
+
([#104](https://github.com/hiptest/hiptest-publisher/issues/104))
|
222
|
+
|
223
|
+
|
224
|
+
<!-- List of releases -->
|
225
|
+
[2.2.0]: https://github.com/hiptest/hiptest-publisher/compare/v2.1.0...v2.2.0
|
226
|
+
[2.1.0]: https://github.com/hiptest/hiptest-publisher/compare/v2.0.0...v2.1.0
|
227
|
+
[2.0.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.31.0...v2.0.0
|
228
|
+
[1.31.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.30.0...v1.31.0
|
229
|
+
[1.30.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.29.2...v1.30.0
|
230
|
+
[1.29.2]: https://github.com/hiptest/hiptest-publisher/compare/v1.29.1...v1.29.2
|
231
|
+
[1.29.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.29.0...v1.29.1
|
232
|
+
[1.29.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.28.0...v1.29.0
|
233
|
+
[1.28.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.27.1...v1.28.0
|
234
|
+
[1.27.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.27.0...v1.27.1
|
235
|
+
[1.27.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.26.0...v1.27.0
|
236
|
+
[1.26.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.25.0...v1.26.0
|
237
|
+
[1.25.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.24.0...v1.25.0
|
238
|
+
[1.24.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.23.5...v1.24.0
|
239
|
+
[1.23.5]: https://github.com/hiptest/hiptest-publisher/compare/v1.23.4...v1.23.5
|
240
|
+
[1.23.4]: https://github.com/hiptest/hiptest-publisher/compare/v1.23.3...v1.23.4
|
241
|
+
[1.23.3]: https://github.com/hiptest/hiptest-publisher/compare/v1.23.2...v1.23.3
|
242
|
+
[1.23.2]: https://github.com/hiptest/hiptest-publisher/compare/v1.23.1...v1.23.2
|
243
|
+
[1.23.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.22.0...v1.23.1
|
244
|
+
[1.22.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.21.0...v1.22.0
|
245
|
+
[1.21.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.20.0...v1.21.0
|
246
|
+
[1.20.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.19.3...v1.20.0
|
247
|
+
[1.19.3]: https://github.com/hiptest/hiptest-publisher/compare/v1.19.2...v1.19.3
|
248
|
+
[1.19.2]: https://github.com/hiptest/hiptest-publisher/compare/v1.19.1...v1.19.2
|
249
|
+
[1.19.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.19.0...v1.19.1
|
250
|
+
[1.19.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.18.1...v1.19.0
|
251
|
+
[1.18.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.18.0...v1.18.1
|
252
|
+
[1.18.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.17.2...v1.18.0
|
253
|
+
[1.17.2]: https://github.com/hiptest/hiptest-publisher/compare/v1.17.1...v1.17.2
|
254
|
+
[1.17.1]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.6...v1.17.1
|
255
|
+
[1.16.6]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.5...v1.16.6
|
256
|
+
[1.16.5]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.4...v1.16.5
|
257
|
+
[1.16.4]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.3...v1.16.4
|
258
|
+
[1.16.3]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.2...v1.16.3
|
259
|
+
[1.16.2]: https://github.com/hiptest/hiptest-publisher/compare/v1.16.0...v1.16.2
|
260
|
+
[1.16.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.15.0...v1.16.0
|
261
|
+
[1.15.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.14.0...v1.15.0
|
262
|
+
[1.14.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.13.0...v1.14.0
|
263
|
+
[1.13.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.12.0...v1.13.0
|
264
|
+
[1.12.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.11.1...v1.12.0
|
265
|
+
|
266
|
+
|
267
|
+
<!-- List of contributors -->
|
268
|
+
[atulhm]: https://github.com/atulhm
|
269
|
+
[bangroot]: https://github.com/bangroot
|
270
|
+
[ClaudiaJ]: https://github.com/ClaudiaJ
|
271
|
+
[daniel-kun]: https://github.com/daniel-kun
|
272
|
+
[DavertMik]: https://github.com/DavertMik
|
273
|
+
[etorreborre]: https://github.com/etorreborre
|
274
|
+
[Jesterovskiy]: https://github.com/Jesterovskiy
|
275
|
+
[lostiniceland]: https://github.com/lostiniceland
|
276
|
+
[mhfrantz]: https://github.com/mhfrantz
|
277
|
+
[nono0481]: https://github.com/nono0481
|
278
|
+
[tenpaiyomi]: https://github.com/tenpaiyomi
|
279
|
+
[tikolakin]: https://github.com/tikolakin
|
280
|
+
[weeksghost]: https://github.com/weeksghost
|
data/README.md
CHANGED
@@ -55,13 +55,24 @@ hiptest-publisher --token=<YOUR TOKEN>
|
|
55
55
|
|
56
56
|
This will create a Ruby tests suite. For the moment, we support the following languages and frameworks:
|
57
57
|
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
58
|
+
- Behat
|
59
|
+
- Behave
|
60
|
+
- CSharp (NUnit)
|
61
|
+
- Cucumber (Groovy / Java / Javascript / Ruby / TypeScript)
|
62
|
+
- Cucumber Expressions (TypeScript)*
|
63
|
+
- Groovy (Spock)
|
64
|
+
- Java (Espresso / JUnit / TestNg)
|
65
|
+
- JavaScript (CodeceptJS / Jasmine / Mocha / Protractor / QUnit)
|
66
|
+
- JBehave
|
67
|
+
- PHP (PHPUnit / UnitTest)
|
68
|
+
- Python (UnitTest)
|
62
69
|
- Robot Framework
|
70
|
+
- Ruby (MiniTest / RSpec)
|
63
71
|
- Selenium IDE
|
64
|
-
-
|
72
|
+
- SpecFlow
|
73
|
+
- Swift (XCTest)
|
74
|
+
|
75
|
+
*Cucumber Expressions is standard Cucumber syntax that makes use of [Cucumber Expressions](https://cucumber.io/docs/cucumber/cucumber-expressions/)
|
65
76
|
|
66
77
|
You can specify the output language and framework in the command line, for example:
|
67
78
|
|
@@ -0,0 +1,41 @@
|
|
1
|
+
[_common]
|
2
|
+
indentation = ' '
|
3
|
+
fallback_template = 'empty'
|
4
|
+
|
5
|
+
[features]
|
6
|
+
node_name = folders
|
7
|
+
template_dirs = gherkin/inlined_uids, gherkin, common
|
8
|
+
named_filename = '%s.feature'
|
9
|
+
indentation = ' '
|
10
|
+
renderer_addons = 'GherkinAddon'
|
11
|
+
|
12
|
+
[step_definitions]
|
13
|
+
node_name = actionwords
|
14
|
+
template_dirs = cucumber_expressions/typescript, cucumber/typescript, javascript, common
|
15
|
+
filename = 'step_definitions.ts'
|
16
|
+
naming_convention = 'camelize_lower'
|
17
|
+
call_prefix = 'actionwords'
|
18
|
+
renderer_addons = 'GherkinAddon'
|
19
|
+
|
20
|
+
[step_definitions_library]
|
21
|
+
node_name = libraries
|
22
|
+
template_dirs = cucumber_expressions/typescript, cucumber/typescript, javascript, common
|
23
|
+
named_filename = 'steps_%s.ts'
|
24
|
+
naming_convention = 'camelize_lower'
|
25
|
+
call_prefix = 'actionwords'
|
26
|
+
renderer_addons = 'GherkinAddon'
|
27
|
+
|
28
|
+
[actionwords]
|
29
|
+
template_dirs = typescript, javascript, common
|
30
|
+
filename = 'actionwords.ts'
|
31
|
+
naming_convention = 'camelize_lower'
|
32
|
+
|
33
|
+
|
34
|
+
[library]
|
35
|
+
template_dirs = typescript, javascript, common
|
36
|
+
filename = 'actionword_library.ts'
|
37
|
+
|
38
|
+
[libraries]
|
39
|
+
template_dirs = typescript, javascript, common
|
40
|
+
named_filename = '%s_library.ts'
|
41
|
+
filename_convention = 'underscore'
|
@@ -194,18 +194,20 @@ class OptionsParser
|
|
194
194
|
{
|
195
195
|
'Ruby' => ['Rspec', 'MiniTest'],
|
196
196
|
'Cucumber' => ['Ruby', 'Java', 'Javascript', 'Groovy', 'TypeScript'],
|
197
|
+
'Cucumber_Expressions' => ['TypeScript'],
|
197
198
|
'Java' => ['JUnit', 'Test NG', 'Espresso'],
|
198
199
|
'Python' => ['Unittest'],
|
199
200
|
'Robot Framework' => [''],
|
200
201
|
'Selenium IDE' => [''],
|
201
202
|
'Javascript' => ['qUnit', 'Jasmine', 'Mocha', 'Protractor', 'CodeceptJS'],
|
202
203
|
'CSharp' => ['NUnit'],
|
203
|
-
'PHP' => ['PHPUnit'],
|
204
|
+
'PHP' => ['PHPUnit', 'UnitTest'],
|
204
205
|
'SpecFlow' => [''],
|
205
206
|
'Behave' => [''],
|
206
207
|
'Behat' => [''],
|
207
208
|
'Groovy' => ['Spock'],
|
208
|
-
'JBehave' => ['']
|
209
|
+
'JBehave' => [''],
|
210
|
+
'Swift' => ['XCTest']
|
209
211
|
}
|
210
212
|
end
|
211
213
|
|
@@ -269,7 +271,13 @@ class OptionsParser
|
|
269
271
|
end
|
270
272
|
|
271
273
|
def self.default_cache_directory
|
272
|
-
|
274
|
+
home_dir = begin
|
275
|
+
Dir.home
|
276
|
+
rescue
|
277
|
+
'.'
|
278
|
+
end
|
279
|
+
|
280
|
+
File.join(home_dir, '.hiptest-publisher', 'cache')
|
273
281
|
end
|
274
282
|
|
275
283
|
def self.parse(args, reporter)
|
@@ -14,6 +14,14 @@ module Hiptest
|
|
14
14
|
super(call)
|
15
15
|
end
|
16
16
|
|
17
|
+
def walk_actionword(aw)
|
18
|
+
parameters = aw.children[:parameters]
|
19
|
+
aw.chunks = replace_parameter_value_with_type(aw.chunks, parameters)
|
20
|
+
aw.extra_inlined_parameters = replace_parameter_value_with_type(aw.extra_inlined_parameters, parameters)
|
21
|
+
|
22
|
+
super(aw)
|
23
|
+
end
|
24
|
+
|
17
25
|
def walk_folder(folder)
|
18
26
|
@rendered_children[:ancestor_tags] = ancestor_tags(folder)
|
19
27
|
|
@@ -34,5 +42,18 @@ module Hiptest
|
|
34
42
|
ancestor_tags = folder.ancestors.map { |f| f.children[:tags] }.flatten.uniq
|
35
43
|
ancestor_tags.map { |t| Hiptest::Renderer.render(t, @context) }
|
36
44
|
end
|
45
|
+
|
46
|
+
def replace_parameter_value_with_type(collection, parameters)
|
47
|
+
collection.map do |obj|
|
48
|
+
if obj[:is_parameter]
|
49
|
+
parameter = parameters.find { |parameter| parameter.children[:name] == obj[:name] }
|
50
|
+
obj[:typed_value] = parameter ? "{#{parameter.type.downcase}}" : "{}"
|
51
|
+
else
|
52
|
+
obj[:typed_value] = obj[:value]
|
53
|
+
end
|
54
|
+
|
55
|
+
obj
|
56
|
+
end
|
57
|
+
end
|
37
58
|
end
|
38
59
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#strip}}{{#each chunks as |treated_chunk|}}{{treated_chunk.typed_value}}{{/each}}{{#each extra_inlined_parameters as |param|}} {{param.typed_value}}{{/each}}{{/strip}}
|
@@ -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,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}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiptest-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.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: 2020-
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -54,22 +54,22 @@ dependencies:
|
|
54
54
|
name: i18n
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 0.7.0
|
60
57
|
- - "~>"
|
61
58
|
- !ruby/object:Gem::Version
|
62
59
|
version: '0.7'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.7.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.7.0
|
70
67
|
- - "~>"
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: '0.7'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.7.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: nokogiri
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -243,9 +243,11 @@ executables:
|
|
243
243
|
- hiptest-publisher
|
244
244
|
extensions: []
|
245
245
|
extra_rdoc_files:
|
246
|
+
- CHANGELOG.md
|
246
247
|
- LICENSE
|
247
248
|
- README.md
|
248
249
|
files:
|
250
|
+
- CHANGELOG.md
|
249
251
|
- LICENSE
|
250
252
|
- README.md
|
251
253
|
- bin/hiptest-publisher
|
@@ -259,6 +261,7 @@ files:
|
|
259
261
|
- lib/config/cucumber-javascript.conf
|
260
262
|
- lib/config/cucumber-ruby.conf
|
261
263
|
- lib/config/cucumber-typescript.conf
|
264
|
+
- lib/config/cucumber_expressions-typescript.conf
|
262
265
|
- lib/config/groovy-spock.conf
|
263
266
|
- lib/config/java-espresso.conf
|
264
267
|
- lib/config/java-junit.conf
|
@@ -326,6 +329,7 @@ files:
|
|
326
329
|
- lib/templates/behave/libraryactionword.hbs
|
327
330
|
- lib/templates/behave/nullliteral.hbs
|
328
331
|
- lib/templates/common/_gherkin_pattern.hbs
|
332
|
+
- lib/templates/common/_gherkin_typed_pattern.hbs
|
329
333
|
- lib/templates/common/booleanliteral.hbs
|
330
334
|
- lib/templates/common/dataset.hbs
|
331
335
|
- lib/templates/common/datatable.hbs
|
@@ -391,6 +395,8 @@ files:
|
|
391
395
|
- lib/templates/cucumber/typescript/actionwords.hbs
|
392
396
|
- lib/templates/cucumber/typescript/library.hbs
|
393
397
|
- lib/templates/cucumber/typescript/libraryactionword.hbs
|
398
|
+
- lib/templates/cucumber_expressions/typescript/actionword.hbs
|
399
|
+
- lib/templates/cucumber_expressions/typescript/libraryactionword.hbs
|
394
400
|
- lib/templates/gherkin/_call.hbs
|
395
401
|
- lib/templates/gherkin/_gherkin_text.hbs
|
396
402
|
- lib/templates/gherkin/_scenario.hbs
|
@@ -748,7 +754,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
748
754
|
- !ruby/object:Gem::Version
|
749
755
|
version: '0'
|
750
756
|
requirements: []
|
751
|
-
rubygems_version: 3.
|
757
|
+
rubygems_version: 3.1.2
|
752
758
|
signing_key:
|
753
759
|
specification_version: 4
|
754
760
|
summary: Export your tests from HipTest into executable tests.
|