res 1.2.13 → 1.2.14

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
  SHA1:
3
- metadata.gz: 117cc8f2ed1a6ffac5917c3efbd3bfaf81e23bc3
4
- data.tar.gz: 4f9b940d44b3bf640dd850d085a123af6dfa8cba
3
+ metadata.gz: a567a719ccb725cad63612bd1506f95c4f3b0a94
4
+ data.tar.gz: a10a44f08ec311eee8ead3df06120f788c4c5fbb
5
5
  SHA512:
6
- metadata.gz: 73f6d37520d29d9629988e18f28da72551abc99f90e77c065ba6bce12286722b7f1261f38e3e4f6d08fa31ec8fe9c4b5352f00c3954d2d6542ae3447a2f5145c
7
- data.tar.gz: 6610f245ffcd36f2294c9ba61309f0e8e95fea5ea2df26711d8fe15a68b5ff8b8755b44607ca0073be057eb8724e2bc9ad927cf3b777270cc3d47876a3f5c579
6
+ metadata.gz: 574bed53782d6f28a39e05def7f8ef162c3949d326b42e40dbc985e1e95574377eead50e48b2cd5229bfd8d72617ff617a0c0ee252b60c124364697f4374de05
7
+ data.tar.gz: 01d35a1d48006a5b6b5a53df7ddae4a2c9ebe302a41b3b4170697db26345a43ec41f353fbf2e40879b84c62be478d85a68f141528aa8c5149f79489a0f8e4af5
@@ -23,22 +23,29 @@ module Res
23
23
  test = {
24
24
  type: 'AndroidJUnit::Test',
25
25
  name: 'UNKNOWN',
26
- status: 'passed'
26
+ status: 'unknown'
27
27
  }
28
28
 
29
29
  File.open(output) do |f|
30
30
  f.each_line do |line|
31
31
 
32
- if line.include?('INSTRUMENTATION_STATUS_CODE')
33
- # Skip if this is just the 'pre-run' test
34
- if line.include?('INSTRUMENTATION_STATUS_CODE: 1')
35
- next
36
- end
32
+ if line.match('INSTRUMENTATION_STATUS_CODE: (.*)$')
33
+ case Regexp.last_match[1]
34
+ when '1'
35
+ # Skip if this is just the 'pre-run' test
36
+ next
37
+ when '0'
38
+ test[:status] = 'passed'
39
+ when '-2'
40
+ test[:status] = 'failed'
41
+ else
42
+ test[:status] = 'unknown'
43
+ end
37
44
  result.last[:children] << test
38
45
  test = {
39
46
  type: 'AndroidJUnit::Test',
40
47
  name: 'UNKNOWN',
41
- status: 'passed'
48
+ status: 'unknown'
42
49
  }
43
50
  end
44
51
 
data/lib/res/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Res
2
- VERSION = '1.2.13'
2
+ VERSION = '1.2.14'
3
3
  end
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.2.13
4
+ version: 1.2.14
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: 2016-08-31 00:00:00.000000000 Z
13
+ date: 2016-10-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.5.0
131
+ rubygems_version: 2.5.1
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Test Result report libraries