antifun has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on some new mega-widgets in Perl/Tk as part of a decent-sized application, and I'm looking for some way to automate testing these widgets.
The tools available for testing, like the Test modules, would appear to not be of much use since the Tk MainLoop effectively blocks the execution of the test script.
Programatically triggering the UI elements is not especially difficult, but you need to see if there were any die()s in the callback and check the expected result before doing the ok().
Does anyone have any strategies for dealing with this kind of testing? It really needs to be automatic, because there are a lot of cases to cover when you consider the need to validate input, check edge conditions, etc.
Thanks in advance for any suggestions.
---
"I hate it when I think myself into a corner."
Matt Mitchell
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Tk and Test?
by chromatic (Archbishop) on Mar 21, 2003 at 19:21 UTC | |
|
Re: Perl/Tk and Test?
by jasonk (Parson) on Mar 21, 2003 at 19:33 UTC | |
|
Re: Perl/Tk and Test?
by smackdab (Pilgrim) on Mar 24, 2003 at 05:25 UTC | |
|
Re: Perl/Tk and Test?
by Anonymous Monk on Mar 26, 2003 at 08:48 UTC | |
by IlyaM (Parson) on Mar 26, 2003 at 09:19 UTC |