Objective-C exceptions thrown inside methods invoked via NSInvocation are...
Whether you’re using Cedar or not, if you’ve upgraded to the iOS 4.0 SDK you may have run into some odd behavior with exception handling blocks not catching exceptions. Strangely, the problem isn’t due...
View ArticleCedar device specs and CI
One of the most common complaints I’ve read about OCUnit, the unit testing framework built into Xcode, is that the tests you write with it won’t run on the device. In addition, I personally have found...
View ArticleiPhone UI Automation tests with Jasmine
Since the language of the new iPhone UI Automation component is JavaScript I figured the easiest way to organize tests is to use a JavaScript testing framework, such as Jasmine. So, I created...
View ArticleiPhone UI Automation tests: a decent start
Apple's inclusion of the UI Automation component in Instruments with iOS 4 is a definite step in the right direction. It's the first reasonable way to write tests that externally exercise your actual...
View ArticleiPhone on blocks: UITextFields
If you’ve ever used a UITextField in an iPhone project (or, I suppose, an NSTextField in a Cocoa project) you know that you pass it a delegate object in order to respond to events. Handling the...
View ArticleColorized output for Cedar
Thanks to Sean Moon and Sam Coward Cedar now has colorized output on the command line: If you'd like to display colorized output like this you can specify the appropriate custom reporter class using...
View ArticleCedar vs. Xcode 4 (round one: the command line)
I've finally found a bit of time to update Cedar to work with Xcode 4, and I hope to have it working smoothly some time in the next few days. However, I've already come across my first significant...
View ArticleThe Trouble With Expectations in Objective C
At Pivotal we write a lot of tests, or specs if you prefer. We TDD nearly everything we write, in every language we write in and on every platform we write for, so we actively work to improve every...
View ArticleCedar Expectations
As I wrote here we’ve used OCHamcrest matchers for some time for writing expectations in Cedar, but have found them unsatisfying. We wanted convenient matchers, like the ones Jasmine provides for...
View ArticleWhy not to use ARC
If you have done any development for iOS in the past few years you have at least some familiarity with ARC. The overall response to ARC since Apple released it with iOS 5 has been little short of...
View Article