On Feb 6, 2017, at 11:21 AM, Jens Alfke <email@hidden> wrote:
But I suspect Xcode won’t let me set up two test targets on a single main target (how will it know which one to run when I choose Test?)
When you choose Test, Xcode uses the way you’ve configured the Test action for your active scheme.
You can actually set up Xcode to run any number or arrangement of test via the Test action this way, they don’t all have to come from a single target. So for example, you can have a single scheme for an application whose Test action runs the tests for the framework where most of the app’s logic lives, runs the unit tests for the app itself, and runs the UI tests for the app.
(When you edit a scheme, the actions are the sections along the left: Run, Test, Profile, Analyze, Archive. “Build,” at the head of the list, is really more of a meta-action that happens before and applies to all of the other actions.)
-- Chris
|