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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
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