mmdeas
mmdeas

Reputation: 183

Automated testing of Coredata iOS app on simulator with different db states

I am developing an iOS app and would like to test one particular method with different database states. I think I can input information into Coredata's sqlite database correctly but I'm not sure how to then go about calling the method I want to test without having to manually run the simulator and navigate to the view in my app which calls the method.

I was planning on using Python to generate the test data and input the values into the database though I can change that if it seems unlikely to work.

Upvotes: 0

Views: 230

Answers (1)

Ludovic Landry
Ludovic Landry

Reputation: 11774

It will be easier to call an Objective-C method that will save some test objets in your base. This way you don't have to worry about the SQL structure.

Upvotes: 1

Related Questions