[Cppunit-devel] Distinguishing test case and test suite without relying on RTTI...
Brought to you by:
blep
From: Baptiste L. <bl...@cl...> - 2001-11-04 12:36:34
|
Well, this is an issue that have been raised for some time. There is a simple solution to it: pull more of the Composite pattern into the Test class. I propose to add the following method to the Test class: int getChildCount() Test *getChildAt( int index ) => This allow to browse the test hierarchy without relying on RTTI. => This allow to create suites which do not subclass TestSuite (you don't want the suite to assume ownership for example). What do you think ? Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Author of The Text Reformatter, a tool for fanfiction readers and writers. Language: English, French (Well, I'm French). |