Xcode 5: Unit Tests not running

前端 未结 5 2648
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-20 05:15

I created a few test cases and they all passed... That\'s because they are not being run.

From Xcode, I get:

Test Suite \'All tests\' started at...
Test Suite          


        
5条回答
  •  孤城傲影
    2021-02-20 05:29

    Xcode 5 now used XCTestCase, not SenTest. Apple is now supporting Unit Testing more directly including their own version of SenTest named XCTestCase. Additionally the UI is much improved, allowing individual tests to be run, a Test Navigator and no longer creating .h test files. Note that the test macros are not renames with an XC prefix.

    See the WWDC-13 video 409: "Testing in Xcode 5".

    If you use the Xcode 5 template to create the testing environment the project will include a test target and a working (and failing) test.

提交回复
热议问题