what I want to do is have an input file, each line of the file containing the parameters for one test.
what I have noticed is that the setUp() function is called for each test added to the suite with the
CPPUNIT_TEST( testfunc ) macro. So, how I thought things up: the setUp() function should read the next line ( next test ) from the input file and then the testfunc should get called to do that test. But the problem is: how do I say that one test ( the testfunc ) must be called a multiple( actually variable ) number of times?
thx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello,
what I want to do is have an input file, each line of the file containing the parameters for one test.
what I have noticed is that the setUp() function is called for each test added to the suite with the
CPPUNIT_TEST( testfunc ) macro. So, how I thought things up: the setUp() function should read the next line ( next test ) from the input file and then the testfunc should get called to do that test. But the problem is: how do I say that one test ( the testfunc ) must be called a multiple( actually variable ) number of times?
thx