hiptest-publisher 2.2.0 → 2.3.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: d61267586ac5a1558fe7dd293a47f4e2a70a7ea5ad1ea298017bf46817fe00df
4
- data.tar.gz: 3ee67eedf55488db4522546424d06a26cf376d5351ce07de5c128cbb977834e4
3
+ metadata.gz: 04df68389d79eef22f27cb79528f299c78f61903025829dfda61dd4dab2a9f90
4
+ data.tar.gz: 53f3cde89ad7489ce38fcbd64e16d3cf2d73b1b9cbc8508e9ad651823c80de2a
5
5
  SHA512:
6
- metadata.gz: 0de9ee6ccbd99d07671fbdcb63394978e5a70ed4fd3e706cfb52281c9971a9dbdc0949be607134d5d19c1473b753325f0a2e15ce6ba9cffb04d3a206ebdfe173
7
- data.tar.gz: e9f0e70c2aeabcd5576095b49e575012e9a73c9943f61c823cb8e8a92700cdeb9b2a29398c576331f65afcc5050be197b8e1340d0cce2176fc1359e6b80f6460
6
+ metadata.gz: 1512f51ef0627162bac206f9481936f342f66413b131fbe20500f5df0202e96336bc3be7bc6356c420c209d39314332c97bccbc8b7c714a6ca643473492b760a
7
+ data.tar.gz: a6515cec1e3a494b3bcb046473ffdb38ff2b98abb272d2c3b9728194a3516272946b63d5e65235bb4a9dfe9cead990780e40315488d01a3bb56687178437ee41
@@ -1,6 +1,11 @@
1
1
  HipTest Publisher Changelog
2
2
  ===========================
3
3
 
4
+ [2.3.0]
5
+ -------
6
+
7
+ - No test uids in datatables by default for feature files, add them when test run is used (#201)
8
+
4
9
  [2.2.0]
5
10
  -------
6
11
 
@@ -222,6 +227,7 @@ HipTest Publisher Changelog
222
227
 
223
228
 
224
229
  <!-- List of releases -->
230
+ [2.3.0]: https://github.com/hiptest/hiptest-publisher/compare/v2.2.0...v2.3.0
225
231
  [2.2.0]: https://github.com/hiptest/hiptest-publisher/compare/v2.1.0...v2.2.0
226
232
  [2.1.0]: https://github.com/hiptest/hiptest-publisher/compare/v2.0.0...v2.1.0
227
233
  [2.0.0]: https://github.com/hiptest/hiptest-publisher/compare/v1.31.0...v2.0.0
@@ -206,7 +206,7 @@ en:
206
206
  test_run_name: Export data from a test run identified by its name
207
207
  tests_only: "(deprecated) alias for --only=tests"
208
208
  token: Secret token (available in your project settings)
209
- uids: 'Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back)'
209
+ uids: 'Export UIDs for Gherkin-based exports (note: disabled by default, enabled when specifying test run, disabling it may cause issue when pushing results back into test run)'
210
210
  verbose: Run verbosely
211
211
  with_dataset_names: 'Export dataset name when creating feature files (note: available only for Gherkin-based exports)'
212
212
  with_folders: Use folders hierarchy to export files in respective directories
@@ -114,6 +114,10 @@ class CliOptions < OpenStruct
114
114
  option_present?(test_run_name)
115
115
  end
116
116
 
117
+ def test_run?
118
+ test_run_id? || test_run_name?
119
+ end
120
+
117
121
  def language_framework
118
122
  if framework.empty?
119
123
  language
@@ -132,10 +136,15 @@ class CliOptions < OpenStruct
132
136
  "--#{key.to_s.gsub('_', '-')}=#{self[key]}"
133
137
  end.compact
134
138
 
135
- return "hiptest-publisher #{args.join(' ')}".strip
139
+ "hiptest-publisher #{args.join(' ')}".strip
140
+ end
141
+
142
+ def uids_not_set_yet?
143
+ !__cli_args.include?(:uids) && !__config_args.include?(:uids)
136
144
  end
137
145
 
138
146
  def normalize!(reporter = nil)
147
+ self.uids = true if test_run? && uids_not_set_yet?
139
148
  self.no_uids = !uids # silent normalization
140
149
  modified_options = self.clone
141
150
  if actionwords_only
@@ -249,7 +258,7 @@ class OptionsParser
249
258
  Option.new(nil, 'push-format=tap', 'tap', String, I18n.t('options.push_format'), :push_format),
250
259
  Option.new(nil, 'execution-environment=NAME', '', String, I18n.t('options.execution_environment'), :execution_environment),
251
260
  Option.new(nil, 'sort=[id,order,alpha]', 'order', String, I18n.t('options.sort'), :sort),
252
- Option.new(nil, '[no-]uids', true, nil, I18n.t('options.uids'), :uids),
261
+ Option.new(nil, '[no-]uids', false, nil, I18n.t('options.uids'), :uids),
253
262
  Option.new(nil, '[no-]parent-folder-tags', true, nil, I18n.t('options.parent_folder_tags'), :parent_folder_tags),
254
263
  Option.new(nil, 'parameter-delimiter=DELIMITER', '"', EmptiableString, I18n.t('options.parameter_delimiter'), :parameter_delimiter),
255
264
  Option.new(nil, 'with-dataset-names', false, nil, I18n.t('options.with_dataset_names'), :with_dataset_names),
@@ -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,75 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiptest-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.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-02-21 00:00:00.000000000 Z
11
+ date: 2020-04-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'
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
56
56
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '0.7'
60
57
  - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: 0.7.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.7'
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'
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 0.7.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.7'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: nokogiri
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -88,22 +88,22 @@ dependencies:
88
88
  name: multipart-post
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '2.1'
94
91
  - - ">="
95
92
  - !ruby/object:Gem::Version
96
93
  version: 2.1.1
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
97
  type: :runtime
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '2.1'
104
101
  - - ">="
105
102
  - !ruby/object:Gem::Version
106
103
  version: 2.1.1
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '2.1'
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: ruby_version
109
109
  requirement: !ruby/object:Gem::Requirement
@@ -192,22 +192,22 @@ dependencies:
192
192
  name: codeclimate-test-reporter
193
193
  requirement: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - "~>"
196
- - !ruby/object:Gem::Version
197
- version: '0.4'
198
195
  - - ">="
199
196
  - !ruby/object:Gem::Version
200
197
  version: 0.4.6
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '0.4'
201
201
  type: :development
202
202
  prerelease: false
203
203
  version_requirements: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - "~>"
206
- - !ruby/object:Gem::Version
207
- version: '0.4'
208
205
  - - ">="
209
206
  - !ruby/object:Gem::Version
210
207
  version: 0.4.6
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: '0.4'
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: i18n-tasks
213
213
  requirement: !ruby/object:Gem::Requirement
@@ -754,7 +754,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
754
754
  - !ruby/object:Gem::Version
755
755
  version: '0'
756
756
  requirements: []
757
- rubygems_version: 3.1.2
757
+ rubyforge_project:
758
+ rubygems_version: 2.7.6.2
758
759
  signing_key:
759
760
  specification_version: 4
760
761
  summary: Export your tests from HipTest into executable tests.