In Part 2 of this tutorial, we examined a simple app we’d like to unit test, and in which there were also some bugs lurking. In this portion of the tutorial, we will begin the process. You will find the code for this portion of the tutorial in the Version2 folder in the GitHub project.
In Part 1 of this tutorial, I made some general comments about how I tend to approach unit testing iOS code. Now we’re going to begin applying these techniques to a real application. As we do this, we will make some changes to the application’s structure to make it more testable. The source code for […]
For many years, iOS applications didn’t get the same kind of unit testing attention that other applications do. Part of this was due to the fact that Apple’s tools didn’t make it easy to set up and run unit tests, and part of it was “it’s all UI, and UI is hard to unit test.” […]