Re: Re: [Cppunit-devel] Addon for "Unregister a TestFactory"
Brought to you by:
blep
From: Steffen H. <ste...@we...> - 2002-09-19 04:39:44
|
Hello Baptiste, Hello all, I want to use CppUnit feature "Plugin" integrated. That means, there can be tests at start time of the TestRunner and the possibility to plugin a test dll without losing all existing tests. To control this, there was not a lot to do. But in the other way I also want to remove this plugin Dll. That means I need to remove all tests from this dll, but all other tests which don`t belong to this plugin should stay in. I think using "PluginManager::unload" is helping a little bit, because unregistering is done by this and the destructor of the affected TestSuite(s)is called. But in fact the pointer to this deleted TestSuite(s) will stay in the root TestSuite. So I have links to deleted data what causes terrible problems for me. So I helped myself with a little additional method in class TestSuite to delete this link out from the Vector. But I don`t think that this is a good solution. But I think the plugin feature should be completely supported in the way I described. That means adding and removing test plugins at runtime without any consequences to other tests. Maybe anyone could help me now. Best regards Steffen "Baptiste Lepilleur" <gai...@fr...> schrieb am 18.09.02 19:48:54: > You may have a look at AutoRegisterSuite destructor to see how to unregister > a TestFactory, but I don't guaranty anything. The test registry has not been > designed to be used that way. > > It is not possible to remove test from a test suite. > > If I may ask, why do you need that ? TestFactory are for static time > registration. TestRunner allow to run only a selected set of UT. > > Baptiste. > > ----- Original Message ----- > From: "Steffen Huebner" <ste...@we...> > To: <cpp...@li...> > Sent: Tuesday, September 17, 2002 1:23 PM > Subject: [Cppunit-devel] Addon for "Unregister a TestFactory" > > > > Hello again, > > > > I have forgotten to ask for removing single tests from a TestSuite. I just > can only remove all tests from a TestSuite. > > > > Is there a possibility to remove tests from a TestSuite? > > > > Thanks so far > > > > Steffen > > > ______________________________________________________________________________ Jetzt testen fur 1 Euro! Ihr All-in-one-Paket! https://digitaledienste.web.de/Club/?mc=021106 |