iosunit-testingsentestingkit

iOS tests succeeding, but not running


I have a couple of SenTestCase subclasses (Logic tests) in by test target, with STFail macros in the test methods. I added the test target through Xcode, when I first created the project (checked "Include Unit Tests").

When I run my tests, I get a spinner saying they are running, and that they succeeded, but they obviously have not run (or they would have failed).

My test scheme config LOOKS good, with each of my test showing up in there and being checked.

My test classes are of the form <CustomName>Tests, and each of the test methods is of the form: - (void)test<MyTestName>. All of my classes have been added to the test target.

What could be wrong here?


Solution

  • In my case the problem was the following:

    I had renamed my app's main target since creating the project. I had to reconcile this with the testing target, but changing the "Bundle Loader" setting appropriately, replacing the old target name with the new target name.

    A bit random, but there it is.