Re: [Cppunit-devel] Parameterizing tests by using XML
Brought to you by:
blep
From: Robert W. <ro...@po...> - 2002-07-19 08:02:10
|
On Friday 19 July 2002 09:19, Michel Armin wrote: > Actually almost all of my tests would benifit from such a > parameterized testing approach. (Most of our code is concerned with > manipulating images. Of course, we support a number of different > types of images. Our functions should be able to deal with all of > these types of images in a transparent way. If I have a possibility > to parameterize the type of the image used for a test, I could > greatly improve the test coverage.) Wouldn't a template be more helpful? Or a (abstract) base class that excercises test for all images and is not directly called but its derived classes call it and offer specialised methods the base calls (template class pattern)? Robert |