Unit testing

Uriel <[email protected]> Thu, 15 Apr 2004 04:25:52 +0100
Newsgroups gmane.comp.python.anygui.devel
Message-ID <[email protected]>
Hi again, I decided to look again into this, I have reworked my
framework; and now it's even easier to write tests, in many cases it's
even "automatic", also taking advantage of this I have added a quite few
new test and now the whole thing can be called from the command line
with a parameter to set the backend... it's still far from complete,
but starts to look like might be useful.

On the down side, the whole thing is more messy, and I'm not sure if the
OO approach I have taken is a good idea at all, I would prefer
something more "procedural" or "functional"...

Please let me know what you think, I have tried to run the tests with
gtk, tk, and wx(pyqt in debian sid seems to be broken at the moment, and the
curses backend didn't start), and already found a few bugs in the gtk
backend, it seems that it doesn't support setting some parameters after
widget creation and fails silently; in tk for some reason the Exit
button doesn't work, will have to investigate...

[Warning: the code is ugly and hacky, you have been warned ;)]
http://www.binarydream.org/~uriel/anygui/anygui_utest_2004-04-15.tar.gz

Best wishes

uriel


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click