spectre-reporter-html 2.0.0 → 2.0.1
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 +4 -4
- data/lib/spectre/reporter/html.rb +4 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928454d54ad7353dceae9a68378927c5208c7cc24226fa239df98a961ba0e8e4
|
4
|
+
data.tar.gz: 870d7aad2fb50c3eb405e39155a344bd8924cac3155ea414de95141c4804932a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfba85bb183ced1488bd223361f6c0ee012ed4b263ebddd1ad1120e547297d9869c8c957ee7f0f86492816b2a9ac3b79e5e4ae937f05cba3c61c52bc28782af
|
7
|
+
data.tar.gz: 36fb5df3c4c0bfff9af142a64da04f76121c49c6780150609508ff1e73d4731b02883ad8d6e9112f00ace45639fd478ca3d7f64738365e929a776fdeeed750e4
|
@@ -40,9 +40,9 @@ module Spectre
|
|
40
40
|
def report run_infos
|
41
41
|
now = Time.now
|
42
42
|
|
43
|
-
failures
|
44
|
-
errors
|
45
|
-
skipped
|
43
|
+
failures = run_infos.select { |x| x.status == :failed }
|
44
|
+
errors = run_infos.select { |x| x.status == :error }
|
45
|
+
skipped = run_infos.select { |x| x.status == :skipped }
|
46
46
|
succeeded = run_infos.select { |x| x.status == :success }
|
47
47
|
|
48
48
|
overall_status = if failures.count.positive?
|
@@ -1171,8 +1171,7 @@ module Spectre
|
|
1171
1171
|
|
1172
1172
|
FileUtils.mkdir_p(@config['out_path'])
|
1173
1173
|
|
1174
|
-
|
1175
|
-
file_path = File.join(@config['out_path'], 'spectre-html.html')
|
1174
|
+
file_path = File.join(@config['out_path'], "spectre-html_#{now.strftime('%s')}.html")
|
1176
1175
|
|
1177
1176
|
File.write(file_path, html_str)
|
1178
1177
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectre-reporter-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: base64
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
|
-
rubygems_version: 3.6.
|
60
|
+
rubygems_version: 3.6.2
|
61
61
|
specification_version: 4
|
62
62
|
summary: A HTML reporter for spectre
|
63
63
|
test_files: []
|