Upgrading tests

Vladimir Prus ghost at cs.msu.su
Mon Dec 15 08:06:23 UTC 2003


I have a bunch of existing tests, which use my custom test class, and the 
primary argument to which are sets of filenames. Now I'd like to change that 
and pass something else instead of set of filenames -- such a the target to 
be built.

The problem is that even if I rewrite the test class to do what I want now, 
I'll still have old database, and I don't want to update it by hand -- and in 
most cases, new test can be created from and old one automatically.

It would be really nice if there were a way to upgrade the test database 
automatically. I envision that each test class has a 'version' attribute, and 
a method which takes old test data, and version of that old data, and creates 
new test. Together with some new command (qmtest upgrate-db, for example), 
that would allow to automatically upgrate test database.

Is something like this available somewhere, or planned?

TIA,
Volodya





More information about the qmtest mailing list