allure-ruby-commons 2.16.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/allure-ruby-commons.rb +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cf416a1b141ec4f00e39b29bcaed9b698b8d9a395a91766b85219223757528b
|
4
|
+
data.tar.gz: c6eb8f3e99d8751540623c3d55d05415d17df998ba1066aab5d59ed0a2737227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8edf4da0ff21aba5875d1ec318990b1806d6dc0153b71b84b6f1523874c4a68938cea9cb89931c94d61d77d4b72853075bc5649c46e4c580a25f56da478558db
|
7
|
+
data.tar.gz: 6ebb50bdd7de43c2d0e46e2c4d6886be2bbc10b0d8745da55554b88598bfdfa9aa50f981b1118f9a2a70db0cc8b7682e26c884e7b43efa6651b44143203d11fd
|
data/lib/allure-ruby-commons.rb
CHANGED
@@ -179,6 +179,33 @@ module Allure
|
|
179
179
|
lifecycle.write_categories(categories)
|
180
180
|
end
|
181
181
|
|
182
|
+
# Set test case status detail to flaky
|
183
|
+
#
|
184
|
+
# @return [void]
|
185
|
+
def set_flaky
|
186
|
+
lifecycle.update_test_case do |test_case|
|
187
|
+
test_case.status_details.flaky = true
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# Set test case status detail to muted
|
192
|
+
#
|
193
|
+
# @return [void]
|
194
|
+
def set_muted
|
195
|
+
lifecycle.update_test_case do |test_case|
|
196
|
+
test_case.status_details.muted = true
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Set test case status detail to known
|
201
|
+
#
|
202
|
+
# @return [void]
|
203
|
+
def set_known
|
204
|
+
lifecycle.update_test_case do |test_case|
|
205
|
+
test_case.status_details.known = true
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
182
209
|
# Add step with provided name and optional status to current test step, fixture or test case
|
183
210
|
# @param [String] name
|
184
211
|
# @param [Symbol] status {Status}, {Status::PASSED} by default
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-ruby-commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.16.
|
4
|
+
version: 2.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|