Generic-user-small Carlton Gibson 3 posts

Hi there,

I’ve just done a search through the PDF for ‘unit’ looking for a discussion of unit testing—I didn’t find one.

I know this is just an introduction to the neighbourhood but good neighbours unit test! Please, please, please include a discussion of the testing framework we should be using and how to get it set up.

Thanks.
Carlton

 
Daniel_small Daniel H Ste... 31 posts

Carlton,

I’ve been thinking about this for a while. I don’t tend to write Java code without unit testing but I’ve not been happy using OCUnit for writing cocoa code.

BUT—I just edited a new chapter from Brian Marick’s Ruby-Cocoa book where he uses Ruby test frameworks to test Cocoa apps. I may give that a try.

Daniel

 
Generic-user-small Carlton Gibson 3 posts

Hi Daniel,

Thanks for your reply.

I don’t mind if it’s OCUnit or something else… The reason I used it by name is that OCUnit seems to be the bundled option (and using the defaults meshes with your point about using XCode and Cocoa etc as that’s what the community uses).

All that really matters to me is that a testing solution is covered (even if only briefly). I am very happy to take your advice on which testing solution that should be :-)

Regards,
Carlton

 
Daniel_small Daniel H Ste... 31 posts

Does anyone have a favorite solution? I liked where UnitKit was going when it was active. It was (I think necessarily) abandoned when Apple embraced OCUnit instead.

 
Generic-user-small Carlton Gibson 3 posts

Hi Daniel,

Here’s a couple links which came up on the Cocao Dev mailing list (since Oct 20th). They both focus on OCUnit and no other solution has been mentioned. (This obviously doesn’t help with an alternative solution but I hope it’s useful anyway…)

http://developer.apple.com/documentation/DeveloperTools/Conceptual/UnitTesting/UnitTesting.html

http://cocoaheads.byu.edu/sites/default/files/meetings/2008-11-13-Unit-Testing-slides.pdf

 
Daniel_small Daniel H Ste... 31 posts

Thanks Carlton,

I saw the ADC article and assumed that it meant a recommitment to OCUnit. I’d also love to see someone do/finish the Cocoa port of Fit.

6 posts, 2 voices