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 suggest as the best approach to writing unit tests for iPhone / iPad?
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 suggest as the best approach to writing unit tests for iPhone / iPad?
You will write the test once, but run it many times as your application evolves.
If the tests pass, you know you didn't break anything. If the tests fail, you know where to fix. If the tests pass and the application fails, you know you need more tests.
Regardless what OS/platform your application targets, regardless of what size it has today ..
Ok, there are two questions being raised here:
Answer: Definitely. I cannot count the times it has saved me hours of pain and suffering.
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.