I have a static library project with a UnitTest target using the built-in SenTestingKit framework. Whilst banging around the project, I toggled some setting and now when I build the UnitTest target, none of my test cases are run. What could be going wrong?
NOTE: I already solved this problem and am about to answer my own question, just hope that this saves someone else in the community some time.
SenTestCases will only be discovered and run if you are building for
Simulator. If you build forDevice, it will look as if all the tests have passed, but in fact no tests have run at all. Toggle the build setting back toSimulatorand the tests should run normally.