Monthly Archives: February 2013

No image

iOS Unit Testing – Part 3 – Testing our View Controller

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.

Read More
No image

iOS Unit Testing – Part 2 – Sample App for Testing

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 […]

Read More
No image

iOS Unit Testing – Part 1 – Tips

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.” […]

Read More
No image

JUnit Tricks – Part 3 – Assumptions

In Part 1 of this tutorial, we looked at performing parameterized tests in JUnit, and in Part 2 we looked at JUnit’s Rule support. In this portion, we will look at a lesser-used feature of JUnit – assumptions.

Read More