Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to do UnitTests with CoreData?
    text
    copied!<p>starting form the CoreData template, I have built an iphone app that uses CoreData to manipulate a Data Model. Works so far...</p> <p>Now I decided, I need some "unit" tests to check if the core data model is manipulated correctly (so far I have only done manual checks and checked the database directly with CoreDataEditor). I have followed</p> <p><a href="http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iphone_development/135-Unit_Testing_Applications/unit_testing_applications.html" rel="nofollow noreferrer">http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iphone_development/135-Unit_Testing_Applications/unit_testing_applications.html</a></p> <p>on how to set up UnitTests in Xcode. This works so far for both Logic and Application Tests. However, I cannot get the "unit" tests working with a CoreData backend (it doesn't find my data model and I don't know what to include or link etc...) </p> <p>Is there a pointer/description on how to do "unit" testing of a core data iphone app?</p> <p>PS: I know testing with the database back end is not strictly speaking "unit" testing. I don't care whether the test is on the simulator with the real application (ApplicationTesting) or if it is just a core data backend specifically for the unit tests (LogicTest) that I would fill with some test objects during setUp.</p> <p>EDIT: I have found <a href="https://stackoverflow.com/questions/1849802/how-to-unit-test-my-models-now-that-i-am-using-core-data">How to unit test my models now that I am using Core Data?</a> and <a href="http://chanson.livejournal.com/115621.html" rel="nofollow noreferrer">http://chanson.livejournal.com/115621.html</a> but now I ran into the problem described in <a href="https://stackoverflow.com/questions/1976539/iphone-unittesting-uitextfield-value-and-otest-error-133">iPhone UnitTesting UITextField value and otest error 133</a> ... well, except that i have error code 134 :-((( Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload