allure-cucumber 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 +4 -4
- data/README.md +2 -0
- data/lib/allure_cucumber/formatter.rb +10 -7
- data/lib/allure_cucumber/models/cucumber_model.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09534f2b3e5dc2e0ef6ee4c23c78b0d480990e7febcba900004b3a5ebbd3dd7c'
|
4
|
+
data.tar.gz: 91325b7f103f6765a5ce72495dc4ed741cec2c5da07e2e5c1eadea67f2030e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a71882c9ceb221819eef7d62f759a8a6e72898ead5f50da3f3f31c79c483f825493d7bd440d2dc29073d2172c4f4fb91a4f8644944f48803dae74262a70be1e9
|
7
|
+
data.tar.gz: 88c0e66b3bd0cbb801b4561efc5fbc4051c10439fc9cbaf5507a54eb74efcaaa8e67617c0b5e10db19e395e76d34aa008d692e0a0919b609ced525cfec384f91
|
data/README.md
CHANGED
@@ -105,6 +105,8 @@ Allure.add_attachment(name: "attachment", source: "Some string", type: Allure::C
|
|
105
105
|
Allure.add_link("Custom Url", "http://www.github.com")
|
106
106
|
```
|
107
107
|
|
108
|
+
It's possible to mark methods so those are included as allure steps: [Step annotations](../allure-ruby-commons/README.md#steps)
|
109
|
+
|
108
110
|
### Example project
|
109
111
|
|
110
112
|
[Cucumber Example](https://github.com/allure-examples/allure-cucumber-example)
|
@@ -21,17 +21,20 @@ module AllureCucumber
|
|
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,7 +29,7 @@ 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),
|
@@ -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
|
|
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.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:
|
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.
|
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.
|
26
|
+
version: 2.13.8.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.2.3
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Allure cucumber ruby adaptor
|