allure-rspec 2.13.6.4 → 2.13.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3769f14ee1972fb068c8a0d037076d3bb2f8df26d4c876411d9eb764c372dab8
4
- data.tar.gz: 89d1e2e93736b3e3b445403ea5070ed638cad7c3cf3e71cdd5d6233f7bf115bb
3
+ metadata.gz: 64cc3df4ca4fdc6d5c03ffd350636fdd1adf1d1b380adf676729baedf20cd558
4
+ data.tar.gz: 43b4c2d026e4d73ccd13c3389ac1094d9f87aa49b7daf3861b7b6c5ee275dacd
5
5
  SHA512:
6
- metadata.gz: c20e8e4512cffa9fea345bf7e5850ac79953e80f8f250f9bf098ebd03ad67aa37daa85ef986406ed6baa6f03a1552d0923482e1d0a1f5894aa511f73e1effeca
7
- data.tar.gz: 22e58bcd59ec06da9f4e26840e83a8c2e6a5733dd10610cb23afead898b97160786dd05c966c89d3afbce495d86e8e419b2852443e1dfe7bd1716522da51baba
6
+ metadata.gz: 5bf9d35a82ab0f3a36d1bd134489ac02e16660d584fd42e076966de82e8ae7e6c2546024eee7851155f6cd06fc02ef4db93b828dcac2abd27b4dc9c2124175dc
7
+ data.tar.gz: ffcc4cc2d5907e2fee29de24648f39fdc8414b3f816a7ce0eb27a21786f241e60d4345b29f2f29a2d1a7f5213756dba948776d938d638528ae1f8cdae86dde5f
data/README.md CHANGED
@@ -145,6 +145,10 @@ it "some test case" do |e|
145
145
  end
146
146
  ```
147
147
 
148
+ ### Steps
149
+
150
+ [Step annotations](../allure-ruby-commons/README.md#steps)
151
+
148
152
  ### Example project
149
153
 
150
154
  [RSpec Example](https://github.com/allure-examples/allure-rspec-example)
@@ -27,6 +27,16 @@ module AllureRspec
27
27
  end
28
28
  end
29
29
 
30
+ RSpec.configure do |config|
31
+ Allure.configure do |allure_config|
32
+ ids = allure_config.test_ids
33
+ names = allure_config.test_names
34
+
35
+ config.filter_run_when_matching(*ids.map { |id| { allure_id: id } }) if ids
36
+ config.full_description = names if names
37
+ end
38
+ end
39
+
30
40
  # Start test run
31
41
  # @param [RSpec::Core::Notifications::StartNotification] _start_notification
32
42
  # @return [void]
@@ -11,7 +11,7 @@ module AllureRspec
11
11
  include TagParser
12
12
 
13
13
  # @return [Hash] allure statuses mapping
14
- ALLURE_STATUS ||= {
14
+ ALLURE_STATUS = {
15
15
  failed: Allure::Status::FAILED,
16
16
  pending: Allure::Status::SKIPPED,
17
17
  passed: Allure::Status::PASSED
@@ -7,9 +7,9 @@ module AllureRspec
7
7
  # @param [Hash] metadata
8
8
  # @return [Array<Allure::Label>]
9
9
  def tag_labels(metadata)
10
- return [] unless metadata.keys.any? { |k| allure?(k) }
11
-
12
- metadata.select { |k| allure?(k) }.values.map { |v| Allure::ResultUtils.tag_label(v) }
10
+ metadata.reject { |k| RSPEC_IGNORED_METADATA.include?(k) }.map do |k, v|
11
+ allure?(k) ? Allure::ResultUtils.tag_label(v) : Allure::ResultUtils.tag_label(k.to_s)
12
+ end
13
13
  end
14
14
 
15
15
  # Get tms links
@@ -46,6 +46,28 @@ module AllureRspec
46
46
 
47
47
  private
48
48
 
49
+ RSPEC_IGNORED_METADATA = %i[
50
+ absolute_file_path
51
+ block
52
+ described_class
53
+ description
54
+ description_args
55
+ example_group
56
+ execution_result
57
+ file_path
58
+ full_description
59
+ last_run_status
60
+ line_number
61
+ location
62
+ rerun_file_path
63
+ retry
64
+ retry_attempts
65
+ retry_exceptions
66
+ scoped_id
67
+ shared_group_inclusion_backtrace
68
+ type
69
+ ].freeze
70
+
49
71
  # @param [Hash] metadata
50
72
  # @param [Symbol] type
51
73
  # @return [Array<Allure::Link>]
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.13.6.4
4
+ version: 2.13.8.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: 2020-10-27 00:00:00.000000000 Z
11
+ date: 2021-02-19 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.13.6.4
19
+ version: 2.13.8.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.13.6.4
26
+ version: 2.13.8.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.1.2
97
+ rubygems_version: 3.2.3
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Allure rspec ruby adaptor