Add UI_TESTS_SCREEN as a disabled env var for quicker debugging. (#619)

This commit is contained in:
Doug
2023-02-23 15:07:33 +00:00
committed by GitHub
parent 87614ca642
commit 5a759d777d
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
]