Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com writes:
How do you test a function that is not in a module?
All I meant was to run some private non-gui code like
is (Gtk2::Ex::MyWidget::_crunch_something('abc),
'def');
directly out of what's otherwise a widget module, if you don't
On 26 February 2011 01:44, Kevin Ryde use...@zip.com.au wrote:
Not necessarily split into modules, but in functions which can be
exercised without too much gui. Creating some widgets to support
How do you test a function that is not in a module? Can you just
use lib path/to/bin/with/function
Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com writes:
Has anyone tried to use these (or a different tool) for testing a
Gtk2-Perl app?
I haven't gone beyond calling module methods or activating Gtk2::Action
or buttons etc. Getting enough state and waiting and whatnot for even
that tends to be
On 25 February 2011 22:06, Kevin Ryde use...@zip.com.au wrote:
I haven't gone beyond calling module methods or activating Gtk2::Action
or buttons etc. Getting enough state and waiting and whatnot for even
that tends to be a bit tedious.
I guess that is the answer - put everything that doesn't
Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com writes:
put everything that doesn't involve the
GUI into module(s)
Not necessarily split into modules, but in functions which can be
exercised without too much gui. Creating some widgets to support
shouldn't be a problem. Test .t scripts may have
I'm looking at ways of automatically testing my Gtk2-Perl app. I see
that there are various GUI testing tools, like dogtail, strongwind,
LDTP, etc.
Has anyone tried to use these (or a different tool) for testing a Gtk2-Perl app?
Regards
Jeff
___
gtk