allure-cucumber 2.13.6.1 → 2.13.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d77ff4a8eb6b33fe7fb6e8fb0fe43c30715e602748ab82045413db15e73205
|
4
|
+
data.tar.gz: dfe08d10319023b251ee3fc7d9ed23c2b48c341122130e774e0a33a5f981ad6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39009ffb92212511a4b3a2e6f64ddb85eddfb357b7ef18a0e5757cdaa9b451574499379c823dfa23ad6c415bb10521b6156cb5b9e8c7b5f375dd7c912a15bcc
|
7
|
+
data.tar.gz: 8ae456ea73dc7fd9f68bb379553b4b2e807db6ca932a13c35e109c9164b260fd0d39c71cfccf9c523a9aa0a531d89fc17c62bda7edc2d2ffc02cfd0bbc7c11ca
|
@@ -17,20 +17,22 @@ module AllureCucumber
|
|
17
17
|
DEFAULT_SEVERITY_PREFIX = "SEVERITY:"
|
18
18
|
|
19
19
|
def_delegators :@allure_config,
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
20
|
+
:clean_results_directory,
|
21
|
+
:clean_results_directory=,
|
22
|
+
:link_issue_pattern,
|
23
|
+
:link_issue_pattern=,
|
24
|
+
:link_tms_pattern,
|
25
|
+
:link_tms_pattern=,
|
26
|
+
:logging_level,
|
27
|
+
:logging_level=,
|
28
|
+
:results_directory,
|
29
|
+
:results_directory=
|
30
30
|
|
31
31
|
attr_writer :tms_prefix, :issue_prefix, :severity_prefix
|
32
32
|
|
33
33
|
def initialize
|
34
|
+
super()
|
35
|
+
|
34
36
|
@allure_config = Allure.configuration
|
35
37
|
end
|
36
38
|
|
@@ -10,28 +10,31 @@ module AllureCucumber
|
|
10
10
|
# @return [Hash] hook handler methods
|
11
11
|
HOOK_HANDLERS = {
|
12
12
|
"Before hook" => :start_prepare_fixture,
|
13
|
-
"After hook" => :start_tear_down_fixture
|
13
|
+
"After hook" => :start_tear_down_fixture
|
14
14
|
}.freeze
|
15
15
|
# @return [Hash] allure statuses mapping
|
16
16
|
ALLURE_STATUS = {
|
17
17
|
failed: Allure::Status::FAILED,
|
18
18
|
skipped: Allure::Status::SKIPPED,
|
19
|
-
passed: Allure::Status::PASSED
|
19
|
+
passed: Allure::Status::PASSED
|
20
20
|
}.freeze
|
21
21
|
|
22
22
|
# @param [Cucumber::Configuration] config
|
23
23
|
def initialize(config)
|
24
|
-
Allure.configure do |
|
25
|
-
|
24
|
+
Allure.configure do |allure_config|
|
25
|
+
allure_config.results_directory = config.out_stream if config.out_stream.is_a?(String)
|
26
|
+
|
27
|
+
names = allure_config.test_names
|
28
|
+
config.name_regexps.push(*names.map { |name| /#{name}/ }) if names
|
26
29
|
end
|
27
30
|
|
28
31
|
@cucumber_model = AllureCucumberModel.new(config)
|
29
32
|
|
30
|
-
config.on_event(:test_run_started
|
31
|
-
config.on_event(:test_case_started
|
32
|
-
config.on_event(:test_step_started
|
33
|
-
config.on_event(:test_step_finished
|
34
|
-
config.on_event(:test_case_finished
|
33
|
+
config.on_event(:test_run_started) { |event| on_test_run_started(event) }
|
34
|
+
config.on_event(:test_case_started) { |event| on_test_case_started(event) }
|
35
|
+
config.on_event(:test_step_started) { |event| on_test_step_started(event) }
|
36
|
+
config.on_event(:test_step_finished) { |event| on_test_step_finished(event) }
|
37
|
+
config.on_event(:test_case_finished) { |event| on_test_case_finished(event) }
|
35
38
|
end
|
36
39
|
|
37
40
|
# Clean test result directory before starting run
|
@@ -29,11 +29,11 @@ module AllureCucumber
|
|
29
29
|
description: scenario.description,
|
30
30
|
description_html: scenario.description,
|
31
31
|
history_id: scenario.id,
|
32
|
-
full_name:
|
32
|
+
full_name: scenario.name,
|
33
33
|
labels: labels(scenario),
|
34
34
|
links: links(scenario),
|
35
35
|
parameters: parameters(scenario),
|
36
|
-
status_details: Allure::StatusDetails.new(**status_detail_tags(scenario.tags))
|
36
|
+
status_details: Allure::StatusDetails.new(**status_detail_tags(scenario.tags))
|
37
37
|
)
|
38
38
|
end
|
39
39
|
|
@@ -45,7 +45,7 @@ module AllureCucumber
|
|
45
45
|
attachments = step_attachments(step)
|
46
46
|
allure_step = Allure::StepResult.new(
|
47
47
|
name: step.name,
|
48
|
-
attachments: attachments.map { |att| att[:allure_attachment] }
|
48
|
+
attachments: attachments.map { |att| att[:allure_attachment] }
|
49
49
|
)
|
50
50
|
|
51
51
|
{ allure_step: allure_step, attachments: attachments }
|
@@ -114,7 +114,7 @@ module AllureCucumber
|
|
114
114
|
return unless step.data_table
|
115
115
|
|
116
116
|
attachment = Allure::ResultUtils.prepare_attachment("data-table", Allure::ContentType::CSV)
|
117
|
-
csv = step.data_table.rows.each_with_object([]) { |row, arr| arr.push(row.cells.map(&:value).to_csv) }.join
|
117
|
+
csv = step.data_table.rows.each_with_object([]) { |row, arr| arr.push(row.cells.map(&:value).to_csv) }.join
|
118
118
|
{ source: csv, allure_attachment: attachment }
|
119
119
|
end
|
120
120
|
|
@@ -31,9 +31,8 @@ module AllureCucumber
|
|
31
31
|
# @return [Allure::Label]
|
32
32
|
def severity(tags)
|
33
33
|
severity_pattern = reserved_patterns[:severity]
|
34
|
-
|
35
|
-
|
36
|
-
&.match(severity_pattern)&.[](:severity) || "normal"
|
34
|
+
severity_tags = tags.detect { |tag| tag.match?(severity_pattern) }
|
35
|
+
severity = severity_tags&.match(severity_pattern)&.[](:severity) || "normal"
|
37
36
|
|
38
37
|
Allure::ResultUtils.severity_label(severity)
|
39
38
|
end
|
@@ -44,7 +43,7 @@ module AllureCucumber
|
|
44
43
|
{
|
45
44
|
flaky: tags.any? { |tag| tag.match?(reserved_patterns[:flaky]) },
|
46
45
|
muted: tags.any? { |tag| tag.match?(reserved_patterns[:muted]) },
|
47
|
-
known: tags.any? { |tag| tag.match?(reserved_patterns[:known]) }
|
46
|
+
known: tags.any? { |tag| tag.match?(reserved_patterns[:known]) }
|
48
47
|
}
|
49
48
|
end
|
50
49
|
|
@@ -68,7 +67,7 @@ module AllureCucumber
|
|
68
67
|
severity: /@#{AllureCucumber.configuration.severity_prefix}(?<severity>\S+)/,
|
69
68
|
flaky: /@flaky/,
|
70
69
|
muted: /@muted/,
|
71
|
-
known: /@known
|
70
|
+
known: /@known/
|
72
71
|
}
|
73
72
|
end
|
74
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.8
|
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-
|
11
|
+
date: 2020-12-17 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.
|
19
|
+
version: 2.13.8
|
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.
|
26
|
+
version: 2.13.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.0.0
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '6'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: 4.0.0
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '6'
|
41
47
|
description: Cucumber adaptor to generate rich allure test reports
|
42
48
|
email: andrejs.cunskis@gmail.com
|
43
49
|
executables: []
|
@@ -76,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
82
|
- !ruby/object:Gem::Version
|
77
83
|
version: '0'
|
78
84
|
requirements: []
|
79
|
-
rubygems_version: 3.1.
|
85
|
+
rubygems_version: 3.1.4
|
80
86
|
signing_key:
|
81
87
|
specification_version: 4
|
82
88
|
summary: Allure cucumber ruby adaptor
|