mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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.
|
/// Flag indicating whether the app is running the UI tests.
|
||||||
static var isRunningUITests: Bool {
|
static var isRunningUITests: Bool {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
ProcessInfo.processInfo.environment["IS_RUNNING_UI_TESTS"] == "1"
|
ProcessInfo.processInfo.environment["UI_TESTS_SCREEN"] != nil
|
||||||
#else
|
#else
|
||||||
false
|
false
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ schemes:
|
|||||||
- variable: HTTPS_PROXY
|
- variable: HTTPS_PROXY
|
||||||
value: 192.168.0.111:9090
|
value: 192.168.0.111:9090
|
||||||
isEnabled: false
|
isEnabled: false
|
||||||
|
- variable: UI_TESTS_SCREEN
|
||||||
|
value: ""
|
||||||
|
isEnabled: false
|
||||||
test:
|
test:
|
||||||
config: Debug
|
config: Debug
|
||||||
gatherCoverageData: true
|
gatherCoverageData: true
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ struct Application {
|
|||||||
static func launch(_ identifier: UITestsScreenIdentifier) -> XCUIApplication {
|
static func launch(_ identifier: UITestsScreenIdentifier) -> XCUIApplication {
|
||||||
let app = XCUIApplication()
|
let app = XCUIApplication()
|
||||||
app.launchEnvironment = [
|
app.launchEnvironment = [
|
||||||
"IS_RUNNING_UI_TESTS": "1",
|
|
||||||
"UI_TESTS_SCREEN": identifier.rawValue
|
"UI_TESTS_SCREEN": identifier.rawValue
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user