hiptest-publisher 1.3.1 → 1.4.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
  SHA1:
3
- metadata.gz: 0ac2f72fe8e4a51b4f7683bfc314b7626852fd2d
4
- data.tar.gz: 5af568d1143809532802ff378b57c4a968c5563b
3
+ metadata.gz: 1c34af5dd484615d5f9a21ec6d3a7d3d8532d595
4
+ data.tar.gz: 30a1cc2be8a0a7ac9d2e9f8c3fe89c8b5d8035ff
5
5
  SHA512:
6
- metadata.gz: 2b2cdd8916f5f4a578135bbabba307e1e591a7090074b469546d7587d1b841e258219bb582d18744efd4d21679e0e61f0d63a4b938e584a12c27a170a2897ff3
7
- data.tar.gz: 274bb7d83746c5d05aacc825dc15ad42a79af0141e651b46831710de8c2ee2e7b3506b04f25b7ff4c3d721c8174443b0f9267587dca38549f5e3acd738fc0181
6
+ metadata.gz: 795d67b834a18ffe1b35a1608eaffa50d947d9aaead6cf01afd732bd903614b31d41e1d7ccfa8c4f5559eeec154d78ee55bfd052d6ff471f7e166144f89e4b6b
7
+ data.tar.gz: 7d758bf2f67395f0c6e46d191983393013bb94887eb5d4a3d34abeecfd5b940079d2055212b54bdecc331880904432a926169a5b67ac241139de06ed108e44bc
@@ -246,7 +246,7 @@ module Hiptest
246
246
  end
247
247
 
248
248
  def tag_compatible?(value)
249
- value =~ /\A[a-zA-Z0-9_-]*(:[a-zA-Z0-9_-]*)?\z/
249
+ value =~ /\A[a-zA-Z0-9_-]*(: ?[a-zA-Z0-9_-]*)?\z/
250
250
  end
251
251
 
252
252
  def formatted_categories(categories)
@@ -36,7 +36,9 @@ module Hiptest
36
36
  filter_on_tags: 'filter_tags'
37
37
  }
38
38
 
39
- options = mapping.map do |key, filter_name|
39
+ options = []
40
+
41
+ mapping.each do |key, filter_name|
40
42
  value = @cli_options.send(key)
41
43
  next if value.nil? || value.empty?
42
44
 
@@ -44,9 +46,14 @@ module Hiptest
44
46
  value = value.split(',').map(&:strip).join(',')
45
47
  end
46
48
 
47
- "#{filter_name}=#{value}"
48
- end.compact
49
- return options.empty? ? '' : "?#{options.first}"
49
+ options << "#{filter_name}=#{value}"
50
+ if [:filter_on_folder_ids, :filter_on_folder_name].include?(key) && @cli_options.send(:not_recursive)
51
+ options << "not_recursive=true"
52
+ end
53
+ end
54
+
55
+
56
+ return options.empty? ? '' : "?#{options.join('&')}"
50
57
  end
51
58
 
52
59
  def test_run_export_filter
@@ -225,6 +225,7 @@ class OptionsParser
225
225
  Option.new(nil, 'filter-on-folder-name=NAME', '', String, "Filter on folder name (only one name is accepted)", :filter_on_folder_name),
226
226
  Option.new(nil, 'filter-on-tags=TAGS', '', String, "Filter on scenarios and folder tags (use commas to separate tags when using multiple tags)", :filter_on_tags),
227
227
  Option.new(nil, 'filter-on-status=STATUS', '', String, "Filter on test status in last build (use in conjunction with a test run)", :filter_on_status),
228
+ Option.new(nil, 'not-recursive', false, nil, "Used in conjunction with filter-on-folder-ids or filter-on-folder-name: only exports those folders, not their children", :not_recursive),
228
229
  Option.new(nil, 'check-version', false, nil, "Check if a new release of hiptest-publisher is available", :check_version),
229
230
  Option.new('v', 'verbose', false, nil, "Run verbosely", :verbose)
230
231
  ]
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: 1.3.1
4
+ version: 1.4.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: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -622,7 +622,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
622
  version: '0'
623
623
  requirements: []
624
624
  rubyforge_project:
625
- rubygems_version: 2.6.8
625
+ rubygems_version: 2.6.10
626
626
  signing_key:
627
627
  specification_version: 4
628
628
  summary: Export your tests from Hiptest into executable tests.