Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在安装UI测试Xcode 7之后,单元测试永远不会运行_Ios_Unit Testing_Xcode7_Ui Testing_Xcode Ui Testing - Fatal编程技术网

Ios 在安装UI测试Xcode 7之后,单元测试永远不会运行

Ios 在安装UI测试Xcode 7之后,单元测试永远不会运行,ios,unit-testing,xcode7,ui-testing,xcode-ui-testing,Ios,Unit Testing,Xcode7,Ui Testing,Xcode Ui Testing,我在Xcode 7中设置了UI测试MyProjectUITests,并且在targetMyProjectTests中添加了一个新的单元测试。然而,当我键入Command+U时,似乎Xcode总是使用UI测试来测试我的项目 问题:如果需要,我如何选择专门为UI测试或单元测试构建?选择您的方案。 编辑方案->测试->使用“+”按钮添加单元测试 要选择专门构建,您可以选中/取消选中测试下的复选框

我在Xcode 7中设置了UI测试
MyProjectUITests
,并且在target
MyProjectTests
中添加了一个新的单元测试。然而,当我键入
Command+U
时,似乎Xcode总是使用UI测试来测试我的项目

问题:如果需要,我如何选择专门为UI测试或单元测试构建?

选择您的方案。 编辑方案->测试->使用“+”按钮添加单元测试

要选择专门构建,您可以选中/取消选中测试下的复选框