suiteview 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/suiteview.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7541b140c26144354b958060b2675b0e73ee3d4a35604406f75e6f615fbcea0
|
4
|
+
data.tar.gz: 6be9cb88b5bc442c7dd227a2f7b9e19c329e48a7476f6ebc69698a2c55e65276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|