blinka-reporter 0.2.1 → 0.3.0
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/blinka_client.rb +6 -0
- data/lib/minitest/blinka_plugin.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fa8216d86cce40da5c4c423b473dcb6956302b017807ab383d93b94c32484fe
|
4
|
+
data.tar.gz: 1eabf2319cedab3b2378e087c66b36974fdc4dc0753ebd7cdb95f50300ac5df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 259de1e1edf5332fa682d95444a081d85cd2f55416ce183a92e4109822735ff594f70885cf3307d3045f8c7f9df73bc874a1ca7abb20523cd7e00980cbf3a6c5
|
7
|
+
data.tar.gz: b18f0a91507350ad8023894b7d237aab25a92683db6963c651d9267d316315a8f5233dcbc361355bd21e21530c181df4a318e7a1a3a353b5290d45bacaf817a4
|
data/lib/blinka_client.rb
CHANGED
@@ -40,6 +40,12 @@ class BlinkaClient
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def report(filepath: './blinka_results.json')
|
43
|
+
unless File.exists?(filepath)
|
44
|
+
raise(
|
45
|
+
BlinkaError,
|
46
|
+
'Could not find blinka_results.json, did tests run with environment variable BLINKA_JSON=true set?'
|
47
|
+
)
|
48
|
+
end
|
43
49
|
self.authenticate
|
44
50
|
data = JSON.parse(File.open(filepath).read)
|
45
51
|
|
@@ -26,14 +26,14 @@ module Minitest
|
|
26
26
|
|
27
27
|
def report
|
28
28
|
tap_report unless ENV['BLINKA_TAP'].nil?
|
29
|
-
|
29
|
+
json_report unless ENV['BLINKA_JSON'].nil?
|
30
30
|
|
31
31
|
super
|
32
32
|
end
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
-
def
|
36
|
+
def json_report
|
37
37
|
result = {
|
38
38
|
total_time: total_time,
|
39
39
|
nbr_tests: count,
|