discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjcUnit


From: Gregory Martin Pfeil
Subject: Re: ObjcUnit
Date: Sat, 2 Mar 2002 11:54:43 -0800

On Saturday, March 2, 2002, at 11:17  AM, Richard Frith-Macdonald wrote:


On Saturday, March 2, 2002, at 06:44 PM, Gregory Martin Pfeil wrote:

On Saturday, March 2, 2002, at 10:36  AM, Gregory Martin Pfeil wrote:

I don't know if this is already known/used in these circles, but I just saw an announcement for ObjcUnit in an ADC mailing.

Sorry, forgot to mention the URL -- http://oops.se/objcunit/

I'm not familiar with junit.  What does it do?
What are its advantages over the existing GNUstep regression testing framework?

JUnit can be found at http://junit.org/.

It basically provides a bunch of abstract classes that you subclass to test individual classes.

You write a number of test methods, mostly containing asserts -- JUnit provides methods like assertTrue(boolean), assertEqual(Object, Object), etc.

setUp() is called before each test method, and tearDown() is called after each one. JUnit keeps track of which tests failed and erred (an error occurs when an exception is thrown), and prints back a report of successes and failures.

When writing an API, I've found it useful to provide a complete set of unit tests along with the interfaces so implementers can immediately tell if there's an error in their code, or if there was a misinterpretation of the interface.

This is very simplified. I first discovered these frameworks when studying "agile" methodologies (like Extreme Programming). The docs at JUnit.org would probably help you understand much better.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]