hiptest-publisher 1.31.0 → 3.0.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 +310 -0
- data/LICENSE +1 -2
- data/README.md +39 -22
- data/bin/hiptest-publisher +16 -8
- data/config/locales/en.yml +17 -14
- data/lib/config/cucumber-typescript.conf +41 -41
- data/lib/config/cucumber_legacy-groovy.conf +40 -0
- data/lib/config/cucumber_legacy-java.conf +24 -0
- data/lib/config/cucumber_legacy-typescript.conf +41 -0
- data/lib/hiptest-publisher.rb +5 -7
- data/lib/hiptest-publisher/client.rb +61 -10
- data/lib/hiptest-publisher/formatters/console_formatter.rb +41 -11
- data/lib/hiptest-publisher/formatters/reporter.rb +14 -0
- data/lib/hiptest-publisher/handlebars_helper.rb +1 -1
- data/lib/hiptest-publisher/options_parser.rb +46 -9
- data/lib/hiptest-publisher/renderer.rb +5 -1
- 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/groovy/step-definitions/actionword.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +3 -2
- data/lib/templates/cucumber/groovy/step-definitions/library.hbs +3 -2
- data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionwords.hbs +2 -2
- data/lib/templates/cucumber/typescript/actionword.hbs +1 -1
- data/lib/templates/cucumber/typescript/libraryactionword.hbs +1 -1
- data/lib/templates/cucumber_legacy/groovy/step-definitions/actionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/actionwords.hbs +10 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/library.hbs +10 -0
- data/lib/templates/cucumber_legacy/groovy/step-definitions/libraryactionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/java/actionword.hbs +6 -0
- data/lib/templates/cucumber_legacy/java/actionwords.hbs +12 -0
- data/lib/templates/cucumber_legacy/typescript/actionword.hbs +5 -0
- data/lib/templates/cucumber_legacy/typescript/libraryactionword.hbs +5 -0
- data/lib/templates/gherkin/scenarios.hbs +1 -1
- data/lib/templates/groovy/_scenario.hbs +1 -1
- metadata +64 -41
@@ -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}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{{#if has_datasets?}}
|
2
|
-
@Unroll("{{{ escape_double_quotes rendered_children.name }}} #hiptestUid")
|
2
|
+
@Unroll("{{{ escape_double_quotes rendered_children.name }}}{{#if context.uids}} #hiptestUid{{/if}}")
|
3
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
4
|
expect:{{/unless}}{{/unless}}
|
5
5
|
{{> steps}}{{#if has_datasets?}}
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- CucumberStudio R&D
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-09 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'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 0.7.5
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.7'
|
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'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 0.7.5
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.7'
|
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'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 1.0.4
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.0'
|
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'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 1.0.4
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: i18n
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,9 +75,6 @@ dependencies:
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '1.8'
|
80
|
-
- - "<"
|
81
78
|
- !ruby/object:Gem::Version
|
82
79
|
version: '1.10'
|
83
80
|
type: :runtime
|
@@ -85,31 +82,28 @@ dependencies:
|
|
85
82
|
version_requirements: !ruby/object:Gem::Requirement
|
86
83
|
requirements:
|
87
84
|
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.8'
|
90
|
-
- - "<"
|
91
85
|
- !ruby/object:Gem::Version
|
92
86
|
version: '1.10'
|
93
87
|
- !ruby/object:Gem::Dependency
|
94
88
|
name: multipart-post
|
95
89
|
requirement: !ruby/object:Gem::Requirement
|
96
90
|
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '2.1'
|
100
91
|
- - ">="
|
101
92
|
- !ruby/object:Gem::Version
|
102
93
|
version: 2.1.1
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.1'
|
103
97
|
type: :runtime
|
104
98
|
prerelease: false
|
105
99
|
version_requirements: !ruby/object:Gem::Requirement
|
106
100
|
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '2.1'
|
110
101
|
- - ">="
|
111
102
|
- !ruby/object:Gem::Version
|
112
103
|
version: 2.1.1
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '2.1'
|
113
107
|
- !ruby/object:Gem::Dependency
|
114
108
|
name: ruby_version
|
115
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,22 +192,22 @@ dependencies:
|
|
198
192
|
name: codeclimate-test-reporter
|
199
193
|
requirement: !ruby/object:Gem::Requirement
|
200
194
|
requirements:
|
201
|
-
- - "~>"
|
202
|
-
- !ruby/object:Gem::Version
|
203
|
-
version: '0.4'
|
204
195
|
- - ">="
|
205
196
|
- !ruby/object:Gem::Version
|
206
197
|
version: 0.4.6
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0.4'
|
207
201
|
type: :development
|
208
202
|
prerelease: false
|
209
203
|
version_requirements: !ruby/object:Gem::Requirement
|
210
204
|
requirements:
|
211
|
-
- - "~>"
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
version: '0.4'
|
214
205
|
- - ">="
|
215
206
|
- !ruby/object:Gem::Version
|
216
207
|
version: 0.4.6
|
208
|
+
- - "~>"
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0.4'
|
217
211
|
- !ruby/object:Gem::Dependency
|
218
212
|
name: i18n-tasks
|
219
213
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,16 +236,32 @@ dependencies:
|
|
242
236
|
- - "~>"
|
243
237
|
- !ruby/object:Gem::Version
|
244
238
|
version: 0.1.1
|
239
|
+
- !ruby/object:Gem::Dependency
|
240
|
+
name: actionview
|
241
|
+
requirement: !ruby/object:Gem::Requirement
|
242
|
+
requirements:
|
243
|
+
- - "~>"
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '5.2'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
250
|
+
- - "~>"
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '5.2'
|
245
253
|
description: Provides a command-line tool that generates Java, Python or Ruby code
|
246
254
|
to run the tests.
|
247
|
-
email:
|
255
|
+
email: studio@cucumber.io
|
248
256
|
executables:
|
249
257
|
- hiptest-publisher
|
250
258
|
extensions: []
|
251
259
|
extra_rdoc_files:
|
260
|
+
- CHANGELOG.md
|
252
261
|
- LICENSE
|
253
262
|
- README.md
|
254
263
|
files:
|
264
|
+
- CHANGELOG.md
|
255
265
|
- LICENSE
|
256
266
|
- README.md
|
257
267
|
- bin/hiptest-publisher
|
@@ -265,6 +275,9 @@ files:
|
|
265
275
|
- lib/config/cucumber-javascript.conf
|
266
276
|
- lib/config/cucumber-ruby.conf
|
267
277
|
- lib/config/cucumber-typescript.conf
|
278
|
+
- lib/config/cucumber_legacy-groovy.conf
|
279
|
+
- lib/config/cucumber_legacy-java.conf
|
280
|
+
- lib/config/cucumber_legacy-typescript.conf
|
268
281
|
- lib/config/groovy-spock.conf
|
269
282
|
- lib/config/java-espresso.conf
|
270
283
|
- lib/config/java-junit.conf
|
@@ -332,6 +345,7 @@ files:
|
|
332
345
|
- lib/templates/behave/libraryactionword.hbs
|
333
346
|
- lib/templates/behave/nullliteral.hbs
|
334
347
|
- lib/templates/common/_gherkin_pattern.hbs
|
348
|
+
- lib/templates/common/_gherkin_typed_pattern.hbs
|
335
349
|
- lib/templates/common/booleanliteral.hbs
|
336
350
|
- lib/templates/common/dataset.hbs
|
337
351
|
- lib/templates/common/datatable.hbs
|
@@ -397,6 +411,14 @@ files:
|
|
397
411
|
- lib/templates/cucumber/typescript/actionwords.hbs
|
398
412
|
- lib/templates/cucumber/typescript/library.hbs
|
399
413
|
- lib/templates/cucumber/typescript/libraryactionword.hbs
|
414
|
+
- lib/templates/cucumber_legacy/groovy/step-definitions/actionword.hbs
|
415
|
+
- lib/templates/cucumber_legacy/groovy/step-definitions/actionwords.hbs
|
416
|
+
- lib/templates/cucumber_legacy/groovy/step-definitions/library.hbs
|
417
|
+
- lib/templates/cucumber_legacy/groovy/step-definitions/libraryactionword.hbs
|
418
|
+
- lib/templates/cucumber_legacy/java/actionword.hbs
|
419
|
+
- lib/templates/cucumber_legacy/java/actionwords.hbs
|
420
|
+
- lib/templates/cucumber_legacy/typescript/actionword.hbs
|
421
|
+
- lib/templates/cucumber_legacy/typescript/libraryactionword.hbs
|
400
422
|
- lib/templates/gherkin/_call.hbs
|
401
423
|
- lib/templates/gherkin/_gherkin_text.hbs
|
402
424
|
- lib/templates/gherkin/_scenario.hbs
|
@@ -735,11 +757,11 @@ files:
|
|
735
757
|
- lib/templates/typescript/library.hbs
|
736
758
|
- lib/templates/typescript/libraryactionword.hbs
|
737
759
|
- lib/templates/typescript/parameter.hbs
|
738
|
-
homepage: https://
|
760
|
+
homepage: https://cucumber.io
|
739
761
|
licenses:
|
740
|
-
-
|
762
|
+
- MIT
|
741
763
|
metadata: {}
|
742
|
-
post_install_message:
|
764
|
+
post_install_message:
|
743
765
|
rdoc_options: []
|
744
766
|
require_paths:
|
745
767
|
- lib
|
@@ -754,8 +776,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
754
776
|
- !ruby/object:Gem::Version
|
755
777
|
version: '0'
|
756
778
|
requirements: []
|
757
|
-
|
758
|
-
|
779
|
+
rubyforge_project:
|
780
|
+
rubygems_version: 2.7.6.2
|
781
|
+
signing_key:
|
759
782
|
specification_version: 4
|
760
|
-
summary: Export your tests from
|
783
|
+
summary: Export your tests from CucumberStudio into executable tests.
|
761
784
|
test_files: []
|