[Cppunit-devel] Use of decorators esp. TestSetUp
Brought to you by:
blep
From: KLOTZ,PETER (HP-Germany,ex1) <pet...@hp...> - 2001-11-15 16:43:00
|
Hi, Does anybody have a real-life example of using decorator especially TestSetUp. E.g. I want to pass command line parameters to a test class or something else where I need to pass specific context information to a test. Sure I can subclass TestSetUp and give that sub-class my context information. But when I want to pass it on to my test class that is wrapped by the TestSetUp then I kind of need to do a dynamic_cast on m_test otherwise I cannot call specific methods on the test object and m_Test is of class TestCase not my special sub-class. Isn't there a more general mechanism or some examples how to do this kind of things? To me it looks like many people must have that problem, or? Thanks, Peter --- Peter Klotz https://ecardfile.com/id/pklotz |