从Xcode项目中删除单元测试? [英] Remove unit testing from Xcode project?
问题描述
当我在Xcode 5中创建我的iOS项目时,我点击了向项目添加测试的选项。是否有可能删除所有测试内容,就像我没有点击选项开始一样?
When I created my iOS project in Xcode 5 I clicked the option to add testing to the project. Is it possible to remove all that testing stuff, just as though I hadn't clicked the option to begin with?
推荐答案
我建议在你的项目中进行测试。
但无论如何,你可能会留下目标。
But in any case, you might to leave there the target.
否则,如果您想不惜任何代价删除,只需点击项目设置并点击此图标:
Otherwise, if you want delete at any cost, you have just to click on your project settings and click on this icon:
您将看到目标,您可以删除测试目标。此时您可能还需要删除测试类:在文件夹层次结构上,选择这些,然后按退格键,确认删除。
You will see your targets and you will can delete the test target. At this point you might want delete the test classes too: on the folder hierarchy, select these and just press backspace, confirming the deletion.
这篇关于从Xcode项目中删除单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!