[qmtest] how to set up resources for tests

Mark Mitchell mark at codesourcery.com
Mon Aug 16 02:30:51 UTC 2004


Stefan Seefeld wrote:

> I'm working with a test database that uses a set
> of executables to process input files. While the
> test in itself is the processing of such an input
> file, all these tests require the executables to
> be built first.
> I'm thus thinking of managing the compilation
> of those executables by 'Resource' instances.
> However, I can't find any documentation about
> the API that I have to use in my test database
> and test classes to define these resources
> and the dependencies the test instances have
> on them.
> Could anybody help with pointers or references ?

A resource is definitely what you want here.  The documentation is a bit 
lacking, but a resource class is very much like a test class.    The 
temporary.TempDirectoryResource class that comes with QMTest is a good 
example of a resource class.

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com




More information about the qmtest mailing list