Xcode 中逻辑测试和应用程序测试之间的区别?
在 Xcode 中,当您创建新的目标 c 单元测试用例时,它会要求您在“逻辑”测试和“应用程序”测试之间进行选择。有什么区别?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
逻辑测试部分用于进行白盒测试;它允许您在更精细的级别上测试事物。
应用程序测试更像是黑盒测试,您可以在其中检查与 UI 控件和应用程序的 UI 的交互是否给出了您预期的结果/行为。
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.
逻辑测试是非常低的单元测试类型测试。 (考虑单一方法。)
应用程序测试处于较高级别,包括整个应用程序、对象图、插座等。(更多地考虑集成测试。)
http://developer.apple.com/library/ios /ipad/#documentation/Xcode/Conceptual/ios_development_workflow/135-Unit_Testing_Applications/unit_testing_applications.html
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