suiteview 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/suiteview.rb +12 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a97d3a0a3f0538bc865296fc78f1154c28ba7ce188bdb24f6befbc356044ca9
4
- data.tar.gz: 3b91b2cb086a6c98f9c05ebf00ffecaa34dfb8a9790846deb51135741a8ef1ed
3
+ metadata.gz: e7541b140c26144354b958060b2675b0e73ee3d4a35604406f75e6f615fbcea0
4
+ data.tar.gz: 6be9cb88b5bc442c7dd227a2f7b9e19c329e48a7476f6ebc69698a2c55e65276
5
5
  SHA512:
6
- metadata.gz: a3fdc7b8ce4c82daed03276c0f277fb91a48bf7dbd4404437051556a49e0543f058abb02d6e845b1358cb3ed98f9f21dfdab65ee4ccff66f1ad4e360984aba65
7
- data.tar.gz: 20591bdbe2149d3a7f58f90e1528d2af847bd1c842b2a370ace2793bfb9460518067c85006dae8190c0c200b85a4242a324a0dbf69941efbfce8a0fc0c918a77
6
+ metadata.gz: a5d4a7963843f53cc9db7806269f03ef90b01c1b88ba95de46cf9be8dc3e89965835aae263d7376403ddd2e94ae18c53887b81aa8ed6d5b43b13bf8ca214c981
7
+ data.tar.gz: 6c20ce1d353c7bd661f17d498e9ab83003b20f5924a308841ba07bb79ea1cfd01d1546f79e859a2bff565f6a395771ba96c8a886363fac2a135fbfb722a77e4b
data/lib/suiteview.rb CHANGED
@@ -62,6 +62,10 @@ class SuiteView
62
62
  self.render_step.render_to_file(filename)
63
63
  end
64
64
 
65
+ def all_tags
66
+ all_tags_query
67
+ end
68
+
65
69
  private
66
70
 
67
71
  def calc_percentage(suite_stat_dto)
@@ -107,4 +111,12 @@ class SuiteView
107
111
  without { |scenario| scenario.tags.map(&:name).include?(exclude_tag) }
108
112
  end
109
113
  end
114
+
115
+ def all_tags_query
116
+ self.repo.query do
117
+ select tags
118
+ transform tags => lambda { |tags| tags.map(&:name) }
119
+ from scenarios, outlines
120
+ end.map {|result| result["tags"]}.flatten.uniq
121
+ end
110
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suiteview
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David West