res 1.2.19 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bf640896892cf2efa3e161e113ecd1d365b5586
4
- data.tar.gz: 192019791bf3616f44d4be7faf3838427cab223a
3
+ metadata.gz: 926f44a6623812888da785a3288d7b9cda2bc689
4
+ data.tar.gz: 3cfd845869bb676d5c415b1810053c4b250c5e04
5
5
  SHA512:
6
- metadata.gz: ba1561bb438a4408ef7a76a755de50d65f1da4c87f87d8593d187478a1f6093ab20af55f9128441af7329af8579b9a05791f0760f79d41cbda7f6684fed85e8c
7
- data.tar.gz: 3de011a479a1609c10d73a64299b1caf50094c068599e47127a430ade1ced010aa57004a3152aa2585ae211c77f43e2161d477c2fc1b806ca007c98920602eee
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
@@ -1,3 +1,3 @@
1
1
  module Res
2
- VERSION = '1.2.19'
2
+ VERSION = '1.2.20'
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.19
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-02-23 00:00:00.000000000 Z
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