Last active
April 2, 2023 17:17
-
-
Save LukeSmith16/00f192ad3a934a04868e828a6f13d0ad to your computer and use it in GitHub Desktop.
An extension on ProcessInfo that checks if we are in a testing environment
This file contains 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
extension ProcessInfo { | |
static var isRunningUITests: Bool { | |
processInfo.arguments.contains("UITests") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment