xcpretty 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,12 @@ When(/^I run xcpretty with (.*)$/) do |flags|
10
10
  @output = `bin/xcpretty #{flags}`
11
11
  end
12
12
 
13
+ When(/^I run xcpretty over a big file$/) do
14
+ start_time = Time.now
15
+ @output = `cat features/fixtures/xcodebuild.log | bin/xcpretty -c`
16
+ @xcpretty_run_time = Time.now - start_time
17
+ end
18
+
13
19
  Then(/^I should see the help banner$/) do
14
20
  run_output.should include("Usage: xcodebuild [options] | xcpretty")
15
21
  end
@@ -22,3 +28,8 @@ Then(/^the exit status code should be (\d)$/) do |numbah|
22
28
  $?.exitstatus.should == numbah.to_i
23
29
  end
24
30
 
31
+ Then(/^the performance should be way faster than running cat$/) do
32
+ puts "XCPretty run time: #{@xcpretty_run_time}"
33
+ @xcpretty_run_time.should < 2
34
+ end
35
+
@@ -18,3 +18,7 @@ Feature: CLI behavior
18
18
  When I run xcpretty with -v
19
19
  Then I should see the xcpretty version
20
20
 
21
+ Scenario: Performance
22
+ When I run xcpretty over a big file
23
+ Then the performance should be way faster than running cat
24
+
@@ -42,7 +42,7 @@ module XCPretty
42
42
  # $1 = file_path
43
43
  # $2 = file_name
44
44
  # $3 = reason
45
- COMPILE_ERROR_MATCHER = /^(.+\/(.*\.[h,m,c]).*):(?:\sfatal)?\serror:\s(.*)$/
45
+ COMPILE_ERROR_MATCHER = /^(\/.+\/(.*):.*:.*):(?:\sfatal)?\serror:\s(.*)$/
46
46
 
47
47
  # @regex Captured groups
48
48
  # $1 file_path
@@ -121,7 +121,7 @@ module XCPretty
121
121
 
122
122
  # @regex Captured groups
123
123
  # $1 = reference
124
- SYMBOL_REFERENCED_FROM_MATCHER = /\s*"(.*)", referenced from:$/
124
+ SYMBOL_REFERENCED_FROM_MATCHER = /\s+"(.*)", referenced from:$/
125
125
 
126
126
  # @regex Captured groups
127
127
  # $1 = suite
@@ -322,3 +322,4 @@ module XCPretty
322
322
 
323
323
  end
324
324
  end
325
+
@@ -1,3 +1,3 @@
1
1
  module XCPretty
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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: 2013-12-30 00:00:00.000000000 Z
12
+ date: 2013-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -89,6 +89,7 @@ files:
89
89
  - Rakefile
90
90
  - bin/xcpretty
91
91
  - features/custom_formatter.feature
92
+ - features/fixtures/xcodebuild.log
92
93
  - features/junit_report.feature
93
94
  - features/simple_format.feature
94
95
  - features/steps/formatting_steps.rb
@@ -148,6 +149,7 @@ specification_version: 4
148
149
  summary: xcodebuild formatter done right
149
150
  test_files:
150
151
  - features/custom_formatter.feature
152
+ - features/fixtures/xcodebuild.log
151
153
  - features/junit_report.feature
152
154
  - features/simple_format.feature
153
155
  - features/steps/formatting_steps.rb