Veusz now has a working basic self test feature. It tests the rendering and data import systems produce correct output, by writing a SVG-like file for each example document and comparing it against a reference version.
The testing is on the overall system so it's not testing individual functions. Some aspect of the rendering system (font metrics and unicode) are hacked slightly during testing to get consistent output from the different platforms. There are also issues with a couple of the example documents, to be investigated later, so these are ignored. As far as I can see, I get all the tests to succeed on Linux, Mac OS and Windows XP. If you'd like to try it, get the latest source from git, see https://github.com/jeremysanders/veusz. Run runselftest.py from the tests directory. You need to have veusz in your Python path (e.g. after installing). You can run "runselftest.py regenerate" to regenerate the comparison documents if they are modified. Please do tell me if you get any failures. The self testing has already discovered two bugs while I have been developing it, one which I introduced a couple of versions ago. Extra tests of the rendering (e.g. to check particular plugins or features) can be placed in the tests/selftests directory. These are done in addition to the standard example documents. If you have any self test documents you'd like to contribute please send me the documents or a patch. It does not test the user interface unfortunately - this would be a much harder to test thoroughly, especially as it changes often. It probably should also be integrated into setup.py, but I haven't looked at that. Jeremy _______________________________________________ Veusz-discuss mailing list [email protected] https://mail.gna.org/listinfo/veusz-discuss
