Add UI_TESTS_SCREEN as a disabled env var for quicker debugging. (#619)
This commit is contained in:
@@ -29,7 +29,7 @@ public enum Tests {
|
||||
/// Flag indicating whether the app is running the UI tests.
|
||||
static var isRunningUITests: Bool {
|
||||
#if DEBUG
|
||||
ProcessInfo.processInfo.environment["IS_RUNNING_UI_TESTS"] == "1"
|
||||
ProcessInfo.processInfo.environment["UI_TESTS_SCREEN"] != nil
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
|
||||
@@ -25,6 +25,9 @@ schemes:
|
||||
- variable: HTTPS_PROXY
|
||||
value: 192.168.0.111:9090
|
||||
isEnabled: false
|
||||
- variable: UI_TESTS_SCREEN
|
||||
value: ""
|
||||
isEnabled: false
|
||||
test:
|
||||
config: Debug
|
||||
gatherCoverageData: true
|
||||
|
||||
@@ -21,7 +21,6 @@ struct Application {
|
||||
static func launch(_ identifier: UITestsScreenIdentifier) -> XCUIApplication {
|
||||
let app = XCUIApplication()
|
||||
app.launchEnvironment = [
|
||||
"IS_RUNNING_UI_TESTS": "1",
|
||||
"UI_TESTS_SCREEN": identifier.rawValue
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user