[qmtest] List test ids at command line?

Stefan Seefeld seefeld at sympatico.ca
Tue Feb 24 14:01:02 UTC 2004


Mark Mitchell wrote:
> Andrew Funk wrote:
> 
>> Hi,
>>
>> Is there a way to list all the test ids in a database from the qmtest
>> command line interface?  I realize this would essentially be a listing
>> of the directory tree, but for my application (generating tests at
>> runtime) it would be a helpful feature.  I think it will be simple for
>> me to implement but I thought I should check first in case it is already
>> in there.
> 
> 
> No, there's no way to do that.
> 
> Yes, that could be useful, but it would be much nicer if it would work 
> as follows:
> 
> (1) Accept a --kind parameter that allows you to say what kind of 
> extensions you want displayed (tests, suites, resources, etc.).  If no 
> --kind parameter is displayed, show everything.
> 
> (2) Accept a series of optional arguments (e.g, "test1 
> suite1.subsuite2") and show information only for those entities.  In 
> other words, operate like "ls -R" with no arguments, and like "ls -R foo 
> bar" for arguments "foo" and "bar".
> 
> You could call the new command "qmtest list".
> 


I agree that such a listing would be nice. However I'm wondering about
the semantics: if - as I understood - I can refer to the same test via
different suites, wouldn't that imply that tests are listed multiple
times ?
Would that require some additional logic (or at least user-defined
policy) to know what to list ? Such as a 'primary' (or 'owning') suite ?

Regards,
		Stefan




More information about the qmtest mailing list