xcpretty 0.3.0 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +23 -0
- data/lib/xcpretty/parser.rb +9 -1
- data/lib/xcpretty/version.rb +1 -1
- data/spec/fixtures/constants.rb +1 -0
- data/spec/xcpretty/parser_spec.rb +9 -1
- data/xcpretty.gemspec +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e752491fb76aa704212fe683b8bddd815daf6a495b24147fc7f7f6067d5319bf
|
4
|
+
data.tar.gz: acca43a34616e756379c60dfe6f3489071e01f656a8b2c7341c4883b18234431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ceb304276aa737a88060f0c9e39d22e8a64a54c7f1b5cca618b70c00d0d7c594ec40b38ff30fc6b6beed67ecbb9d9583cb9c99bf902b823aaee1754600bd3bc
|
7
|
+
data.tar.gz: 28886a9e6e73efa60240b5087e4cbcfef9db9cd884cb1276a3d3a84b3221c135aa8653309837b0268b45abac1d926a5a09cc25d45be3029487c8430f24eff9c1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.4.1
|
4
|
+
|
5
|
+
###### Bug fixes
|
6
|
+
|
7
|
+
* Fix uninitialized constant XCPretty::Parser::ERB crash
|
8
|
+
| [Iulian Onofrei](https://github.com/revolter)
|
9
|
+
| [#313](https://github.com/xcpretty/xcpretty/pull/400)
|
10
|
+
|
11
|
+
|
12
|
+
## 0.4.0
|
13
|
+
|
14
|
+
###### Enhancements
|
15
|
+
|
16
|
+
* Fix unescaped HTML not being rendered properly
|
17
|
+
| [Iulian Onofrei](https://github.com/revolter)
|
18
|
+
| [#313](https://github.com/xcpretty/xcpretty/pull/313)
|
19
|
+
|
20
|
+
* Bump rouge and bundler
|
21
|
+
| [Owen Hart](https://github.com/owjsub)
|
22
|
+
| [#383](https://github.com/xcpretty/xcpretty/pull/383)
|
23
|
+
|
24
|
+
|
3
25
|
## 0.3.0
|
4
26
|
|
5
27
|
###### Enhancements
|
@@ -25,6 +47,7 @@
|
|
25
47
|
| [iKiKi](https://github.com/iKiKi)
|
26
48
|
| [#187](https://github.com/supermarin/xcpretty/pull/187)
|
27
49
|
|
50
|
+
|
28
51
|
## 0.2.1
|
29
52
|
|
30
53
|
###### Bug fixes
|
data/lib/xcpretty/parser.rb
CHANGED
@@ -299,7 +299,15 @@ module XCPretty
|
|
299
299
|
|
300
300
|
attr_reader :formatter
|
301
301
|
|
302
|
+
def load_dependencies
|
303
|
+
unless @@loaded ||= false
|
304
|
+
require 'erb'
|
305
|
+
@@loaded = true
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
302
309
|
def initialize(formatter)
|
310
|
+
load_dependencies
|
303
311
|
@formatter = formatter
|
304
312
|
end
|
305
313
|
|
@@ -363,7 +371,7 @@ module XCPretty
|
|
363
371
|
when UI_FAILING_TEST_MATCHER
|
364
372
|
formatter.format_failing_test(@test_suite, @test_case, $2, $1)
|
365
373
|
when FAILING_TEST_MATCHER
|
366
|
-
formatter.format_failing_test($2, $3, $4, $1)
|
374
|
+
formatter.format_failing_test($2, $3, ERB::Util.html_escape($4), $1)
|
367
375
|
when FATAL_ERROR_MATCHER
|
368
376
|
formatter.format_error($1)
|
369
377
|
when FILE_MISSING_ERROR_MATCHER
|
data/lib/xcpretty/version.rb
CHANGED
data/spec/fixtures/constants.rb
CHANGED
@@ -50,6 +50,7 @@ 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>"
|
53
54
|
SAMPLE_SWIFT_FATAL_ERROR_IN_TEST_MAKE_TESTS_RESTARTING = %Q(\
|
54
55
|
Test Suite 'All tests' started at 2017-07-10 15:01:12.049
|
55
56
|
Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:12.049
|
@@ -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',
|
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.1
|
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: 2025-03-26 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.2.32
|
202
|
+
signing_key:
|
204
203
|
specification_version: 4
|
205
204
|
summary: xcodebuild formatter done right
|
206
205
|
test_files:
|