res 1.2.19 → 1.2.20
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 +4 -1
- data/lib/res/parsers/xcpretty.rb +40 -0
- data/lib/res/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 926f44a6623812888da785a3288d7b9cda2bc689
|
4
|
+
data.tar.gz: 3cfd845869bb676d5c415b1810053c4b250c5e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a890ac9aa5580ce319b1eda01862d50fc8bb926a32e6f15ad14049ea673c40178f7e9a0204bfc0ecdfb2078b125086306bc2d30f8acf6f3a990eb7fafb7baa
|
7
|
+
data.tar.gz: 24fe9331b9546f789cf4b2c85119b290c0e1b377ae117458c6b760bcf5820f2a2f5a2c42fbc2d3bad26d0b3ab228ea79546d0c36bbea53153f23f3d4e4412391
|
@@ -48,10 +48,13 @@ module Res
|
|
48
48
|
passed += 1
|
49
49
|
when '-2'
|
50
50
|
test[:status] = 'failed'
|
51
|
+
when '-3'
|
52
|
+
# Ignored (skipped) test
|
53
|
+
test[:status] = 'ignored'
|
51
54
|
else
|
52
55
|
test[:status] = 'unknown'
|
53
56
|
end
|
54
|
-
result.last[:children] << test
|
57
|
+
result.last[:children] << test if test[:status] != 'ignored'
|
55
58
|
test = {
|
56
59
|
type: 'AndroidJUnit::Test',
|
57
60
|
name: 'UNKNOWN',
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'res/ir'
|
2
|
+
|
3
|
+
module Res
|
4
|
+
module Parsers
|
5
|
+
class Xcpretty
|
6
|
+
|
7
|
+
def initialize instrument_output
|
8
|
+
File.write('./instruments.res',
|
9
|
+
::Res::IR.new( type: 'XCPrettyRunner',
|
10
|
+
started: '',
|
11
|
+
finished: Time.now,
|
12
|
+
results: parse(instrument_output)
|
13
|
+
).json)
|
14
|
+
end
|
15
|
+
|
16
|
+
def parse output
|
17
|
+
result = [
|
18
|
+
{
|
19
|
+
type: 'XCPretty',
|
20
|
+
name: 'XCPretty',
|
21
|
+
children: Array.new
|
22
|
+
}
|
23
|
+
]
|
24
|
+
|
25
|
+
File.open(output) do |f|
|
26
|
+
f.each_line do |line|
|
27
|
+
if line.match('\s*✓ (\S+) ')
|
28
|
+
result.last[:children] << {
|
29
|
+
type: 'Xcpretty::Test',
|
30
|
+
name: Regexp.last_match[0].strip,
|
31
|
+
status: 'passed'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
result
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
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.20
|
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: 2017-
|
13
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/res/parsers/android_junit.rb
|
104
104
|
- lib/res/parsers/junit.rb
|
105
105
|
- lib/res/parsers/junitcasper.rb
|
106
|
+
- lib/res/parsers/xcpretty.rb
|
106
107
|
- lib/res/reporters/hive.rb
|
107
108
|
- lib/res/reporters/lion.rb
|
108
109
|
- lib/res/reporters/test_rail.rb
|