res 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/res/reporters/hive.rb +9 -4
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 127358ee22371eb6201add12abb4a4aec0534ef7
4
- data.tar.gz: 7e4bdc7f8c10691fe03569bf3a8762cde6aaada9
3
+ metadata.gz: 30b35dcb30d280879775b9e15a0ec5bd0d55e289
4
+ data.tar.gz: fc1cbd5e304e11af6ba7ae4f406dd93c7ce4aeda
5
5
  SHA512:
6
- metadata.gz: 934947a0fb56156732515d456b454819146b83ce8e3b7346a2bba55faafe47b54b716093a22aaf2201a3dda3f5fdf1cd7010ad812fab92c30e16a70dc55d89e4
7
- data.tar.gz: 0507cb3031cb9301ebc6281d4b45ce9316ad3877b1a4ea53d69351bbaf121abf3674691d5f6d039e8299e9f55bce40799d9baf74038476b77d314c8870063fe3
6
+ metadata.gz: ca7bd13c3a9312fd8b9c4f0cd1aa1f7a20d810adb037b86ccd37f2ebd04e1efdf322eb0f4271a6ec6015a334e74d47238a6c94072a286bc574a0f8208c89c17d
7
+ data.tar.gz: ffa22f1b34b2e2c7df830c7a7e607c7a411f854613e66b51fc0a261b88df3b2706151c725718d430cf804d00778a93b1253aa8022b57ba77c4190b701107c32d
@@ -19,11 +19,16 @@ module Res
19
19
 
20
20
  def submit_results(ir, args)
21
21
 
22
+ passed = ir.count(:passed)
23
+ failed = ir.count(:failed)
24
+ running = ir.count(:running)
25
+ errored = ir.tests.count - passed - failed - running
26
+
22
27
  # Still include count summaries for backward compatability
23
- params = { :failed_count => ir.count(:failed),
24
- :passed_count => ir.count(:passed),
25
- :errored_count => ir.count(:errored),
26
- :running_count => ir.count(:running),
28
+ params = { :failed_count => failed,
29
+ :passed_count => passed,
30
+ :errored_count => errored,
31
+ :running_count => running,
27
32
  :result_details => ir.flat_format.to_json }
28
33
 
29
34
  hive_job = ::Hive::Messages::Job.new(:job_id => args[:job_id])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: res
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-09 00:00:00.000000000 Z
13
+ date: 2015-10-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -111,3 +111,4 @@ signing_key:
111
111
  specification_version: 4
112
112
  summary: Test Result report libraries
113
113
  test_files: []
114
+ has_rdoc: