开发者

running test Case using OCUnit not working?

when run the target for test cases nothing is happening instead it is showing开发者_开发技巧 warning message

warning: Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set).

i am using xcode 3.2.5 and iOS4.2 ..........


I believe you can't run unit tests on the Simulator, you need to run them on the device itself.

Edited to add

Times have changed!


Original answer from Dec. 29, 2010:

Ignore Apple's distinction between "Logic tests" and "Application tests". Use GTM instead. You'll have one testing target that works on either the simulator or the device, and can be debugged without additional setup.

New answer:

Xcode's built-in unit testing has come a long way since then. I've switched from GTM back to OCUnit. See http://qualitycoding.org/xcode-unit-testing/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜