allure-report-publisher 0.5.2 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65f9f3b2b9dafec360e713beab7a54a7c70aa3175b631879c48fd12ac585f20
|
4
|
+
data.tar.gz: 5b07128e2401f75e6471bde00f4eec36c93a4e3bf54c48db2c21c171efda03a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fcf8fc805e8955cce389d6bccee27253507fcc8926d43af4a7b0ebb2ffb6db8fe5a42834fae8d8e443f039388d6b3788f7fa63fcab68441f893dcd54582bc8
|
7
|
+
data.tar.gz: 3c0b298e4ba099532a2938b28f1b0920e4dffc4a5a57bcd38f583db5e8c0a289da450869c2f5ab46d62147ae7b819ebad71ee8a063b84fccf1c4c4bbde17f1d6
|
@@ -23,9 +23,13 @@ module Publisher
|
|
23
23
|
#
|
24
24
|
# @return [Terminal::Table]
|
25
25
|
def table
|
26
|
-
return terminal_table
|
26
|
+
return terminal_table { |table| table << short_summary } if summary_type == TOTAL
|
27
27
|
|
28
|
-
terminal_table
|
28
|
+
terminal_table do |table|
|
29
|
+
expanded_summary.each { |row| table << row }
|
30
|
+
table << :separator
|
31
|
+
table << short_summary
|
32
|
+
end
|
29
33
|
end
|
30
34
|
|
31
35
|
# Test run status emoji
|
@@ -44,7 +48,7 @@ module Publisher
|
|
44
48
|
# @return [Array<Array>]
|
45
49
|
def expanded_summary
|
46
50
|
@expanded_summary ||= summary_data.map do |name, summary|
|
47
|
-
[name, *summary.values, status_icon(summary[:failed], summary[:flaky])]
|
51
|
+
[name, *summary.values, status_icon(summary[:passed], summary[:failed], summary[:flaky])]
|
48
52
|
end
|
49
53
|
end
|
50
54
|
|
@@ -67,16 +71,18 @@ module Publisher
|
|
67
71
|
sum[:failed],
|
68
72
|
sum[:skipped],
|
69
73
|
sum[:flaky],
|
70
|
-
status_icon(sum[:failed], sum[:flaky])
|
74
|
+
status_icon(sum[:passed], sum[:failed], sum[:flaky])
|
71
75
|
]
|
72
76
|
end
|
73
77
|
|
74
78
|
# Status icon based on run results
|
75
79
|
#
|
80
|
+
# @param [Integer] passed
|
76
81
|
# @param [Integer] failed
|
77
82
|
# @param [Integer] flaky
|
78
83
|
# @return [String]
|
79
|
-
def status_icon(failed, flaky)
|
84
|
+
def status_icon(passed, failed, flaky)
|
85
|
+
return "➖" if passed.zero? && failed.zero?
|
80
86
|
return flaky.zero? ? "✅" : "⚠️" if failed.zero?
|
81
87
|
|
82
88
|
"❌"
|
@@ -84,13 +90,12 @@ module Publisher
|
|
84
90
|
|
85
91
|
# Summary terminal table
|
86
92
|
#
|
87
|
-
# @param [Array] rows
|
88
93
|
# @return [Terminal::Table]
|
89
|
-
def terminal_table
|
94
|
+
def terminal_table
|
90
95
|
Terminal::Table.new do |table|
|
91
96
|
table.title = "#{summary_type} summary"
|
92
97
|
table.headings = ["", "passed", "failed", "skipped", "flaky", "result"]
|
93
|
-
table
|
98
|
+
yield(table)
|
94
99
|
end
|
95
100
|
end
|
96
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-report-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.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: 2022-04-
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|