xcpretty 0.2.8 → 0.4.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 +28 -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 +10 -3
- data/lib/xcpretty/version.rb +1 -1
- data/spec/fixtures/constants.rb +33 -0
- data/spec/xcpretty/parser_spec.rb +16 -1
- data/xcpretty.gemspec +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e4d1a516ddf47e483198aed60a7c374bc3e2547b436f7cf53365fa45cac388b9
|
4
|
+
data.tar.gz: 8fbc1f1037b46e16ee77feb7dc89a9bd6f618856a5d47fabcf023b4588aee6c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 735ebdccb3849e23907b0300124cd27a117f2a2860789902bc5e211b6167426e994974f3654114a06fbc2f05ad6e60584ddc9adb144b3e86b17c6bd1269a3f49
|
7
|
+
data.tar.gz: b1cbf9442b1ec243550686534b96c0e40644718ee4b726be3eb495e9a5bf1af1bfb58d27a2b8d078bebc388030131a5fdeb833175a5ab26ee45615e6bf567b65
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.4.0
|
4
|
+
|
5
|
+
###### Enhancements
|
6
|
+
|
7
|
+
* Fix unescaped HTML not being rendered properly
|
8
|
+
| [iulianOnofrei (U-lee-aan)](https://github.com/revolter)
|
9
|
+
| [#313](https://github.com/xcpretty/xcpretty/pull/313)
|
10
|
+
|
11
|
+
* Bump rouge and bundler
|
12
|
+
| [Owen Hart](https://github.com/owjsub)
|
13
|
+
| [#383](https://github.com/xcpretty/xcpretty/pull/383)
|
14
|
+
|
15
|
+
|
16
|
+
## 0.3.0
|
17
|
+
|
18
|
+
###### Enhancements
|
19
|
+
|
20
|
+
* Add catch-all formatter to allow formatting unrecognized text
|
21
|
+
| [Chris Ballinger](https://github.com/chrisballinger)
|
22
|
+
| [#327](https://github.com/supermarin/xcpretty/pull/327)
|
23
|
+
|
24
|
+
* Support `ccache-clang` (and other commands) in formatted output and JSON
|
25
|
+
compilation database reports
|
26
|
+
| [Delisa Mason](https://github.com/kattrali)
|
27
|
+
| [#332](https://github.com/supermarin/xcpretty/pull/332)
|
28
|
+
|
29
|
+
|
3
30
|
## 0.2.6
|
4
31
|
|
5
32
|
* Codesigning matchers improvements
|
@@ -11,6 +38,7 @@
|
|
11
38
|
| [iKiKi](https://github.com/iKiKi)
|
12
39
|
| [#187](https://github.com/supermarin/xcpretty/pull/187)
|
13
40
|
|
41
|
+
|
14
42
|
## 0.2.1
|
15
43
|
|
16
44
|
###### Bug fixes
|
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,10 +358,12 @@ 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
|
361
|
-
formatter.format_failing_test($2, $3, $4, $1)
|
366
|
+
formatter.format_failing_test($2, $3, ERB::Util.html_escape($4), $1)
|
362
367
|
when FATAL_ERROR_MATCHER
|
363
368
|
formatter.format_error($1)
|
364
369
|
when FILE_MISSING_ERROR_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,31 @@ 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_ENUM_FAILURE = "Test Case '-[App_Tests.ComparatorSpec a_comparator__when_matching_against_test1__returns_almost_equal_for_test2]' started. \n/Users/revolt/Development/App/Comparator/ComparatorSpec.swift:76: error: -[App_Tests.ComparatorSpec a_comparator__when_matching_against_test1__returns_almost_equal_for_test2] : expected to equal <ComparisonAlmostEqual>, got <ComparisonEqual>"
|
54
|
+
SAMPLE_SWIFT_FATAL_ERROR_IN_TEST_MAKE_TESTS_RESTARTING = %Q(\
|
55
|
+
Test Suite 'All tests' started at 2017-07-10 15:01:12.049
|
56
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:12.049
|
57
|
+
Test Suite 'xcprettyFatalErrorTests' started at 2017-07-10 15:01:12.049
|
58
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testExample]' started.
|
59
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testExample]' passed (0.001 seconds).
|
60
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testFatalError]' started.
|
61
|
+
fatal error: unexpectedly found nil while unwrapping an Optional value
|
62
|
+
|
63
|
+
Restarting after unexpected exit or crash in xcprettyFatalErrorTests/testFatalError(); summary will include totals from previous launches.
|
64
|
+
|
65
|
+
Test Suite 'Selected tests' started at 2017-07-10 15:01:17.698
|
66
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:17.698
|
67
|
+
Test Suite 'xcprettyFatalErrorTests' started at 2017-07-10 15:01:17.699
|
68
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testPerformanceExample]' started.
|
69
|
+
/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
|
70
|
+
Test Case '-[xcprettyFatalErrorTests.xcprettyFatalErrorTests testPerformanceExample]' passed (0.258 seconds).
|
71
|
+
Test Suite 'xcprettyFatalErrorTests' failed at 2017-07-10 15:01:17.957.
|
72
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.259) seconds
|
73
|
+
Test Suite 'xcprettyFatalErrorTests.xctest' failed at 2017-07-10 15:01:17.958.
|
74
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.259) seconds
|
75
|
+
Test Suite 'Selected tests' failed at 2017-07-10 15:01:17.958.
|
76
|
+
Executed 3 tests, with 1 failure (0 unexpected) in 0.258 (0.260) seconds
|
77
|
+
)
|
53
78
|
|
54
79
|
SAMPLE_BUILD = "=== BUILD TARGET The Spacer OF PROJECT Pods WITH THE DEFAULT CONFIGURATION Debug ==="
|
55
80
|
SAMPLE_ANALYZE_TARGET = "=== ANALYZE TARGET The Spacer OF PROJECT Pods WITH THE DEFAULT CONFIGURATION Debug ==="
|
@@ -92,6 +117,13 @@ CompileC /Users/musalj/Library/Developer/Xcode/DerivedData/Kiwi-guimpeiqlepzeaan
|
|
92
117
|
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
118
|
/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
119
|
)
|
120
|
+
SAMPLE_COMPILE_CCACHE = %Q(
|
121
|
+
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
|
122
|
+
cd /Users/delisa/Code/personal/Gelato/Pods
|
123
|
+
export LANG=en_US.US-ASCII
|
124
|
+
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/"
|
125
|
+
/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
|
126
|
+
)
|
95
127
|
SAMPLE_SWIFT_COMPILE = %Q(
|
96
128
|
CompileSwift normal arm64 /Users/paul/foo/bar/siesta/Source/Resource.swift
|
97
129
|
cd /Users/paul/foo/bar/siesta
|
@@ -672,4 +704,5 @@ SAMPLE_FORMAT_WARNING = %Q(
|
|
672
704
|
)
|
673
705
|
|
674
706
|
SAMPLE_WILL_NOT_BE_CODE_SIGNED = "FrameworkName will not be code signed because its settings don't specify a development team."
|
707
|
+
SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING = "This is a string that won't be matched by any other regex."
|
675
708
|
|
@@ -181,7 +181,7 @@ module XCPretty
|
|
181
181
|
it "parses specta failing tests" do
|
182
182
|
@formatter.should receive(:format_failing_test).with("SKWelcomeViewControllerSpecSpec",
|
183
183
|
"SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen",
|
184
|
-
"The step timed out after 2.00 seconds: Failed to find accessibility element with the label
|
184
|
+
"The step timed out after 2.00 seconds: Failed to find accessibility element with the label "The asimplest way to make smarter business decisions"",
|
185
185
|
"/Users/vickeryj/Code/ipad-register/KIFTests/Specs/SKWelcomeViewControllerSpec.m:11")
|
186
186
|
@parser.parse(SAMPLE_SPECTA_FAILURE)
|
187
187
|
end
|
@@ -219,6 +219,14 @@ module XCPretty
|
|
219
219
|
@parser.parse(SAMPLE_PENDING_KIWI_TEST)
|
220
220
|
end
|
221
221
|
|
222
|
+
it "parses and escapes Swift enum names", focus: true do
|
223
|
+
@formatter.should receive(:format_failing_test).with('App_Tests.ComparatorSpec',
|
224
|
+
'a_comparator__when_matching_against_test1__returns_almost_equal_for_test2',
|
225
|
+
'expected to equal <ComparisonAlmostEqual>, got <ComparisonEqual>',
|
226
|
+
'/Users/revolt/Development/App/Comparator/ComparatorSpec.swift:76')
|
227
|
+
@parser.parse(SAMPLE_SWIFT_ENUM_FAILURE)
|
228
|
+
end
|
229
|
+
|
222
230
|
it 'parses measuring tests' do
|
223
231
|
@formatter.should receive(:format_measuring_test).with(
|
224
232
|
'SecEncodeTransformTests.SecEncodeTransformTests',
|
@@ -361,6 +369,13 @@ module XCPretty
|
|
361
369
|
@parser.parse(SAMPLE_SPECTA_SUITE_BEGINNING)
|
362
370
|
end
|
363
371
|
|
372
|
+
it "parses unknown strings" do
|
373
|
+
@formatter.should receive(:format_other).with(
|
374
|
+
SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING
|
375
|
+
)
|
376
|
+
@parser.parse(SAMPLE_FORMAT_OTHER_UNRECOGNIZED_STRING)
|
377
|
+
end
|
378
|
+
|
364
379
|
context "errors" do
|
365
380
|
it "parses clang errors" do
|
366
381
|
@formatter.should receive(:format_error).with(SAMPLE_CLANG_ERROR)
|
data/xcpretty.gemspec
CHANGED
@@ -26,9 +26,9 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
|
-
spec.add_dependency 'rouge', '~>
|
29
|
+
spec.add_dependency 'rouge', '~> 3.28.0'
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler", "~> 1.
|
31
|
+
spec.add_development_dependency "bundler", "~> 2.1.4"
|
32
32
|
spec.add_development_dependency "rake"
|
33
33
|
spec.add_development_dependency "rubocop", "~> 0.34.0"
|
34
34
|
spec.add_development_dependency "rspec", "2.99.0"
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcpretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marin Usalj
|
8
8
|
- Delisa Mason
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rouge
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.28.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.28.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 2.1.4
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 2.1.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +183,7 @@ homepage: https://github.com/supermarin/xcpretty
|
|
183
183
|
licenses:
|
184
184
|
- MIT
|
185
185
|
metadata: {}
|
186
|
-
post_install_message:
|
186
|
+
post_install_message:
|
187
187
|
rdoc_options: []
|
188
188
|
require_paths:
|
189
189
|
- lib
|
@@ -198,9 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
|
202
|
-
|
203
|
-
signing_key:
|
201
|
+
rubygems_version: 3.4.19
|
202
|
+
signing_key:
|
204
203
|
specification_version: 4
|
205
204
|
summary: xcodebuild formatter done right
|
206
205
|
test_files:
|