xcpretty-bb 0.1.12.bb7 → 0.1.12.bb8

Sign up to get free protection for your applications and to get access to all the features.
data/bin/xcpretty CHANGED
@@ -68,18 +68,25 @@ OptionParser.new do |opts|
68
68
  opts.on_tail("-v", "--version", "Show version") { puts XCPretty::VERSION; exit }
69
69
  opts.parse!
70
70
 
71
- if STDIN.tty?
72
- XCPretty.exit_with_error(opts.help)
73
- end
71
+ #if STDIN.tty?
72
+ # XCPretty.exit_with_error(opts.help)
73
+ #end
74
74
  end
75
75
 
76
76
  printer = XCPretty::Printer.new(printer_opts)
77
77
  reporters = report_classes.compact.each_with_index.map { |k, i| k.new(report_options[i]) }
78
78
 
79
- STDIN.each_line do |line|
79
+ #STDIN.each_line do |line|
80
+ # printer.pretty_print(line)
81
+ # reporters.each { |r| r.handle(line) }
82
+ #end
83
+
84
+ file = File.new("badtestoutput2.txt", "r")
85
+ file.each_line do |line|
80
86
  printer.pretty_print(line)
81
87
  reporters.each { |r| r.handle(line) }
82
88
  end
83
89
 
90
+
84
91
  reporters.each(&:finish)
85
92
 
@@ -157,6 +157,10 @@ module XCPretty
157
157
  # $2 = time
158
158
  TESTS_RUN_START_MATCHER = /^\s*Test Suite '(?:.*\/)?(.*[ox]ctest.*)' started at(.*)/
159
159
 
160
+ # @regex Captured groups
161
+ # $1 = error
162
+ TESTS_XCTRUNNER_ERROR_MATCHER = /XCTRunner\[.*\] (.*)/
163
+
160
164
  # @regex Captured groups
161
165
  # $1 test suite name
162
166
  TEST_SUITE_START_MATCHER = /^\s*Test Suite '(.*)' started at/
@@ -389,6 +393,8 @@ module XCPretty
389
393
  formatter.format_test_run_finished($1, $3)
390
394
  when TESTS_RUN_START_MATCHER
391
395
  formatter.format_test_run_started($1)
396
+ when TESTS_XCTRUNNER_ERROR_MATCHER
397
+ formatter.format_error($1)
392
398
  when TEST_SUITE_START_MATCHER
393
399
  formatter.format_test_suite_started($1)
394
400
  when TIFFUTIL_MATCHER
@@ -1,4 +1,4 @@
1
1
  module XCPretty
2
- VERSION = "0.1.12.bb7"
2
+ VERSION = "0.1.12.bb8"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty-bb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12.bb7
4
+ version: 0.1.12.bb8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marin Usalj
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-26 00:00:00.000000000 Z
12
+ date: 2016-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rouge
@@ -102,6 +102,8 @@ email:
102
102
  - marin2211@gmail.com
103
103
  - iskanamagus@gmail.com
104
104
  executables:
105
+ - badtestouput1.txt
106
+ - badtestoutput2.txt
105
107
  - xcpretty
106
108
  extensions: []
107
109
  extra_rdoc_files: []
@@ -116,8 +118,11 @@ files:
116
118
  - Gemfile
117
119
  - LICENSE.txt
118
120
  - README.md
121
+ - README_BUDDYBUILD.txt
119
122
  - Rakefile
120
123
  - assets/report.html.erb
124
+ - bin/badtestouput1.txt
125
+ - bin/badtestoutput2.txt
121
126
  - bin/xcpretty
122
127
  - features/assets/RACCommandSpec, line 80, hello xcpretty.png
123
128
  - features/assets/apple_raw.png