hiptest-publisher 1.17.2 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d632b8a73b12b54938e97d2d157cba0b02ad7a847a5f8bcb2bc7836701c101e
4
- data.tar.gz: ac80405c1c326e77f6f496b96dec9149f5e615dc1d420073186728ca33626e5c
3
+ metadata.gz: baa4e4f8cd0e3988cc9ab2a42ea0574252662eadc92241365d9e3c4727c6c7de
4
+ data.tar.gz: aa84ae8c99f14975ba9e1c5edaf80d88630ffe23bb0be29003cd432d9f25b175
5
5
  SHA512:
6
- metadata.gz: 3873177d8b598c93ed9336ba88dbb40a05688ce3c0112aed67803fb36059a1a4b44a16dd82794e1226d9a06f1f435e99927dddc7d1b155d69718bee0fa84874f
7
- data.tar.gz: 8699eac4f6104a3712add4a04231a8504a5c85fd2a260cbc365770e638f7231870416c9687a597a68c519c16603e6f4da2c5ccc6bfbea51b5017753de4fe5174
6
+ metadata.gz: 1e7a9d3e93ac0516e6a9fb89e4871452926082bedc81bdde2209060df2587f739159d9412ce4dfd6c6eb986c02640caf8136ae08d4fb7d0985d042a72525d3dc
7
+ data.tar.gz: bc4191ba3cabe8cd7a7d996151dd5851661544f6ad78d0cb425b4be1f720419272258164d9d828c5ba42eacd9956095f71040b216e3d2bb2767a449d04d72b88
data/README.md CHANGED
@@ -119,6 +119,7 @@ Specific options:
119
119
  Output signatures of action words for which signature changed (default: false)
120
120
  --show-actionwords-definition-changed
121
121
  Output action words for which definition changed (default: false)
122
+ --library-name=LIBRARY_NAME Use in conjunction with show-actionwords-*: show the diff for the specified library
122
123
  --with-folders Use folders hierarchy to export files in respective directories (default: false)
123
124
  --empty-folders Export empty folders (default: false)
124
125
  --split-scenarios Export each scenario in a single file (except for Gherkin based languages) (default: false)
@@ -130,6 +131,9 @@ Specific options:
130
131
  --push-format=tap Format of the test results (cucumber-json, junit, nunit, robot, tap) (default: tap)
131
132
  --sort=[id,order,alpha] Sorting of tests in output: id will sort them by age, order will keep the same order than in hiptest (only with --with-folders option, will fallback to id otherwise), alpha will sort them by name (default: order)
132
133
  --[no-]uids Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
134
+ --[no-]parent-folders-tags Export tags from parent folder (note: if set to false, those tags are never rendered. Only available for Gherkin base exports) (default: true)
135
+ --parameter-delimiter Parameter delimiter (for Gherkin based export only) (default: ")
136
+ --with-dataset-names Export dataset name when creating feature files (note: available only for Gherkin-based exports) (default: false)
133
137
  --keep-filenames Keep the same name as in Hiptest for the test files (note: may cause encoding issues) (default: false)
134
138
  --keep-foldernames Keep the same name as in Hiptest for the folders (note: may cause encoding issues) (default: false)
135
139
  --filter-on-scenario-ids=IDS Filter on scenario ids (use commas to separate ids when fetching multiple scenarios)
@@ -239,6 +239,7 @@ class OptionsParser
239
239
  Option.new(nil, 'push-format=tap', 'tap', String, "Format of the test results (cucumber-json, junit, nunit, robot, tap)", :push_format),
240
240
  Option.new(nil, 'sort=[id,order,alpha]', 'order', String, "Sorting of tests in output: id will sort them by age, order will keep the same order than in hiptest (only with --with-folders option, will fallback to id otherwise), alpha will sort them by name", :sort),
241
241
  Option.new(nil, '[no-]uids', true, nil, 'Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back)', :uids),
242
+ Option.new(nil, '[no-]parent-folder-tags', true, nil, 'Export tags from parent folders (note: if set to false, those tags are never rendered. Only available for Gherkin base exports)', :parent_folder_tags),
242
243
  Option.new(nil, 'parameter-delimiter', '"', String, 'Parameter delimiter (for Gherkin based export only)', :parameter_delimiter),
243
244
  Option.new(nil, 'with-dataset-names', false, nil, 'Export dataset name when creating feature files (note: available only for Gherkin-based exports)', :with_dataset_names),
244
245
  Option.new(nil, 'keep-filenames', false, nil, "Keep the same name as in Hiptest for the test files (note: may cause encoding issues)", :keep_filenames),
@@ -568,6 +569,7 @@ class LanguageGroupConfig
568
569
  parameter_delimiter: @user_params[:parameter_delimiter],
569
570
  namespace: @language_group_params[:namespace],
570
571
  uids: @user_params[:uids],
572
+ parent_folder_tags: @user_params[:parent_folder_tags],
571
573
  with_dataset_names: @user_params[:with_dataset_names],
572
574
  renderer_addons: @language_group_params[:renderer_addons]
573
575
  )
@@ -1,5 +1,5 @@
1
- {{#if rendered_children.ancestor_tags}}{{#each rendered_children.ancestor_tags}}{{this}} {{/each}}{{#unless has_tags?}}
2
- {{/unless}}{{/if}}{{#if has_tags?}}{{join rendered_children.tags ' '}}
1
+ {{#if rendered_children.ancestor_tags}}{{#if context.parent_folder_tags}}{{#each rendered_children.ancestor_tags}}{{this}} {{/each}}{{#unless has_tags?}}
2
+ {{/unless}}{{/if}}{{/if}}{{#if has_tags?}}{{join rendered_children.tags ' '}}
3
3
  {{/if}}Feature: {{{ rendered_children.name }}}{{#indent}}
4
4
  {{#if rendered_children.description}}{{#indent}}{{#comment '#'}}{{rendered_children.description}}{{/comment}}{{/indent}}{{/if}}
5
5
  {{#unless is_empty?}}
@@ -1,7 +1,9 @@
1
1
  {{{ rendered_children.name }}}
2
- {{#if rendered_children.ancestor_tags}}Meta:
2
+ {{#if context.parent_folder_tags}}{{#if rendered_children.ancestor_tags}}Meta:
3
3
  {{rendered_children.ancestor_tags}}{{/if}}{{#if has_tags?}}{{#if rendered_children.ancestor_tags}} {{else}}Meta:
4
4
  {{/if}}{{join rendered_children.tags " "}}
5
+ {{/if}}{{else}}Meta:
6
+ {{join rendered_children.tags " "}}
5
7
  {{/if}}{{#if rendered_children.description}}
6
8
  Narrative:
7
9
  {{rendered_children.description}}{{/if}}
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.17.2
4
+ version: 1.18.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: 2018-12-28 00:00:00.000000000 Z
11
+ date: 2019-01-02 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
@@ -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'
204
201
  - - ">="
205
202
  - !ruby/object:Gem::Version
206
203
  version: 0.4.6
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: '0.4'
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'
214
211
  - - ">="
215
212
  - !ruby/object:Gem::Version
216
213
  version: 0.4.6
214
+ - - "~>"
215
+ - !ruby/object:Gem::Version
216
+ version: '0.4'
217
217
  description: Provides a command-line tool that generates Java, Python or Ruby code
218
218
  to run the tests.
219
219
  email: contact@hiptest.com
@@ -665,7 +665,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
665
665
  version: '0'
666
666
  requirements: []
667
667
  rubyforge_project:
668
- rubygems_version: 2.7.8
668
+ rubygems_version: 2.7.6
669
669
  signing_key:
670
670
  specification_version: 4
671
671
  summary: Export your tests from Hiptest into executable tests.