I recently added a new unit test to my project test task, and when I clicked Product> Test, Xcode says, "The test was successful." I am pretty sure that the test should fail, because the test method is not yet implemented. I have added a control point for the test, but they never reach it; the test is still “successful” without breaking. Growing suspicious, I added STFailto another test - nevertheless, "Test succeeded."
I'm sure unit tests really worked in the past. Since then, I have not made any changes to the project structure that I know of; I just upgraded Xcode to 4.4.
I found this post explaining how to check the settings of test circuits, and they look correct for me: the test target is listed in the "tests" section, and this and all of its tests are checked.
What can I do to find a reason for tests that always succeed?
source
share