jericho 0.2.1 → 0.2.2

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: b06003f5c14f86350642c907b595e551482a2ae34ebee48b30d22e68d6b41007
4
- data.tar.gz: e12f2cae08afae64201810f95d8d117193244ff220a81c2b300daf86bb78938d
3
+ metadata.gz: d0bd48db5c5a44f345b6f0bd84764b5cd7fedff787715998768852bd7c2b17fd
4
+ data.tar.gz: f41f849009434071d1e8bfa6dc6949c246e9f1af217d294d6c1f190b40ca8b47
5
5
  SHA512:
6
- metadata.gz: d17ee9257d73ecdbc32931e6b6b0312fc24d70a557603e1119b7c68e95acb03b7532960d9c9201808fed1bc2cd992258587a02f6f89ad83bc01b4fe72a5f821a
7
- data.tar.gz: 892d490e3691694a64fbefa049dd5c087c9a8b75f6e4943896cb1b2fda5f22c2c9dbd19f80afa37e15e409fbef55d0eb7cf6009baf331577b3b185b3f63cb285
6
+ metadata.gz: f382a403ec4d48a6cf78a99f0c86a0c17b90d8ad246b0d357c09e94a7415d09665594805c79303d5ad66c141ed07ccca6a923d3167ddfbf03a43609afb6f0b5f
7
+ data.tar.gz: e7ec3b285650dd2155fcac6ee7b8c00fbd175d52cb3ad69ab4abf9cb061291f0002bd262a767e6262ce3c3a54e3878601e5032ed433a97a2cfcb7b057f0ba631
data/lib/jericho.rb CHANGED
@@ -2,30 +2,30 @@ require "jericho/version"
2
2
 
3
3
  module Jericho
4
4
  def self.reporter(parsed_report)
5
- list_of_scenarios_purifys = {}
5
+ list_of_scenarios_reports = {}
6
6
  parsed_report.each do |element|
7
7
  element['elements'].each do |scenario|
8
8
  scenario_status = 'Passed'
9
9
  scenario['steps'].each do |step|
10
10
  scenario_status = 'Failed' if step['purify']['status'] != 'passed'
11
11
  end
12
- list_of_scenarios_purifys[(scenario['name']).to_s] = scenario_status
12
+ list_of_scenarios_reports[(scenario['name']).to_s] = scenario_status
13
13
  end
14
14
  end
15
- list_of_scenarios_purifys
15
+ list_of_scenarios_reports
16
16
  end
17
17
 
18
- def self.comparison_reporter(list_of_scenarios_purifys1, list_of_scenarios_purifys2)
19
- failed_tests = list_of_scenarios_purifys2.select { |k, v| v == 'Failed' }.map do |k, v|
18
+ def self.comparison_reporter(list_of_scenarios_reports1, list_of_scenarios_reports2)
19
+ failed_tests = list_of_scenarios_reports2.select { |k, v| v == 'Failed' }.map do |k, v|
20
20
  {
21
21
  test_name: k === '' ? k = 'Background' : k,
22
22
  actual_status: v,
23
- previous_status: list_of_scenarios_purifys1[k]
23
+ previous_status: list_of_scenarios_reports1[k]
24
24
  }.reject { |_k, v| v.nil? }
25
25
  end
26
26
 
27
27
  {
28
- passed: list_of_scenarios_purifys2.size - failed_tests.size,
28
+ passed: list_of_scenarios_reports2.size - failed_tests.size,
29
29
  failed: failed_tests.size,
30
30
  failed_tests: failed_tests
31
31
  }
@@ -1,3 +1,3 @@
1
1
  module Jericho
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jericho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill