allure-rspec 2.24.1 → 2.24.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/allure_rspec/formatter.rb +2 -2
- data/lib/allure_rspec/metadata_parser.rb +16 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 278a734ca879b0caa45567842d89ddd4b399d24969f159df4e3bd76dc1adf96d
|
4
|
+
data.tar.gz: 65bfa9bf84a77c5aed0437f31ec9b9169c5ff9d00770f9d27538dfa342af2d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c2033e3054c1a609d5d594f4c5cc17749897e0aa50423676a35e984131f2f42b5ded9b7d076d489d3af0b1e8a3af174128b16b46ea362d07e77dccb3159bff
|
7
|
+
data.tar.gz: f504806aa1fbfc6365d2670105f4d2cf15d061eeace99550148ed986798b5814ea7f59ab2741c6b3dd7ce44e89463edf0812ac60b4ae757a283c3469e432bc82
|
@@ -104,8 +104,8 @@ module AllureRspec
|
|
104
104
|
|
105
105
|
Allure::TestResult.new(
|
106
106
|
name: example.description,
|
107
|
-
description: "Location - #{strip_relative(
|
108
|
-
description_html: "Location - #{strip_relative(
|
107
|
+
description: "Location - #{strip_relative(parser.location)}",
|
108
|
+
description_html: "Location - #{strip_relative(parser.location)}",
|
109
109
|
history_id: example.id,
|
110
110
|
full_name: example.full_description,
|
111
111
|
labels: parser.labels,
|
@@ -31,7 +31,7 @@ module AllureRspec
|
|
31
31
|
# Metadata parser instance
|
32
32
|
#
|
33
33
|
# @param [RSpec::Core::Example] example
|
34
|
-
# @param [AllureRspec::RspecConfig] config
|
34
|
+
# @param [AllureRspec::RspecConfig] config
|
35
35
|
def initialize(example, config)
|
36
36
|
@example = example
|
37
37
|
@config = config
|
@@ -67,6 +67,21 @@ module AllureRspec
|
|
67
67
|
)
|
68
68
|
end
|
69
69
|
|
70
|
+
# Example location
|
71
|
+
#
|
72
|
+
# @return [String]
|
73
|
+
def location
|
74
|
+
file = example
|
75
|
+
.metadata
|
76
|
+
.fetch(:shared_group_inclusion_backtrace)
|
77
|
+
.last
|
78
|
+
&.formatted_inclusion_location
|
79
|
+
|
80
|
+
return example.location unless file
|
81
|
+
|
82
|
+
file
|
83
|
+
end
|
84
|
+
|
70
85
|
private
|
71
86
|
|
72
87
|
# @return [RSpec::Core::Example]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.24.
|
4
|
+
version: 2.24.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: allure-ruby-commons
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.24.
|
19
|
+
version: 2.24.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.24.
|
26
|
+
version: 2.24.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|