File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed
FirebaseSessions/Tests/TestApp
AppQualityDevApp.xcodeproj/xcshareddata/xcschemes Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 81
81
isEnabled = " YES" >
82
82
</CommandLineArgument >
83
83
</CommandLineArguments >
84
+ <EnvironmentVariables >
85
+ <EnvironmentVariable
86
+ key = " FirebaseSessionsRunEnvironment"
87
+ value = " $(FirebaseSessionsRunEnvironment)"
88
+ isEnabled = " YES" >
89
+ </EnvironmentVariable >
90
+ </EnvironmentVariables >
84
91
</LaunchAction >
85
92
<ProfileAction
86
93
buildConfiguration = " Release"
Original file line number Diff line number Diff line change 35
35
debugDocumentVersioning = " YES"
36
36
debugServiceExtension = " internal"
37
37
allowLocationSimulation = " YES" >
38
+ <EnvironmentVariables >
39
+ <EnvironmentVariable
40
+ key = " FirebaseSessionsRunEnvironment"
41
+ value = " $FirebaseSessionsRunEnvironment"
42
+ isEnabled = " YES" >
43
+ </EnvironmentVariable >
44
+ </EnvironmentVariables >
38
45
</LaunchAction >
39
46
<ProfileAction
40
47
buildConfiguration = " Release"
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ final class UITestsiOS: XCTestCase {
19
19
func test_sessionGenerated_onColdStart( ) throws {
20
20
// UI tests must launch the application that they test.
21
21
let app = XCUIApplication ( )
22
+
23
+ // Collect necessary environment variables and propagate them as necessary
24
+ let environment = ProcessInfo . processInfo. environment [ " FirebaseSessionsRunEnvironment " ]
25
+ if environment != nil {
26
+ let variables = [ " FirebaseSessionsRunEnvironment " : environment!]
27
+ app. launchEnvironment = variables
28
+ }
29
+
22
30
app. launch ( )
23
31
XCUIDevice . shared. press ( . home)
24
32
app. activate ( )
Original file line number Diff line number Diff line change @@ -549,8 +549,8 @@ case "$product-$platform-$method" in
549
549
# Run E2E Integration Tests for Autopush.
550
550
RunXcodebuild \
551
551
-workspace ' FirebaseSessions/Tests/TestApp/AppQualityDevApp.xcworkspace' \
552
- FirebaseSessionsRunEnvironment=AUTOPUSH \
553
552
-scheme " AppQualityDevApp_iOS" \
553
+ FirebaseSessionsRunEnvironment=AUTOPUSH \
554
554
" ${ios_flags[@]} " \
555
555
" ${xcb_flags[@]} " \
556
556
build \
You can’t perform that action at this time.
0 commit comments