Re: Unit testing framework suggestions?
Re: Unit testing framework suggestions?
- Subject: Re: Unit testing framework suggestions?
- From: Mason Mark <email@hidden>
- Date: Thu, 23 Sep 2004 19:25:56 -0700
On Sep 22, 2004, at 5:22 PM, James Bucanek wrote:
I've got enough code that I want to start doing unit testing. So far
I've only discovered this one:
<http://unitkit.org/>
Any comments about UnitKit (good experiences, likes, dislikes, ...)?
Are there any alternatives that people would like to suggest.
I have used:
a) ObjCUnit: http://oops.se/objcunit
This is a unit testing framework based on JUnit. I was pleased with it,
although have not used it recently. It is at version 1.2, circa 2002,
so I guess it hasn't changed recently either. It has some level of mock
object support as well, which I have not used.
b) OCUnit: http://www.sente.ch/software/ocunit
This is still what I use at work. It is also much like JUnit, although
I think the docs state that it is actually modeled after the SmallTalk
SUnit project (which would make OCUnit a sibling of JUnit, rather than
an adaptation of it). I have been very satisfied with it and it works
much as you'd expect, with basic Xcode integration. OCUnit is at
version 38 from June of 2004.
For mock object support, Sen:te recommends OCMock, from Mulle
Kybernetik. I have not used OCMock much yet, but it looks very
interesting:
http://www.mulle-kybernetik.com/software/OCMock
Subsequent to using the above, I have also read about, but not used:
c) TestKit: http://testkit.sourceforge.net
This is another adaptation of JUnit, which has already been mentioned
on this thread. It looks nice, and the documentation is very good. It
features mock object support and also a GUI test runner. TestKit is at
version 0.9.4 (June 2004).
d) UnitKit: http://unitkit.org
I hadn't even heard of this one until this thread. It is a bit
different than the others in that it seems to to be specific to
Objective-C and intended mainly for Xcode. It does not clone the JUnit
interface although the concepts are similar. It is at version 1.0.1
(August 2004).
----------
I would be very interested to hear people's real-world experiences with
any of these. It is pretty hard to realistically try them all in a
production environment. At Five Speed we use OCUnit because the
interface is familiar, it is authored by Sen:te and so carries their
reputation, and because it does now have Xcode integration (although
that used to be lacking). A couple years ago we used ObjCUnit, but the
main reason we switched (I think) was that OCUnit seemed more "alive"
in terms of active development.
I personally am interested to hear about real-world experiences with
UnitKit, since its approach is the most different.
Cheers,
--
Mason Mark
Five Speed Software, Inc.
http://www.fivespeed.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden