fish potato
fish potato

Reputation: 5629

Testing asynchronous methods on iPhone

I tried OCUnit, GTM, and iUnitTest but none of them supports testing for asynchronous methods. How do you test asynchronous methods on iPhone?

Upvotes: 1

Views: 288

Answers (2)

ThomasW
ThomasW

Reputation: 17317

Consider this answer to a different stackoverflow question: Testing asynchronous code on iOS with OCunit

Upvotes: 0

Claus Broch
Claus Broch

Reputation: 9212

Have you tried making a local runloop in the test case?

Here you can have the test case wait for completion of the asynchronous call and possibly perform some timout checks.

Upvotes: 2

Related Questions