On Fri, Mar 14, 2008 at 01:23:29PM +0100, Maximilian Albert wrote:
Jon A. Cruz wrote:
We need to get the unit test passing and updated.
Is there an overview of the test framework available somewhere? How does it work? What is already there, what needs to be updated or newly implemented and how can this be done? Sorry if these are dumb questions (I couldn't find anything on the wiki) but apparently I haven't yet got in touch with the testing stuff but would be interested in having a look at it (if only to be able to have it in mind during future coding).
There isn't an overview in Wiki, but you can see the code itself in inkscape/cxxtest, which includes a simple user's guide in the README. You can also see examples in inkscape/src/round-test.h, extract-uri-test.h, etc.
Note there is also a src/utest/, which is used by attributes-test.h and style-test.cpp. It seems to me that it's redundant to have two different unit test systems in the code. cxxtest seems to be more widely used; perhaps the tests currently using utest should be converted to cxxtest, and utest dropped.
It would also be good to create a Wiki page about the test framework (with a pointer to cxxtest's README for details) in case others go looking for it. Maximilian, would you mind creating this?
Bryce