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 +4 -4
- data/lib/res/parsers/android_junit.rb +14 -7
- data/lib/res/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a567a719ccb725cad63612bd1506f95c4f3b0a94
|
4
|
+
data.tar.gz: a10a44f08ec311eee8ead3df06120f788c4c5fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: '
|
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.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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: '
|
48
|
+
status: 'unknown'
|
42
49
|
}
|
43
50
|
end
|
44
51
|
|
data/lib/res/version.rb
CHANGED
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.
|
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-
|
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.
|
131
|
+
rubygems_version: 2.5.1
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Test Result report libraries
|