yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location Simulation For Test Targets

KrisRJack opened this issue · comments

Hi All!

In a previous issue #722 & #756, Location Simulation was requested and added as a feature in XcodeGen. Is it possible to expand upon this and include location within test targets as well?

Currently, the way to simulate location is by adding the lines below, however, this is limited to normal runs in the simulator and does not work inside a UI test run:

run:
  simulateLocation:
     allow: true
     defaultLocation: Honolulu, HI, USA

I'm wondering if it's possible to create something like below. I included an image to show how this would look inside the .xcscheme file:

test:
      gatherCoverageData: true
      targets:
        - App_iOS_UITests
        - name: App_iOS_Tests
          parallelizable: true
          randomExecutionOrder: true
          location: Honolulu, HI, USA  ### FEATURE REQUEST

Screen Shot 2021-11-22 at 1 02 38 PM

Screen Shot 2021-11-23 at 10 41 37 AM