allure-rspec 2.13.6.3 → 2.13.8.2

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: c883637d45f77af04f32abc1aa975d12ac01b2bb6562909475036671d9ddb575
4
- data.tar.gz: 969fccfa4adc1a2c876c3488bf4b586493a7f5030ec51c35c09e5979edded614
3
+ metadata.gz: 73aaf789a4f2dad6d1681e4fe8ca764158f9a94739380d57d109db2713dcd27d
4
+ data.tar.gz: e8f7a74c004f18ae20f3c3a0e602e7342e4b4a6b8ac10ca6e62bb886b5dce67a
5
5
  SHA512:
6
- metadata.gz: 4ff9f81eef901ed44ea687f25cae474f53871a6400a4a4b484fb34609a7537a388b1f320a96cc3c6ca421eade0ab58d779889362761b57c66e199d14d1223df3
7
- data.tar.gz: 200276d474bd396f46dd4b0408c59f2babc2f997d471bfd3347e4cbaed7920f7f554328689da7cea9932f302173da5575a1f80c9c4f3669d6d5faeed94917f88
6
+ metadata.gz: ac2616d7aba707b9d9b0446e34ae29737a465ce79dc92382c32239809137a00e6a5e46c52de829c8874015e9bc2f79b5c37fe68e92006623026c62272e88d6db
7
+ data.tar.gz: 944ed0ded513b4b97c8ecd3ddd59f6ed0f6e20fc71de6660bbfd9808e95ffdbc0d441f1c3920cd0067184fd6c2559770f779bad0ccb211f7998f3f825d4eb669
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)
@@ -10,16 +10,16 @@ module AllureRspec
10
10
  extend Forwardable
11
11
 
12
12
  def_delegators :@allure_config,
13
- :clean_results_directory,
14
- :clean_results_directory=,
15
- :link_issue_pattern,
16
- :link_issue_pattern=,
17
- :link_tms_pattern,
18
- :link_tms_pattern=,
19
- :logging_level,
20
- :logging_level=,
21
- :results_directory,
22
- :results_directory=
13
+ :clean_results_directory,
14
+ :clean_results_directory=,
15
+ :link_issue_pattern,
16
+ :link_issue_pattern=,
17
+ :link_tms_pattern,
18
+ :link_tms_pattern=,
19
+ :logging_level,
20
+ :logging_level=,
21
+ :results_directory,
22
+ :results_directory=
23
23
 
24
24
  def initialize
25
25
  super()
@@ -18,7 +18,7 @@ module AllureRspec
18
18
  :example_group_started,
19
19
  :example_group_finished,
20
20
  :example_started,
21
- :example_finished,
21
+ :example_finished
22
22
  )
23
23
 
24
24
  RSpec::Core::Example.class_eval do
@@ -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,10 +11,10 @@ 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
- passed: Allure::Status::PASSED,
17
+ passed: Allure::Status::PASSED
18
18
  }.freeze
19
19
 
20
20
  # Transform example to <Allure::TestResult>
@@ -29,7 +29,7 @@ module AllureRspec
29
29
  full_name: example.full_description,
30
30
  labels: labels(example),
31
31
  links: links(example),
32
- status_details: Allure::StatusDetails.new(**status_detail_tags(example.metadata)),
32
+ status_details: Allure::StatusDetails.new(**status_detail_tags(example.metadata))
33
33
  )
34
34
  end
35
35
 
@@ -38,9 +38,9 @@ module AllureRspec
38
38
  # @return [Hash<Symbol, Boolean>]
39
39
  def status_detail_tags(metadata)
40
40
  {
41
- flaky: !!metadata[:flaky],
42
- muted: !!metadata[:muted],
43
- known: !!metadata[:known],
41
+ flaky: !metadata[:flaky].nil?,
42
+ muted: !metadata[:muted].nil?,
43
+ known: !metadata[:known].nil?
44
44
  }
45
45
  end
46
46
 
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.3
4
+ version: 2.13.8.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: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: allure-ruby-commons
@@ -16,28 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.13.6.3
19
+ version: 2.13.8.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.13.6.3
26
+ version: 2.13.8.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.8'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '4'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '3.8'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '4'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: ruby2_keywords
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
94
  - !ruby/object:Gem::Version
89
95
  version: '0'
90
96
  requirements: []
91
- rubygems_version: 3.1.2
97
+ rubygems_version: 3.2.3
92
98
  signing_key:
93
99
  specification_version: 4
94
100
  summary: Allure rspec ruby adaptor