Unit tests are always “successful,”

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?

0
source share
1 answer

The problem was caused by the framework that I added to the project, which caused an error during execution.

I decided now to ignore unit tests and move on to the real project. When I started it, an error occurred:

dyld: library not loaded: <Framework name>

, , . , . , Xcode , , .

+1

All Articles