XCTestPlan configuration environment variables not passed in to XCUIApplication

I have an XCTestPlan with configurations for each country I support on the App Store, so I can generate screenshots without a crazy amount of work.

Until Xcode 15, this worked fine. Now, it appears that while environment variables associated with the XCTestPlan itself are passed in to Xcode, those associated with each configuration are not.

I did prefix the environment variables with "TEST_RUNNER_" as recommended elsewhere with no luck.

Any suggestions?

Answered by 359Steve in 817537022

Never mind. My mistake. I left some old testing schemes around (11 months ago), and didnt' quite remember the correct way to run these tests. All is good.

Accepted Answer

Never mind. My mistake. I left some old testing schemes around (11 months ago), and didnt' quite remember the correct way to run these tests. All is good.

XCTestPlan configuration environment variables not passed in to XCUIApplication
 
 
Q