XCUITest and gpx files

I am writing UI tests for an application that uses Core Location. To simulate moving locations for testing, I have a GPX file with waypoints. I configured the application to use the fake locations by going to scheme -> run/debug -> options. It works great.


When I run my UI tests, I'd like the tests to use this same GPX file, but instead I get my actual location. The Test scheme doesn't have the option page that Run has. If I try to simulate location manually through the debug -> simulate locations menu in Xcode, I just get a single location from GPX file.


Any ideas on how to get the same simulated location behavior under test that I get under run? I'm running XCode 8.0.

XCUITest and gpx files
 
 
Q