如何从测试用例视图中删除Xcode测试用例? [英] How can I delete Xcode test cases from the test case view?

查看:132
本文介绍了如何从测试用例视图中删除Xcode测试用例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图找到一种方法来删除我从XCode中添加的测试用例,但找不到解决方法.在突出显示测试用例的情况下,按下删除键的明显选择不起作用,右键单击该测试用例时,没有上下文选项可以删除该测试用例.

Trying to figure out a way to delete a test case that I've added from within XCode and can't figure a way to do it. The obvious choice of using the delete key does nothing when pressed with the test case highlighted, there's no context option to delete the test case when right clicking on it.

推荐答案

如果您的意思是删除单个测试用例,则只需从测试类中删除该关联方法即可. (注意:这种情况发生时,我的Beta版本的Xcode 6似乎无法正确更新Test Navigator视图,但是测试用例已经消失,下次加载项目时,导航器也将消失-我尚未下载最终的Xcode 6-希望可以解决此问题.

As Tomasz says, if you mean remove an individual test case then just delete that associated method from the test class. (Note: my Beta version of Xcode 6 does not seem to update the Test Navigator view properly when this happens but the test case is gone and next time you load the project will be gone from the navigator - I haven't downloaded the final Xcode 6 yet - hopefully this will be fixed).

如果您遇到与我相同的问题(这是我遇到此问题的方式),并且想要删除整个测试类,那么您无法从测试导航器"中执行此操作,转到项目浏览器,找到关联的测试类(可能隐藏在xxxTests文件夹中)并删除该文件.

If you are having the same problem I had (which is how I came across this question) and want to delete the whole test class then you cant do that from the Test Navigator, you have to go to the Project Navigator, find the associated test class (probably hidden in the xxxTests folder) and delete that file.

阿里

这篇关于如何从测试用例视图中删除Xcode测试用例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆