Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
Masonry
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Fabian Ehrentraud
9 years ago
Commit
1c150861af70fa4d811aaff83bbd4a7a99b48a21
1 parent
cee371a4
try to fix issue with xcode 8 tests on travis caused by xcpretty
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
Tests/MasonryTestsLoader/CASAppDelegate.m
Tests/MasonryTestsLoader/CASAppDelegate.m
View file @
1c15086
...
...
@@ -11,8 +11,16 @@
@implementation
CASAppDelegate
+
(
void
)
initialize
{
[[
NSUserDefaults
standardUserDefaults
]
setValue
:
@"XCTestLog,GcovTestObserver"
forKey
:
@"XCTestObserverClass"
];
// https://github.com/fastlane/fastlane/issues/3886#issuecomment-224884332
// XCode 7.3 introduced a bug where early registration of a test observer prevented
// default XCTest test observer from being registered. That caused no logs being printed
// onto console, which in result broke several tools that relied on this.
// In order to go around the issue we're deferring registration to allow default
// test observer to register first.
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
NSUserDefaults
standardUserDefaults
]
setValue
:
@"XCTestLog,GcovTestObserver"
forKey
:
@"XCTestObserverClass"
];
});
}
-
(
void
)
applicationWillTerminate
:
(
UIApplication
*
)
application
{
...
...
Please
register
or
login
to post a comment