xcpretty 0.2.8 → 0.3.0
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 +5 -5
- data/CHANGELOG.md +14 -0
- data/README.md +1 -0
- data/features/json_compilation_database_report.feature +7 -0
- data/features/junit_report.feature +5 -0
- data/features/simple_format.feature +5 -0
- data/features/steps/formatting_steps.rb +8 -0
- data/features/steps/json_steps.rb +6 -3
- data/lib/xcpretty/formatters/formatter.rb +5 -0
- data/lib/xcpretty/parser.rb +9 -2
- data/lib/xcpretty/version.rb +1 -1
- data/spec/fixtures/constants.rb +32 -0
- data/spec/xcpretty/parser_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f365d9cdc169625b0f93546aa48853b2372cc067281e9816c7298497f2e08bde
|
4
|
+
data.tar.gz: 144d70e94586ab5f0611cb50f17069f77de69328fe89e3a8204a8fd97aa2d257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5676d99cad363d5e27a0effa0ed9f12f1d512911780a293802ba9e550f7b7b786d8aa67490a23189f5aed2452a38107dff3c71627d17f4f34f4a65758e0e66e
|
7
|
+
data.tar.gz: ef2ceecc08808821c93da0a1c233a9f01c519553b3f854779d9764e4e1305c7405836e57ebd0fd864c6d6f8b2db6f652571f5ccc582f0efe11aaa660c9aae8ed
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.3.0
|
4
|
+
|
5
|
+
###### Enhancements
|
6
|
+
|
7
|
+
* Add catch-all formatter to allow formatting unrecognized text
|
8
|
+
| [Chris Ballinger](https://github.com/chrisballinger)
|
9
|
+
| [#327](https://github.com/supermarin/xcpretty/pull/327)
|
10
|
+
|
11
|
+
* Support `ccache-clang` (and other commands) in formatted output and JSON
|
12
|
+
compilation database reports
|
13
|
+
| [Delisa Mason](https://github.com/kattrali)
|
14
|
+
| [#332](https://github.com/supermarin/xcpretty/pull/332)
|
15
|
+
|
16
|
+
|
3
17
|
## 0.2.6
|
4
18
|
|
5
19
|
* Codesigning matchers improvements
|
data/README.md
CHANGED
@@ -6,6 +6,7 @@ It does one thing, and it should do it well.
|
|
6
6
|
[](http://rubygems.org/gems/xcpretty)
|
7
7
|
[](https://travis-ci.org/supermarin/xcpretty)
|
8
8
|
[](https://codeclimate.com/github/supermarin/xcpretty)
|
9
|
+
[](https://houndci.com)
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
``` bash
|
@@ -7,6 +7,13 @@ Feature: Create a JSON compilation database
|
|
7
7
|
Then the JSON compilation database should contain an entry with a directory
|
8
8
|
Then the JSON compilation database should contain an entry with a file
|
9
9
|
|
10
|
+
Scenario: Showing file compilation with CCache
|
11
|
+
Given I have a file to compile with ccache
|
12
|
+
When I pipe to xcpretty with "--report json-compilation-database" and specify a custom path
|
13
|
+
Then the JSON compilation database should contain an entry with a command
|
14
|
+
Then the JSON compilation database should contain an entry with a directory
|
15
|
+
Then the JSON compilation database should contain an entry with a file
|
16
|
+
|
10
17
|
Scenario: Handling a complete xcodebuild session
|
11
18
|
Given some big input
|
12
19
|
When I pipe to xcpretty with "--report json-compilation-database" and specify a custom path
|
@@ -42,3 +42,8 @@ Feature: Creating a JUnit test report
|
|
42
42
|
Scenario: Writing to multiple custom file paths
|
43
43
|
When I pipe to xcpretty with two custom "junit" report paths
|
44
44
|
Then I should have test reports in two custom paths
|
45
|
+
|
46
|
+
Scenario: Showing tests with one having a swift fatal error
|
47
|
+
Given I have a swift fatal error in a test in my suite
|
48
|
+
When I pipe to xcpretty with "--report junit"
|
49
|
+
Then I should see a failed test node in my report
|
@@ -5,6 +5,11 @@ Feature: Showing build output in simple format
|
|
5
5
|
When I pipe to xcpretty with "--simple --no-color"
|
6
6
|
Then I should see a successful compilation message
|
7
7
|
|
8
|
+
Scenario: Showing file compilation with CCache
|
9
|
+
Given I have a file to compile with ccache
|
10
|
+
When I pipe to xcpretty with "--simple --no-color"
|
11
|
+
Then I should see a successful compilation message
|
12
|
+
|
8
13
|
Scenario: Showing xib compilation
|
9
14
|
Given I have a xib to compile
|
10
15
|
When I pipe to xcpretty with "--simple --no-color"
|
@@ -3,6 +3,10 @@ Given(/^I have a file to compile$/) do
|
|
3
3
|
add_run_input SAMPLE_COMPILE
|
4
4
|
end
|
5
5
|
|
6
|
+
Given(/^I have a file to compile with ccache$/) do
|
7
|
+
add_run_input SAMPLE_COMPILE_CCACHE
|
8
|
+
end
|
9
|
+
|
6
10
|
Given(/^I have a xib to compile$/) do
|
7
11
|
add_run_input SAMPLE_COMPILE_XIB
|
8
12
|
end
|
@@ -31,6 +35,10 @@ Given(/^I have a failing test in my suite$/) do
|
|
31
35
|
add_run_input SAMPLE_OLD_SPECTA_FAILURE
|
32
36
|
end
|
33
37
|
|
38
|
+
Given(/^I have a swift fatal error in a test in my suite$/) do
|
39
|
+
add_run_input SAMPLE_SWIFT_FATAL_ERROR_IN_TEST_MAKE_TESTS_RESTARTING
|
40
|
+
end
|
41
|
+
|
34
42
|
Given(/^all of my tests will pass in my suite$/) do
|
35
43
|
3.times { add_run_input SAMPLE_OCUNIT_TEST }
|
36
44
|
end
|
@@ -18,16 +18,19 @@ end
|
|
18
18
|
|
19
19
|
Then(/^the JSON compilation database should contain an entry with a command$/) do
|
20
20
|
json_db.length.should == 1
|
21
|
-
json_db[0]['command'].should start_with('/
|
21
|
+
json_db[0]['command'].should start_with('/')
|
22
|
+
json_db[0]['command'].should include('clang ')
|
23
|
+
json_db[0]['command'].should include(' -c ')
|
24
|
+
json_db[0]['command'].should include(' -o ')
|
22
25
|
json_db[0]['command'].should end_with('.o')
|
23
26
|
end
|
24
27
|
|
25
28
|
Then(/^the JSON compilation database should contain an entry with a file$/) do
|
26
|
-
json_db[0]['file'].should
|
29
|
+
json_db[0]['file'].should end_with('.m')
|
27
30
|
end
|
28
31
|
|
29
32
|
Then(/^the JSON compilation database should contain an entry with a directory$/) do
|
30
|
-
json_db[0]['directory'].should
|
33
|
+
json_db[0]['directory'].should start_with('/')
|
31
34
|
end
|
32
35
|
|
33
36
|
Then(/^the JSON compilation database should be complete$/) do
|
@@ -49,6 +49,7 @@ module XCPretty
|
|
49
49
|
def format_tiffutil(file); EMPTY; end
|
50
50
|
def format_write_file(file); EMPTY; end
|
51
51
|
def format_write_auxiliary_files; EMPTY; end
|
52
|
+
def format_other(text) EMPTY; end
|
52
53
|
|
53
54
|
# COMPILER / LINKER ERRORS AND WARNINGS
|
54
55
|
def format_compile_error(file_name, file_path, reason,
|
@@ -152,6 +153,10 @@ module XCPretty
|
|
152
153
|
"#{yellow(warning_symbol + " " + message)}"
|
153
154
|
end
|
154
155
|
|
156
|
+
def format_other(text)
|
157
|
+
""
|
158
|
+
end
|
159
|
+
|
155
160
|
|
156
161
|
private
|
157
162
|
|
data/lib/xcpretty/parser.rb
CHANGED
@@ -60,7 +60,7 @@ module XCPretty
|
|
60
60
|
# @regex Captured groups
|
61
61
|
# $1 compiler_command
|
62
62
|
# $2 file_path
|
63
|
-
COMPILE_COMMAND_MATCHER = /^\s*(
|
63
|
+
COMPILE_COMMAND_MATCHER = /^\s*(.*clang\s.*\s\-c\s(.*\.(?:m|mm|c|cc|cpp|cxx))\s.*\.o)$/
|
64
64
|
|
65
65
|
# @regex Captured groups
|
66
66
|
# $1 file_path
|
@@ -105,6 +105,9 @@ module XCPretty
|
|
105
105
|
# $2 = reason
|
106
106
|
UI_FAILING_TEST_MATCHER = /^\s{4}t = \s+\d+\.\d+s\s+Assertion Failure: (.*:\d+): (.*)$/
|
107
107
|
|
108
|
+
# @regex Captured groups
|
109
|
+
RESTARTING_TESTS_MATCHER = /^Restarting after unexpected exit or crash in.+$/
|
110
|
+
|
108
111
|
# @regex Captured groups
|
109
112
|
# $1 = dsym
|
110
113
|
GENERATE_DSYM_MATCHER = /^GenerateDSYMFile \/.*\/(.*\.dSYM)/
|
@@ -355,6 +358,8 @@ module XCPretty
|
|
355
358
|
formatter.format_cpresource($1)
|
356
359
|
when EXECUTED_MATCHER
|
357
360
|
format_summary_if_needed(text)
|
361
|
+
when RESTARTING_TESTS_MATCHER
|
362
|
+
formatter.format_failing_test(@test_suite, @test_case, "Test crashed", "n/a")
|
358
363
|
when UI_FAILING_TEST_MATCHER
|
359
364
|
formatter.format_failing_test(@test_suite, @test_case, $2, $1)
|
360
365
|
when FAILING_TEST_MATCHER
|
@@ -418,7 +423,7 @@ module XCPretty
|
|
418
423
|
when WILL_NOT_BE_CODE_SIGNED_MATCHER
|
419
424
|
formatter.format_will_not_be_code_signed($1)
|
420
425
|
else
|
421
|
-
|
426
|
+
formatter.format_other(text)
|
422
427
|
end
|
423
428
|
end
|
424
429
|
|
@@ -439,6 +444,8 @@ module XCPretty
|
|
439
444
|
store_failure(file: $1, test_suite: $2, test_case: $3, reason: $4)
|
440
445
|
when UI_FAILING_TEST_MATCHER
|
441
446
|
store_failure(file: $1, test_suite: @test_suite, test_case: @test_case, reason: $2)
|
447
|
+
when RESTARTING_TESTS_MATCHER
|
448
|
+
store_failure(file: "n/a", test_suite: @test_suite, test_case: @test_case, reason: "Test crashed")
|
442
449
|
end
|
443
450
|
end
|
444
451
|
|
data/lib/xcpretty/version.rb
CHANGED
data/spec/fixtures/constants.rb
CHANGED
@@ -50,6 +50,30 @@ SAMPLE_XCTEST_FAILURE = ""
|
|
50
50
|
SAMPLE_KIWI_FAILURE = "/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSNumberTests.m:49: error: -[NumberAdditions Iterators_TimesIteratesTheExactNumberOfTimes] : 'Iterators, times: iterates the exact number of times' [FAILED], expected subject to equal 4, got 5"
|
51
51
|
SAMPLE_OLD_SPECTA_FAILURE = "/Users/musalj/code/OSS/ReactiveCocoa/ReactiveCocoaFramework/ReactiveCocoaTests/RACCommandSpec.m:458: error: -[RACCommandSpec enabled_signal_should_send_YES_while_executing_is_YES_and_allowsConcurrentExecution_is_YES] : expected: 1, got: 0"
|
52
52
|
SAMPLE_SPECTA_FAILURE = " Test Case '-[SKWelcomeViewControllerSpecSpec SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen]' started. \n/Users/vickeryj/Code/ipad-register/KIFTests/Specs/SKWelcomeViewControllerSpec.m:11: error: -[SKWelcomeViewControllerSpecSpec SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen] : The step timed out after 2.00 seconds: Failed to find accessibility element with the label \"The asimplest way to make smarter business decisions\""
|
53
|
+
SAMPLE_SWIFT_FATAL_ERROR_IN_TEST_MAKE_TESTS_RESTARTING = %Q(\
|
54
|
+
Test Suite 'All tests' started at 2017-07-10 15:01:12.049
|
55
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:12.049
|
56
|
+
Test Suite 'xcprettyFatalErrorTests' started at 2017-07-10 15:01:12.049
|
57
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testExample]' started.
|
58
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testExample]' passed (0.001 seconds).
|
59
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testFatalError]' started.
|
60
|
+
fatal error: unexpectedly found nil while unwrapping an Optional value
|
61
|
+
|
62
|
+
Restarting after unexpected exit or crash in xcprettyFatalErrorTests/testFatalError(); summary will include totals from previous launches.
|
63
|
+
|
64
|
+
Test Suite 'Selected tests' started at 2017-07-10 15:01:17.698
|
65
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:17.698
|
66
|
+
Test Suite 'xcprettyFatalErrorTests' started at 2017-07-10 15:01:17.699
|
67
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testPerformanceExample]' started.
|
68
|
+
/Users/kenji/Desktop/xcprettyFatalError/xcprettyFatalErrorTests/xcprettyFatalErrorTests.swift:40: Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testPerformanceExample]' measured [Time, seconds] average: 0.000, relative standard deviation: 174.575%, values: [0.000005, 0.000001, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100
|
69
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testPerformanceExample]' passed (0.258 seconds).
|
70
|
+
Test Suite 'xcprettyFatalErrorTests' failed at 2017-07-10 15:01:17.957.
|
71
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.259) seconds
|
72
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' failed at 2017-07-10 15:01:17.958.
|
73
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.259) seconds
|
74
|
+
Test Suite 'Selected tests' failed at 2017-07-10 15:01:17.958.
|
75
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.260) seconds
|
76
|
+
)
|
53
77
|
|
54
78
|
SAMPLE_BUILD = "=== BUILD TARGET The Spacer OF PROJECT Pods WITH THE DEFAULT CONFIGURATION Debug ==="
|
55
79
|
SAMPLE_ANALYZE_TARGET = "=== ANALYZE TARGET The Spacer OF PROJECT Pods WITH THE DEFAULT CONFIGURATION Debug ==="
|
@@ -92,6 +116,13 @@ CompileC /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaan
|
|
92
116
|
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/musalj/code/go/bin:/Users/musalj/.rbenv/shims:/Users/musalj/.rbenv/bin:/usr/local/share/npm/bin:/usr/local/bin:/Library/Python/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
|
93
117
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=178 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Kiwi-generated-files.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Kiwi-own-target-headers.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Kiwi-all-target-headers.hmap -iquote /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Kiwi-project-headers.hmap -I/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/DerivedSources/i386 -I/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/DerivedSources -Wall -F/Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -include /Users/musalj/code/OSS/Kiwi/Supporting\ Files/Kiwi-Prefix.pch -MMD -MT dependencies -MF /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Objects-normal/i386/KWNull.d --serialize-diagnostics /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Objects-normal/i386/KWNull.dia -c /Users/musalj/code/OSS/Kiwi/Classes/Core/KWNull.m -o /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaankpygesetdzsx/Build/Intermediates/Kiwi.build/Debug-iphonesimulator/Kiwi.build/Objects-normal/i386/KWNull.o
|
94
118
|
)
|
119
|
+
SAMPLE_COMPILE_CCACHE = %Q(
|
120
|
+
CompileC /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato-DMMTodoTxt.build/Objects-normal/armv7/DMMTodoTxtParser.o DMMTodoTxt/Pod/Classes/DMMTodoTxtParser.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
|
121
|
+
cd /Users/delisa/Code/personal/Gelato/Pods
|
122
|
+
export LANG=en_US.US-ASCII
|
123
|
+
export PATH="/Applications/Xcode/Xcode-9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode/Xcode-9.3.app/Contents/Developer/usr/bin:/Users/delisa/.rbenv/shims:/Users/delisa/.pyenv/shims:/Users/delisa/.swiftenv/shims:/Users/delisa/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/Users/delisa/tmp/go/bin:/Users/delisa/Library/Android/sdk/platform-tools/"
|
124
|
+
/Users/delisa/Code/personal/Gelato/ccache-clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/delisa/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/delisa/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fapplication-extension -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DRELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode/Xcode-9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=9.0 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fembed-bitcode-marker -iquote /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Pods-Gelato\ Today-DMMTodoTxt-generated-files.hmap -I/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Pods-Gelato\ Today-DMMTodoTxt-own-target-headers.hmap -I/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Pods-Gelato\ Today-DMMTodoTxt-all-target-headers.hmap -iquote /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Pods-Gelato\ Today-DMMTodoTxt-project-headers.hmap -I/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Products/Release-iphoneos/include -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Private -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Private/DMMTodoTxt -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/APAutocompleteTextField -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/Amplitude-iOS -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/Bugsnag -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/CGFloatType -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/DMMTodoTxt -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/Dropbox-iOS-SDK -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/FMDB -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/FXKeychain -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/KSCrash -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/Kiwi -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/PDGestureTableView -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/RJBlurAlertView -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/SpinKit -I/Users/delisa/Code/personal/Gelato/Pods/Headers/Public/UIImageEffects -I/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/DerivedSources/arm64 -I/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/DerivedSources -F/Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Products/Release-iphoneos -include /Users/delisa/Code/personal/Gelato/Pods/Target\ Support\ Files/Pods-Gelato\ Today-DMMTodoTxt/Pods-Gelato\ Today-DMMTodoTxt-prefix.pch -MMD -MT dependencies -MF /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Objects-normal/arm64/DMMTodoTxtParser.d --serialize-diagnostics /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Objects-normal/arm64/DMMTodoTxtParser.dia -c /Users/delisa/Code/personal/Gelato/Pods/DMMTodoTxt/Pod/Classes/DMMTodoTxtParser.m -o /Users/delisa/Library/Developer/Xcode/DerivedData/Gelato-cbyvaqwtjzrxxtfccjobyatrvvwh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/Pods-Gelato\ Today-DMMTodoTxt.build/Objects-normal/arm64/DMMTodoTxtParser.o
|
125
|
+
)
|
95
126
|
SAMPLE_SWIFT_COMPILE = %Q(
|
96
127
|
CompileSwift normal arm64 /Users/paul/foo/bar/siesta/Source/Resource.swift
|
97
128
|
cd /Users/paul/foo/bar/siesta
|
@@ -672,4 +703,5 @@ SAMPLE_FORMAT_WARNING = %Q(
|
|
672
703
|
)
|
673
704
|
|
674
705
|
SAMPLE_WILL_NOT_BE_CODE_SIGNED = "FrameworkName will not be code signed because its settings don't specify a development team."
|
706
|
+
SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING = "This is a string that won't be matched by any other regex."
|
675
707
|
|
@@ -361,6 +361,13 @@ module XCPretty
|
|
361
361
|
@parser.parse(SAMPLE_SPECTA_SUITE_BEGINNING)
|
362
362
|
end
|
363
363
|
|
364
|
+
it "parses unknown strings" do
|
365
|
+
@formatter.should receive(:format_other).with(
|
366
|
+
SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING
|
367
|
+
)
|
368
|
+
@parser.parse(SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING)
|
369
|
+
end
|
370
|
+
|
364
371
|
context "errors" do
|
365
372
|
it "parses clang errors" do
|
366
373
|
@formatter.should receive(:format_error).with(SAMPLE_CLANG_ERROR)
|
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.
|
4
|
+
version: 0.3.0
|
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:
|
12
|
+
date: 2018-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rouge
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.7.7
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: xcodebuild formatter done right
|