blinka-reporter 0.2.1 → 0.3.0

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: bda58bde54cfddafa7711c984e477a7781299f90874a137e4e396dd048885afe
4
- data.tar.gz: 41ce526368565e1f97884fb13977f8833081681a2f63e29343e78508c4f4535a
3
+ metadata.gz: 3fa8216d86cce40da5c4c423b473dcb6956302b017807ab383d93b94c32484fe
4
+ data.tar.gz: 1eabf2319cedab3b2378e087c66b36974fdc4dc0753ebd7cdb95f50300ac5df3
5
5
  SHA512:
6
- metadata.gz: f98b19c0df3fe63a02c322d53c22bdca62a473d106a3984a6803fc856e1203028e4de3f4b1f9d902b399fad285294218ee47c736f6f2f3b984c5ba63048d40fd
7
- data.tar.gz: 0d701507d2ae55c3d022694c212a668d91804acbe18040e0476d8bf585f098edc1fc0dbe4a51a7d340c56fcc3309c4aeec6cc199b1990e4f1430e98314d190c7
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
- blinka_report
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 blinka_report
36
+ def json_report
37
37
  result = {
38
38
  total_time: total_time,
39
39
  nbr_tests: count,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinka-reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Wessman