allure-rspec 2.24.1 → 2.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 2e00eb260413e397e7f12592307cb60f752d7e913b30c17ce8d2606f47290b2e
|
|
4
|
+
data.tar.gz: c15473a3ffb07c9706258695f142be47225ca878eb0b9dc935904cbf35eedfe9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6fe13cdc2af401240787dfa6770a64e881f90eb89fe11bd7b9b86e8834b040bda6c2b2fbc4d67feaf404f5c50e9ec521ce26872d16d372dd017b3103d3d3e20
|
|
7
|
+
data.tar.gz: 0b37ad1191095dbe7b0a5fa2f953ee8c48584787930ae792ac7e4e85997344e873c1e765d5c6b534899aebf5da2d2e216b3f84314380317d1961828fb7ec2d83
|
|
@@ -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.2
|
|
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-03-18 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.2
|
|
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.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rspec-core
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|