I have been testing my view controllers for a while. After all, that is part of what I teach others in the advanced training and also I believe that it is the right thing to do.
In order to do these tests I have used OCMock to check interaction with their dependencies, like NSUserDefaults or UITableView. I have been experimenting random crashes when running my tests, and their number increased when I moved to Xcode 6 and OCMock v3. I have been doing some research and I have written down my results here: http://powwau.com/blog/2014/11/debug-exc-bad-address-in-unit-tests/ As you will see many were my fault, but there is one at the end of the article that crashes 1 out of 10 times at least and that I cannot understand.
I would appreciate any comments or corrections as well as your experience on the subject. Thank you!