Difference between Logic Test and Application Test in Xcode?

前端 未结 2 1642
没有蜡笔的小新
没有蜡笔的小新 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

    0 讨论(0)
  • 2021-02-13 12:40

    The Logic Test part is for doing White Box testing; it allows you to test things at a more granular level.

    Application Test is more like Black Box testing where you check that interactions with UI controls and the UI of your application is giving you the expected results/behavior.

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