Re: ZeroLink and dynamic discovered Classes
Re: ZeroLink and dynamic discovered Classes
- Subject: Re: ZeroLink and dynamic discovered Classes
- From: Marco Scheurer <email@hidden>
- Date: Wed, 26 Nov 2003 16:26:01 +0100
On Sunday, November 23, 2003, at 11:03 PM, Martin Hdcker wrote:
Hi there,
to get to know the inside of the objc-runtime I am coding a simple
unit-testing framework for myself. But, well, I got myself totally
stuck on this problem:
I'd like to do automatic test-case discovery and currently get a list
of all classes from the runtime before I filter out those that are no
testcases.
BUT if zero-link is enabled I never get my testclasses listed. Well
that is to be expected as those classes are not explicitely
specified/instantiated anywhere else in the source.
OCUnit, which already does all this (unit testing and automatic
discovery of test case classes,
http://www.sente.ch/software/ocunit)
has the same problem. We haven't found a worthy workaround yet.
In any case, I tend to think that having both ZeroLink and Unit testing
is not such an interesting option. One good practice of Unit Testing is
to make sure that all your tests pass when you make changes in the
code. Now if you break on a failed test, fix the code, and continue,
you would have to rerun all the tests that passed before your change
anyway. IMHO it means that it's much simpler to let the tests run, make
your changes, rebuild and retest everything.
marco
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.