What is the best approach for writing unit tests for iPhone / iPad?

后端 未结 2 1288
逝去的感伤
逝去的感伤 2021-01-03 11:29

I am developing an iPad application. I\'m not sure if I should write unit tests for this application, and if so, how I should go about writing them.

What would you

2条回答
  •  走了就别回头了
    2021-01-03 12:24

    Ok, there are two questions being raised here:

    1. Is unit testing worth it?

    Answer: Definitely. I cannot count the times it has saved me hours of pain and suffering.

    1. What's the best way to unit test in the iPhone/iPad environment?

    Answer: for myself I skipped sen and moved onto GHUnit and OCMock. GHUnit allows in simulator testing and debugging where as sen doesn't. This alone makes it a better proposition for iPhone/iPad development.

提交回复
热议问题