Difference between Logic Test and Application Test in Xcode?

前端 未结 2 1643
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 12:09

In Xcode when you create a new objective c unit test case, it asks you to choose between \"Logic\" test and \"Application\" test. What\'s the difference?

2条回答
  •  逝去的感伤
    2021-02-13 12:24

    Logic tests are the very low unit test type tests. (Think a single method.)

    Application tests are at a higher level and include the whole of the app, the object graph, outlets, etc. (Think more of an integration test.)

    http://developer.apple.com/library/ios/ipad/#documentation/Xcode/Conceptual/ios_development_workflow/135-Unit_Testing_Applications/unit_testing_applications.html

提交回复
热议问题