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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc2100a744ffd87dce2f8008219a3e16bce999a8e235365627bea1d3d50331e7
4
- data.tar.gz: 1885ce1397ee6971875ea6b1f6281314b89d533b0b32c169d2ba030298751216
3
+ metadata.gz: '09534f2b3e5dc2e0ef6ee4c23c78b0d480990e7febcba900004b3a5ebbd3dd7c'
4
+ data.tar.gz: 91325b7f103f6765a5ce72495dc4ed741cec2c5da07e2e5c1eadea67f2030e82
5
5
  SHA512:
6
- metadata.gz: 53e127a58ec9e7aad4a120b2cb95901e2aa161bdf1eb9ad95381ae75f6015420ce77da68cfbc79c8e28a20babcb8b05b0770e4b4e9cbc6f5e651b81e75472e51
7
- data.tar.gz: fe255e612247aef1187887423cd7a26e0b21ecd030132f0de1d589af86f6a27b0afe447ca79846c951137e985e3069b1e42130fd227425eab71add6cf1f7f467
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 |c|
25
- c.results_directory = config.out_stream if config.out_stream.is_a?(String)
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, &method(:on_test_run_started))
31
- config.on_event(:test_case_started, &method(:on_test_case_started))
32
- config.on_event(:test_step_started, &method(:on_test_step_started))
33
- config.on_event(:test_step_finished, &method(:on_test_step_finished))
34
- config.on_event(:test_case_finished, &method(:on_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: "#{scenario.feature_name}: #{scenario.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.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: 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.1.2
85
+ rubygems_version: 3.2.3
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Allure cucumber ruby adaptor