Xcode 5 says tests failed but shows green checkmarks

后端 未结 9 960
不思量自难忘°
不思量自难忘° 2020-12-15 03:28

I have written a few unit tests in the new XCTest framework of Xcode 5.

The tests seem to pass successfully most of the time, but I\'ve come across a strange behavi

9条回答
  •  一个人的身影
    2020-12-15 03:58

    If you look at the output console, you should notice that Xcode starts running test suite:

    Test Suite 'SomeClassTests' started at 2013-11-30 23:19:34 +0000
    

    but suddenly exits without running test cases:

    Program ended with exit code: 0
    

    and shows a notification that test failed.

    Restarting Xcode only helps temporarily as the problem quickly comes back.

    I stopped executing tests in Xcode and run all tests by command line using xctool.

提交回复
热议问题