RE: [Cppunit-devel] standard way to handle test data
Brought to you by:
blep
From: Moran Ben-D. <mbe...@ii...> - 2002-07-10 19:03:43
|
TestContext to me would be a class that would be passed to Tests each time they are run. The Test receiving the context would use it to extract data necessary for it's test. In my search for separating the data (e.g. primary keys of rows being pulled from the database, etc.) from my Test Fixture code.. I came accross this: http://c2.com/cgi/wiki?TestDriver <http://c2.com/cgi/wiki?TestDriver> This page mentions the TestContext class for encapsulating the data required by a test.. I'm not 100% clear on how I'd like to data-drive my TestFixtures however, I know I need to as currently I'm hardcoding the, for example, database primary keys I'm trying to pull from the db to test my querying code. Forgive my ignorance.. but are you on the cppunit development team? Moran -----Original Message----- From: Baptiste Lepilleur [mailto:gai...@fr...] Sent: Wednesday, July 10, 2002 1:32 PM To: Moran Ben-David; cpp...@li... Subject: Re: [Cppunit-devel] standard way to handle test data Could you explain shortly what is that TextContext class ? Recently, I was thinking about passing the TestResult to the setUp() and tearDown() methods. I can be done without too much trouble, but I still haven't come up with some really good reason (might change though). Baptiste. ----- Original Message ----- From: Moran <mailto:mbe...@ii...> Ben-David To: 'cpp...@li...' <mailto:'cpp...@li...'> Sent: Sunday, July 07, 2002 4:07 AM Subject: [Cppunit-devel] standard way to handle test data Hi. I'm looking for a standard way for making my TestFixtures data driven. I've read some suggestions about a TextContext class and seen JTestCase ( http://jtestcase.sourceforge.net/ <http://jtestcase.sourceforge.net/> ).. Rather than write my own implemention of one or more of these concepts for CppUnit, I'd rather use a popular implemention. Is there one? Thanks, Moran ---------------------|||| ii3 | Moran Ben-David ii3 Inc. t) 416.595.5232 x294 f) 416.595.5224 e) mbe...@ii... i) < http://www.ii3.com/ <http://www.ii3.com/> > --------------- eBusiness. Your Vision Here. |