Created
December 1, 2017 02:43
-
-
Save hyukhur/f0fe8828863f11e0df619203efdb1b3e to your computer and use it in GitHub Desktop.
XCTests runs the UIApplication while it tested. It cause the root view controller's 'viewDidLoad' function it can be change test environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let isRunningTests: Bool = ProcessInfo.processInfo.environment["XCInjectBundleInto"] != nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment