[英]Can I Test My Core Data Model?
Is there a way I can load a sample object with properties etc into AppDelegate DidFinishLaunchingWithOptions. 有没有一种方法可以将具有属性等的示例对象加载到AppDelegate DidFinishLaunchingWithOptions中。 Then I can test all my tableViews etc that everything from core data is loading up fine.
然后,我可以测试所有tableViews等,以确保核心数据中的所有内容都可以正常加载。 Once it is fine, I can modify the methods to take in user input instead of the preloaded data?
一切正常之后,我可以修改方法来接受用户输入而不是预加载的数据吗?
就核心数据单元测试方法而言, 本文可能就是您所需要的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.