Adding Unit Tests to an already existing project?

前端 未结 7 1400
不知归路
不知归路 2020-12-02 16:45

When you create an XCode 4 project, it asks you if you want to include unit testing. But how do you add it to a project that\'s been created without them?

I started

7条回答
  •  一生所求
    2020-12-02 17:21

    Also, if you want to be able to do cmd-U to run your tests then delete the scheme that was created for the test bundle and instead edit your main application scheme and add the test bundle in the Test configuration. See this screenshot:

提交回复
热议问题