سؤال

I'm currently writing some unit tests in a project using Core Data (Xcode 5). For testing purpose I need to insert a bundle of data into my Core Data model in the setUp.

What is the easiest way doing that? For instance it would be helpful if I could write an XML file and populate this into my Core Data.

هل كانت مفيدة؟

المحلول

I end up inserting the test data programatically in the test setup.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top