不支持在iOS设备上进行逻辑测试吗? [英] Logic Testing on iOS devices is not supported?

查看:53
本文介绍了不支持在iOS设备上进行逻辑测试吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SenTestingKit进行单元测试,但收到以下消息

I am using the SenTestingKit to Unit Test, but I get the following message

不支持在iOS设备上进行逻辑测试.您可以在模拟器上运行逻辑测试.

Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator.

我该怎么做?

推荐答案

逻辑测试仅在模拟器上有效,您需要切换到模拟器,即

Logic tests only work on the simulator, you need to switch to the simulator, i.e.

逻辑测试需要一个特殊的单元测试启动器,该启动器未安装在实际设备上.

Logic tests require a special unit test launcher which is not installed on actual devices.

如果要在实际设备上运行测试,则可以转换为应用程序单元测试.这些本质上是相同的,但是您的应用程序首先被启动(作为主机"),并且您的测试在它们旁边运行.这意味着您的测试可以在应用程序支持的任何设备上运行.唯一的缺点是您的实际应用程序将运行,这会干扰您的测试,尤其是在您使用大量通知的情况下.

If you want to run your tests on an actual device you can convert to application unit tests. These are essentially the same but you application gets launched first (as a 'host') and your tests get run along side them. This means your tests can run on any device that your application supports. The only disadvantage is that your actual app will be running which can interfere with your test, especially if you use a lot of notifications.

这篇关于不支持在iOS设备上进行逻辑测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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