Running test case using OCUnit not working?

when the target is launched, nothing happens for test cases, a warning message is displayed instead

warning: missed tests; the iPhoneSimulator platform does not currently support applications tested (set TEST_HOST).

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

+4
source share
2 answers

I believe that you cannot run unit tests on Simulator, you need to run them on the device itself.

Edited to add

Time has changed!

+1
source

Original answer of December 29, 2010:

Ignore Apple's distinction between “logic tests” and “application tests.” Use GTM instead. You will have one test goal that works either on the simulator or on the device, and can be debugged without additional configuration.

New answer:

Xcode inline unit testing has come a long way since. I switched from GTM to OCUnit. See http://qualitycoding.org/xcode-unit-testing/

+1
source

Source: https://habr.com/ru/post/1333276/


All Articles