allure-rspec 2.13.10 → 2.14.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6713eef98c82f9aaaedf42b680dfc60cd6a1f0d078d0bbde6d41ca093bd43cc7
4
- data.tar.gz: f2621a5be7fe54c960a40cb49aba240aa6ade93aefc7843a671b42011ee5b6d5
3
+ metadata.gz: a67af7b56e2e3f7366d9d883e12db1dc64ffe7a5fa01d9f6464f6affe6123a31
4
+ data.tar.gz: 5ec7cf72e6e09ed6ddd24997a84f3a16260debe808dfdc0e23213f9c01348c02
5
5
  SHA512:
6
- metadata.gz: c55b18d7fe448382e93a775f71f00c1297c621947d655466baab033923aba86c466bc40d377d5f0a9bcd54e281edc1befb602dfad44d04b47f2b72a65fb60739
7
- data.tar.gz: 89a69e78576802c4c3c3c36bd816c6e00c75bda47edac1d029e430c019d9556db80d10f88d6c6e6a99d1144d3e64549e4e6e0b0e8f7ec15ff277a967dd796ce6
6
+ metadata.gz: 790477403e811efe911740818e6fa75c5f71c2e3a823eac8dce560fb72fb94c1ab4a88c7211f5dccbc12467927b7fa2dc5c9b15bf2b43b0847ee9003c6321537
7
+ data.tar.gz: a72b62c4e0c66d6946f0ee81fc4a1a96db259c41817d2b7509f2fabe6e5061e3643b9838cb102f13e5b1cc527792668c6f05f896e68199c9ff4c39607b6c1ba0
data/README.md CHANGED
@@ -23,17 +23,25 @@ require "allure-rspec"
23
23
  Following configuration options are supported:
24
24
 
25
25
  ```ruby
26
- AllureRspec.configure do |config|
27
- config.results_directory = "report/allure-results"
28
- config.clean_results_directory = true
29
- config.logging_level = Logger::INFO
30
- config.logger = Logger.new($stdout, Logger::DEBUG)
31
- config.environment = "staging"
32
-
33
- # these are used for creating links to bugs or test cases where {} is replaced with keys of relevant items
34
- config.link_tms_pattern = "http://www.jira.com/browse/{}"
35
- config.link_issue_pattern = "http://www.jira.com/browse/{}"
36
- end
26
+ AllureRspec.configure do |config|
27
+ config.results_directory = "report/allure-results"
28
+ config.clean_results_directory = true
29
+ config.logging_level = Logger::INFO
30
+ config.logger = Logger.new($stdout, Logger::DEBUG)
31
+ config.environment = "staging"
32
+
33
+ # these are used for creating links to bugs or test cases where {} is replaced with keys of relevant items
34
+ config.link_tms_pattern = "http://www.jira.com/browse/{}"
35
+ config.link_issue_pattern = "http://www.jira.com/browse/{}"
36
+
37
+ # additional metadata
38
+ # environment.properties
39
+ config.environment_properties = {
40
+ custom_attribute: "foo"
41
+ }
42
+ # categories.json
43
+ config.categories = File.new("my_custom_categories.json")
44
+ end
37
45
  ```
38
46
 
39
47
  ## Usage
@@ -50,7 +50,11 @@ module AllureRspec
50
50
  :results_directory,
51
51
  :results_directory=,
52
52
  :environment,
53
- :environment=
53
+ :environment=,
54
+ :environment_properties,
55
+ :environment_properties=,
56
+ :categories,
57
+ :categories=
54
58
 
55
59
  def initialize
56
60
  @allure_config = Allure.configuration
@@ -45,6 +45,8 @@ module AllureRspec
45
45
  # @return [void]
46
46
  def start(_start_notification)
47
47
  lifecycle.clean_results_dir
48
+ lifecycle.write_environment
49
+ lifecycle.write_categories
48
50
 
49
51
  RSpec::Core::Example.class_eval do
50
52
  include Allure
@@ -97,7 +99,7 @@ module AllureRspec
97
99
  name: example.description,
98
100
  description: "Location - #{strip_relative(example.location)}",
99
101
  description_html: "Location - #{strip_relative(example.location)}",
100
- history_id: Digest::MD5.hexdigest(example.id),
102
+ history_id: example.id,
101
103
  full_name: example.full_description,
102
104
  labels: parser.labels,
103
105
  links: parser.links,
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.10
4
+ version: 2.14.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: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-07-24 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.10
19
+ version: 2.14.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.10
26
+ version: 2.14.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.2.15
84
+ rubygems_version: 3.2.22
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Allure rspec ruby adaptor