views:

8

answers:

0

I wish to dynamically extend my CxxTest Suite with additional test items, but am finding that all the testing scenerios must be available (hard-coded) at compile time.

My scenario is that I've got a fairly bulky C++ class that has 20+ methods to be tested. This class needs to be tested for 40+ DIFFERENT data sets. These data sets are obtained via the class constructor, controlled via parameters.

My primary objective is to avoid re-writing the same 20 test cases for the different data sets. I would like to use a control file that contains the list of data sets, and just create different fixtures for the same test suite.

Q1) How does one dynamically (at run time) add more tests to the testing suite?

Q2) Can one dynamically add fixtures at run time? Is there a better testing suite that allows for dynamic fixtures?

Q3) Is this something that the TDD technique avoids? Anyone got a good summary of the TDD Technique.

Thanks,

-- J Jorgenson --