Xcode 5 says tests failed but shows green checkmarks

后端 未结 9 946
不思量自难忘°
不思量自难忘° 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.

    0 讨论(0)
  • 2020-12-15 03:58

    This appears to have been fixed in XCode 5.1.1

    0 讨论(0)
  • 2020-12-15 03:58

    Despite the test I'm using is logic tests, Xcode wants to iPhone simulator to be running. Once in the agony of trying to get tests working again I've reset the iPhone Simulator contents and Settings from it's menu, and this helped.

    0 讨论(0)
提交回复
热议问题