[Cppunit-devel] TestFactoryRegistry
Brought to you by:
blep
From: Cremin, P. <pc...@or...> - 2003-02-04 00:21:41
|
<I am using MS .NET> My problem is that I have a "UnitTest" project that contains the main() to run the unit test from all other projects in the solution. The other projects use CPPUNIT_TEST_SUITE_REGISTRATION() to register their suites. Once the libraries from the other projects are created the TestFactoryRegistry is lost, and I cannot use it in my UnitTest main(). The post http://sourceforge.net/mailarchive/message.php?msg_id=908942 <http://sourceforge.net/mailarchive/message.php?msg_id=908942> says the below is an option: >Have your librairies publishing an >interface that provide an access to their TestFactoryRegistry. >For example, in suite1.lib project, you add: >TestFactoryRegistry &getSuite1Registry() { > return TestFactoryRegistry::getRegistry(); >} This would work, but would involve me having to include a ton of header files in my main. One of the stated purposes of having the TestFactoryRegistry is to remove the "compilation bottleneck caused by the inclusion of all test case headers". |