Chris Hanson | 12 Oct 2008 04:16
Picon
Gravatar

Re: TDD and Xcode

On Oct 11, 2008, at 7:41 AM, ae1fric wrote:

> I'm considering switching my development over to Python under  
> Apple's Xcode development
> environment -- Cocoa and Core Data provide some significant  
> advantages for the type of
> development I'm doing. The one downside so far is that I haven't  
> been able to figure out how
> to do TDD under Xcode.
>
> Has anyone successfully developed with TDD under Xcode?

Yes, there are actually quite a few people who do extensive TDD on Mac  
OS X using Cocoa and Xcode — it turns out that it's actually a great  
platform for doing so, thanks to its objects-all-the-way-down (for the  
most part) design.

Disclosure: I work on the Xcode IDE at Apple, but I don't speak for  
Apple or the Xcode team here or anywhere else online.  (Unless you  
happen to be watching me in a WWDC video...)

> I think the reason I'm struggling to see how to do TDD under Xcode  
> is that the development
> environment does so much automagically: you define your data model,  
> draw your user
> interface, define bindings between the data model and the UI and  
> suddenly you have a
> working application, without writing a line of code.
>
> Any suggestions for using TDD in this kind of environment would be a  
(Continue reading)


Gmane