简体   繁体   English

我可以测试我的核心数据模型吗?

[英]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.

相关问题 单元测试无法找到Core Data模型文件 - Unit Test can't find Core Data model file 我可以为我的应用程序使用核心数据吗? - Can I use core data for my app? 我可以对核心数据模型对象使用自定义初始化程序吗? - Can I use a custom initializer for a core data model object? 如果我已经发布的v1没有版本化的Core Data模型,我可以使用“自动轻量级迁移”吗? - Can I use “Automatic Lightweight Migration” if my already release v1 didn't have a versioned Core Data model? 如何为我的核心数据实体建模? - How to model my Core Data entity? 如果我的核心数据存储区为只读,是否可以将其保留在捆绑包中 - Can I keep my Core data store on the Bundle if its readonly 如何向应用程序添加数据以测试核心数据模型 - How To Add Data To App To Test Core Data Model 核心数据无法找到源存储的模型 - 我的旧商店看起来像什么? - core data can't find model for source store - what did my old store look like? 可以将核心数据 model 添加到 SDK 项目中吗? - Can a core data model be added to an SDK project? Iphone Core Data Noob问题-为什么不能在数据模型中更改或添加实体? - Iphone Core Data Noob Question- Why can't I change or add entities in data model?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM