Re: Unit testing Gtk+ applications



On Tue, 16 Nov 2004 13:25:59 +0100, Stefan Kost
<kost imn htwk-leipzig de> wrote:
hi hi,

to avoid reinventing just another wheel - can anyone point me to projects using
unit tests for a gtk+ based UI. Something like using the application without
gtk_main(), injecting own events and driving the event-loop via
gtk_main_iteration_do().

    I use check (check.sf.net) unit test framework for any lower level modules
(anything "unit testable") and only functional tests for GUI stuff (i.e. all my
custom widgets always come with a functional test program).

I've found that main-loop or no main-loop, I've been able to run unit tests
(i.e. some functions I'm unit testing are "meant to integrate into the
GMainloop"),
it really comes down to, "How does your unit test program know to fail if
your animator is displaying garbled data on the screen or is not showing up
at all ?" kind of UI situations that AFAICS are simply not unit testable.

Cheers,
                                                             -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]